C++

Posts 1–6 of 6 · Page 1 of 1
C++
Hi im learning C++ right now but this script has a error i cant figure out pls help me



#include <windows.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

using namespace std;

int main(int argc, char *argv[])
{
int a;
string array [42] = {"A","B","C","D","E","F","G","H","I","J","K","L"," M","N","O","P","Q","R","S","T","U","V","W","X","Y" ,"Z","0","1","2","3","4","5","6","7","8","9", " ", " ","?","!","#","*"};
system("TITLE The MaTrIx by Applesouce");
system("color 0A");
while(1)
{
Sleep(25);
for (int i=0; i<20; i++)
{
a=rand()%42;
cout << " " << array[a] //1 space
cout << " "; //2 space
}
cout << endl;
}
getch();

return 0;
}
What error please tell so we can have a clue
what error
well im not sure it said 496 errors not what errors :O
Errr
C+P errors? syntax? Undeclared stuff?
Judging from your intelligence, not knowing the diff between C# and C++ etc, make me thing you're trying to compile C# & C++ code with Visual Basic...

Go away, learn the basics
i use dev c++ and this should be c++
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us