Witam znowu coś nie tak...
-codeblocks
mam taki komunikat w logu:
-||=== hello, Debug ===|
D:\dane\c++\hello\main.cpp||In function 'int main(int, char**)':|
D:\dane\c++\hello\main.cpp|7|error: 'time' was not declared in this scope|
||=== Build finished: 1 errors, 0 warnings ===|
a kod to:
# include <iostream>
# include <windows.h>
using namespace std;
int main (int argc, char *argv[])
{
int a;
srand(time(NULL));
cout<<" no25.wordpress.com The Matrix"<<endl;
string array [44] = {"A","0","B","C","3","D","E","7","F","G","H","&","I","J","5","K",
"%","L","M","N","O","P","Q","!","R","S","T","U","V","W","X","Y",
"Z","1","2","4","6","8","9"," ","?"," ","#"};
system("color 0A");
while (1)
{
Sleep(50);
for(int i=0; i<26; i++)
{
a=rand()%44;
cout<<" "<<array
/;
cout<<" ";
}
cout<<endl;
}
system("pause");
return 0;
}
Z góry dzięki kochani programiści;)