Yet, the code I wrote do not cause any compilation errors( regardless of warnings about strtok ) but when its executed it stops working. This is the code:
Code:
#include <iostream>
#include <cstring>
using namespace std;
int main(){
char *line = "int a = 10, b; ";
char *token;