iceeeeman said:dude where to type these codes
__________
dude where to copy these code????
Sorry yaar hum toh majak kar rahe thay tum toh serious ho gaye.Hum toh tumhe test kar rahe thay.Shashwat Pant said:Yu had to type these codes in the C++ compiler this guide has been made by using C++ compiler named Borland Turbo C# ver. 3.0 So better you use the same
__________
@pathiks,mAV3,gaurav_indian
I could not stop laughing at all of you 3 ... Rolf just check that who is Renegade at Tech Talkz.... I could not beleive it you got mistaken by changed name hahahahahahahahah...... I am still laughing .. It's me Damn its me ..
Just a name change I am the only renegade of techtalkz the tech reporter if you still cant beleive it then ask the admin or any other..
Well for you information I had posted this guide at Tech Enclave and my name there is Dark Star so don't get messed up dude 's
Shashwat Pant said:Yu had to type these codes in the C++ compiler this guide has been made by using C++ compiler named Borland Turbo C# ver. 3.0 So better you use the same
@shaswat i didnt accuse u... i just asked if u had copied this content from some book cos i liked it...
hey shashwat i owe u an apology .... i should have gone thru that website and seen ur location which is common on both forums ...pathiks said:ye sab mav3 ne kiya hai...
#include<iostream.h>
void main()
{
int a,b;
cout<<"Enter numbers : ";
cin>>a>>b;
cout<<"Sum : "<<a+b;
}
$ gcc abc.cpp
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/iostream.h:31,
from abc.cpp:1:
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
abc.cpp:2: error: ‘::main’ must return ‘int’
#include<iostream.h>
int main()
{
int a,b;
cout<<"Enter numbers : ";
cin>>a>>b;
cout<<"Sum : "<<a+b;
return 0;
}
save the file as abc.cpp#include<iostream>
int main()
{
int a,b;
std::cout<<"Enter numbers : ";
std::cin>>a>>b;
std::cout<<"Sum : "<<a+b;
return 0;
}
then$ make abc
thats all$ ./abc