Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Dev C++


29 replies to this topic

#26 osknockout

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 399 posts
  • Location:Elysium
  • Interests:quantum mechanics, war, history, epidemiology, virology,mathematics, programming, D&amp;D/NetHack<br />...old skool :)

Posted 01 January 2005 - 12:46 PM

ah, thanks dexter. I also got the newest
version, that helps too :rolleyes:

#27 jjhou

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 176 posts

Posted 27 January 2005 - 09:58 AM

There are so many choice :DevC++ is OK and you also have Watcom c++ or you can just install GCC + Anjuta...anyway, you have many options.
If you plan to go pro with making software and, someday, even selling them, I suggest you risk some money and order licensed Visual Studio .Net.

#28 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 15 July 2008 - 09:43 PM

Ifstream in;
In.Get(ch);

This code works in VC++ but does nt so in devC++ ?
What alternative?


-reply by niranjan

#29 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 15 July 2008 - 09:46 PM

syntax
Dev C++

Ifstream in;
This is not recognised by dev C++ what alternative to use?

#30 wwilliams

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 25 posts
  • Gender:Male

Posted 11 October 2008 - 11:12 PM

View PostiGuest-, on Jul 15 2008, 04:46 PM, said:

syntax
Dev C++

Ifstream in;
This is not recognised by dev C++ what alternative to use?

here is a simple way i have used ifstream to read a .csv file... hope it helps someone

#include 
#include 

using namespace std;

int readFile()
{
    string line;
        ifstream readFile;
 		readFile.open ("file.csv");
		if (readFile.is_open())
		{
		while (! readFile.eof() )
		{
		getline (readFile,line);
		cout << line << endl;
		}
		readFile.close();
		}

		else cout << "Unable to open file"; 
    return 0;
}





Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users