Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 24-03-2007, 11:11 AM   #31 (permalink)
The Devil's Advocate
 
iMav's Avatar
 
Join Date: Mar 2006
Location: Masti Ki Paathshaala
Posts: 7,019
Default Re: Tutorial: Learn All The Basics Of C++ Language


Quote:
Originally Posted by pathiks
ye sab mav3 ne kiya hai...
hey shashwat i owe u an apology .... i should have gone thru that website and seen ur location which is common on both forums ...

but u know how a lot of pppl seeking fame and rep are ... copy and paste they do ... sorry and keep up the good work
__________________
"The problem that shows up with the three red lights on the console is a complex interaction with some very complex parts.” - Robbie Bach

http://beingmanan.com
twitter: manan | Last.FM: manan
iMav is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 27-03-2007, 04:21 PM   #32 (permalink)
Burning Bright
 
anantkhaitan's Avatar
 
Join Date: May 2006
Location: NIT, Bhopal
Posts: 266
Default Re: Tutorial: Learn All The Basics Of C++ Language

I was unable to compile my c++ codes in Linux using gcc, therefore i use
Dosbox
to run my Turboc C++ , and now i know this is a paid software..
So better if anyone can help me out
__________________
..::Fedora ::.. Freedom + Infinity + Speech
Registered Linux User #447318

GNUger was here.... Grrr....

Maah! Blog
http://brightedges.blogspot.com/
anantkhaitan is offline  
Old 27-03-2007, 05:37 PM   #33 (permalink)
Wise Old Owl
 
piyush gupta's Avatar
 
Join Date: Sep 2005
Location: never land
Posts: 1,284
Default Re: Tutorial: Learn All The Basics Of C++ Language

^^but why u r unable to compile ur c++ cod ein linux

Don't u know the way of an error if so put error msg here
piyush gupta is offline  
Old 28-03-2007, 02:50 PM   #34 (permalink)
Burning Bright
 
anantkhaitan's Avatar
 
Join Date: May 2006
Location: NIT, Bhopal
Posts: 266
Default Re: Tutorial: Learn All The Basics Of C++ Language

Content of my file 'abc.cpp'

Quote:
#include<iostream.h>
void main()
{
int a,b;
cout<<"Enter numbers : ";
cin>>a>>b;
cout<<"Sum : "<<a+b;
}
The command I trigger to compile the code :

Quote:
$ gcc abc.cpp
Error Message:

Quote:
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’
__________________
..::Fedora ::.. Freedom + Infinity + Speech
Registered Linux User #447318

GNUger was here.... Grrr....

Maah! Blog
http://brightedges.blogspot.com/
anantkhaitan is offline  
Old 29-03-2007, 03:02 PM   #35 (permalink)
Burning Bright
 
anantkhaitan's Avatar
 
Join Date: May 2006
Location: NIT, Bhopal
Posts: 266
Default Re: Tutorial: Learn All The Basics Of C++ Language

^^^
Plz give me a solution Piyush i m waiting for a reply

Note a minor change in code:
Quote:
#include<iostream.h>
int main()
{
int a,b;
cout<<"Enter numbers : ";
cin>>a>>b;
cout<<"Sum : "<<a+b;
return 0;
}
But still not working
__________________
..::Fedora ::.. Freedom + Infinity + Speech
Registered Linux User #447318

GNUger was here.... Grrr....

Maah! Blog
http://brightedges.blogspot.com/
anantkhaitan is offline  
Old 29-03-2007, 05:16 PM   #36 (permalink)
Wise Old Owl
 
piyush gupta's Avatar
 
Join Date: Sep 2005
Location: never land
Posts: 1,284
Default Re: Tutorial: Learn All The Basics Of C++ Language

Sorry for late reply

http://www.linux-noob.com/forums/lof....php/t632.html

This link solves ur problem

Use g++ for C++ files

#include <iostream>

using namespace std;

int main() {
cout << "Hello, world!" << endl;
return 0; // No error
}

g++ -o helloworld helloworld.cpp
piyush gupta is offline  
Old 29-03-2007, 08:58 PM   #37 (permalink)
In The Zone
 
Join Date: Oct 2006
Location: Mumbai
Posts: 365
Default Re: Tutorial: Learn All The Basics Of C++ Language

u can refer this page for tutorial on c and tutorial on data stucture.
http://www.desi-tek.com/forum/index.php?act=SF&s=&f=35
i wrote that tutorial long time back when i was studying c
__________________
Dhiraj Thakur
thakur.dheeraj(@)gmail.com
Desi-Tek.com is offline  
Old 30-03-2007, 03:02 PM   #38 (permalink)
Burning Bright
 
anantkhaitan's Avatar
 
Join Date: May 2006
Location: NIT, Bhopal
Posts: 266
Default Re: Tutorial: Learn All The Basics Of C++ Language

Thanks Piyush for the link now I m able to compile with 'make'
I want to share this example with u all

Code:
Quote:
#include<iostream>
int main()
{
int a,b;
std::cout<<"Enter numbers : ";
std::cin>>a>>b;
std::cout<<"Sum : "<<a+b;
return 0;
}
save the file as abc.cpp
and run the following commands
Quote:
$ make abc
then
Quote:
$ ./abc
thats all
__________________
..::Fedora ::.. Freedom + Infinity + Speech
Registered Linux User #447318

GNUger was here.... Grrr....

Maah! Blog
http://brightedges.blogspot.com/
anantkhaitan is offline  
Old 21-07-2007, 11:42 AM   #39 (permalink)
Ron
||uLtiMaTE WinNER||
 
Ron's Avatar
 
Join Date: Nov 2006
Location: Kathmandu,Nepal
Posts: 698
Default Re: Tutorial: Learn All The Basics Of C++ Language

thnks
__________________
||uLtiMaTE WinNER||
Ron is offline  
Old 21-07-2007, 10:48 PM   #40 (permalink)
Right Off the Assembly Line
 
mandeep444's Avatar
 
Join Date: Jan 2007
Posts: 16
Default Re: Tutorial: Learn All The Basics Of C++ Language

nice work "Shashwat Pant"

mandeep444
__________________
mp3 hindi songs:-
www.tataman.blogspot.com
Free Radio Tv Software:-
http://radiotvsoftware.blogspot.com
Hindi Ragni
http://hindiragni.blogspot.com
mandeep444 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:41 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2