Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 02-21-2004, 08:39 PM   #31
Guru
 
Lord Kalthorn's Avatar
 
Join Date: Dec 2003
Location: Britain
Posts: 13,293
Send a message via MSN to Lord Kalthorn
Default

Why would anybody want to - does anybody use G++ Code in anything remotely good?
__________________

__________________
A Knight is sworn to Honour. His heart knows only Virtue. His blade defends the helpless. His might upholds the Weak. His word speaks only truth. His wrath undoes the Wicked.
Lord Kalthorn is offline   Reply With Quote
Old 02-21-2004, 08:47 PM   #32
Daemon Poster
 
DevilHack's Avatar
 
Join Date: Feb 2004
Posts: 523
Send a message via AIM to DevilHack
Default Re: Need help in c++...???

It doesn't code anything, it compiles..
__________________

DevilHack is offline   Reply With Quote
Old 02-22-2004, 04:07 AM   #33
Site Team
 
David Lindon's Avatar
 
Join Date: Dec 2002
Posts: 15,233
Default Re: Need help in c++...???

Quote:
Originally Posted by Lord Kalthorn
Why would anybody want to - does anybody use G++ Code in anything remotely good?
Nah, there are getting too many little language around and its getting confusing!
__________________
[url=http://www.LNXPS.NET]LNXPS.NET - The XPS Library]
David Lindon is offline   Reply With Quote
Old 02-22-2004, 05:59 AM   #34
Daemon Poster
 
DevilHack's Avatar
 
Join Date: Feb 2004
Posts: 523
Send a message via AIM to DevilHack
Default Re: Need help in c++...???

I bet there are thousands of languages we don't even know about.
DevilHack is offline   Reply With Quote
Old 02-22-2004, 08:52 AM   #35
Baseband Member
 
Join Date: Feb 2004
Posts: 32
Send a message via AIM to Traveller
Default

All right, I know DevilHack has the right idea, I just want to make sure everyone else does. C++ is a programming language as is C, C#, VB, etc. Now a programming language is just an abstract representation of a set of machine instructions. Now G++ is a compiler for a language as is Visual Studio, and BloodShed Dev C++. A compiler takes the abstract representation and turns it into machine instructions (now of course their is a linker in there but I am just grouping it in with the compiler for now). So to summarize:
G++ - Linux C/C++ compiler
Dev C++ - Windows C/C++ compiler
MetroWorks CodeWarrior - Mac C/C++ compiler
Visual Studio - Look at the discussion earlier in this thread
Traveller is offline   Reply With Quote
Old 02-22-2004, 09:51 AM   #36
Guru
 
Lord Kalthorn's Avatar
 
Join Date: Dec 2003
Location: Britain
Posts: 13,293
Send a message via MSN to Lord Kalthorn
Default Re: Need help in c++...???

Quote:
Originally Posted by Traveller
All right, I know DevilHack has the right idea, I just want to make sure everyone else does. C++ is a programming language as is C, C#, VB, etc. Now a programming language is just an abstract representation of a set of machine instructions. Now G++ is a compiler for a language as is Visual Studio, and BloodShed Dev C++. A compiler takes the abstract representation and turns it into machine instructions (now of course their is a linker in there but I am just grouping it in with the compiler for now). So to summarize:
G++ - Linux C/C++ compiler
Dev C++ - Windows C/C++ compiler
MetroWorks CodeWarrior - Mac C/C++ compiler
Visual Studio - Look at the discussion earlier in this thread
Well - part of that I knew and part of that I had no idea! Specifically the MetroWorks Code Warrior (What the Devil! Thats a pretty silly name for a mainstream OS to give a compiler!) And G++ I must admit I thought was a Language up until DevilHack said it was a compiler. I did not know it was the Linux Compiler thought - I did not know that they all had different Comilers though I had an incling.

Very interesting! Thanks Traveller!
__________________
A Knight is sworn to Honour. His heart knows only Virtue. His blade defends the helpless. His might upholds the Weak. His word speaks only truth. His wrath undoes the Wicked.
Lord Kalthorn is offline   Reply With Quote
Old 02-22-2004, 02:26 PM   #37
Daemon Poster
 
DevilHack's Avatar
 
Join Date: Feb 2004
Posts: 523
Send a message via AIM to DevilHack
Default Re: Need help in c++...???

Thank's for clearing that up Traveller.
DevilHack is offline   Reply With Quote
Old 02-22-2004, 04:18 PM   #38
Site Team
 
David Lindon's Avatar
 
Join Date: Dec 2002
Posts: 15,233
Default Re: Need help in c++...???

Thanks for clearing it up!
__________________
[url=http://www.LNXPS.NET]LNXPS.NET - The XPS Library]
David Lindon is offline   Reply With Quote
Old 09-11-2004, 06:10 AM   #39
Baseband Member
 
gelpogi's Avatar
 
Join Date: Sep 2004
Posts: 23
Default Re: Need help in c++...???

You should use "fstream.h" header file. After that you can search any pattern you want to find. Maybe like this code:

ifstream infile; /*Used for reading files, ofstream for writing to file fstream for both.*/
while(infile.peek!=EOF){
//then make loops here

}
__________________

gelpogi is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off



All times are GMT -5. The time now is 10:34 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0