아래 씨언어를 C++로 바꺼야 하는데 제가 씨를 잘몰라서요
어디를 어떻게 바꺼야 하는지 가르쳐 주세요 ..
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
struct tokentype scanner()
{
struct tokentype scanner()
{
struct tokentype token;
int i, j, k, num;
char ch, id[ID_LENGTH];
token.number = tnull;
do {
while (isspace(ch = getchar())); /* state 1: skip blanks */
if (isalpha(ch)) { /* state 2: identifier or keyword */
i = 0;
do {
if (i<ID_LENGTH) id[i++] = ch;