c++ experts

I have that error, wtf?:|

1:9 I:\00000C++\INSTRUKCJA IF\IF_1\IF_1.cpp #include expects "FILENAME" or <FILENAME>
Comments
29
nanananerd
u dont have to me an expert to know

compiler asks for a header file to declare functions n shit

try
#include <stdio.h>


amiright?
ur 1rst years informatica right?
Parent
ye

can you tell?
Parent
not rly, u get c++ already?? ;O
Parent
nope, next year from what ive heard
had c last quarter
Parent
kk nice, im first year too, first semester, i dont get a thing from PHP :D
Parent
getting that in the 3rd quarter :d
Parent
thnx, it works! :)) Im newbie x:P
Parent
Quote#include expects "FILENAME" or <FILENAME>
The fix is in the error yes.

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
Parent
People calling any .NET based language "easier", don't have a clue. You can't compare them at all.
Parent
It's not a good way of learning to be honest.
Parent
Getting you used to coding procedures compiling errors etc... in .NET at least it explains and offers fixes to problems, unlike C++. Why delve into PHP when you should be working on HTML first?
Parent
I'm not talking about which language/framework is better because it depends of your private preferences... IMHO people should start coding from C/C++ for understanding basics of pointers, allocating memory etc. When they realize that, then they can choose further way (Java, .NET etc.) but I can't say C++ is useless (e.g. QT framework.). About HTML and PHP I'm not gonna talking because I'm newbie in these things and I'm still learning.
Parent
#include <cstdlib>
#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
dunno if u fixed it, but it compiles with no problems check if the libs are there and u have correct libs
Parent
Ask Zodiac.
yeah well that error explains it self, DONT YOU THINK
Parent
NO because I never get DEFEATed at GAMES. OK?
Parent
youre no saint??
Parent
i have a problem with visual studio i do Win32 console aplications and if i select empty project doesn't open any page if i let it on nomal with some code lines in it i can write code in it but when i wana play the program i gent an error smth with debug

version it's visual studio 2008
visual studio is pretty complicated :/ Im using bloosdhed Dev c++, much easier to work witch
Parent
Basically just including your header wrong. #include "blabla.h" ( " " will be files to include inside the current directory of your source. #include <blavla.h > ( These header files are inside your vc/include directory.
Or in the Win SDK directory.
Parent
Back to top