c++ experts
•
31 Oct 2011, 21:35
•
Journals
I have that error, wtf?:|
1:9 I:\00000C++\INSTRUKCJA IF\IF_1\IF_1.cpp #include expects "FILENAME" or <FILENAME>
1:9 I:\00000C++\INSTRUKCJA IF\IF_1\IF_1.cpp #include expects "FILENAME" or <FILENAME>
compiler asks for a header file to declare functions n shit
try
#include <stdio.h>
amiright?
can you tell?
had c last quarter
Why are you coding in C++ when you do not know to include?:D.
Perhaps start with something a bit 'easier'? .NET maybe? Try VB.NET
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
system ("COLOR 3");
int A, w;
cout<<"Podaj A = ";
cin>>A;
w=0;
if ((A>-7) && (A<=5))
w=1;
cout<<endl;
cout<< "Liczba: "<<endl;
cout<< "A = "<<A<<endl;
if (w==1)
cout<<"nalezy ";
else
cout<<"nie nalezy "<<endl;
cout<<"do przedzialu"<<endl;
cout<<"Prosze nacisnac enter..."<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
the program
version it's visual studio 2008