Thanks. So I guess I'll put the read line stuff inside a function...
Also, str2 does not seem to work. It outputs some funny ASCII character instead of "Notepad". Why is this so?
Type: Posts; User: trenzterra
Thanks. So I guess I'll put the read line stuff inside a function...
Also, str2 does not seem to work. It outputs some funny ASCII character instead of "Notepad". Why is this so?
I tried the example and it returns a Windows error... Using pointers solved the problem, but now I can't get rid of the ='s
What do you mean?
But I wish to specify which line to read, eg read line 3... Is this possible?
I'm quite a noob to this, and the MSDN library is almost like Greek to me... can you give me a demonstration?
Thanks. I am not planning to port it, so it'll work I guess...
I am making a simple DOS program to launch programs...
So to make it user configurable there's a text file where the user can add and delete stuff.
is what's in my text file.
I have two...
Thanks for that link... I am trying it out. However, why is the output file so big?
Sorry for hijacking, but is there a replacement for goto loops?
if (opt == "1")
{
long int a = 1;
char* newchar;
int z;
...
May I know where can I get the resource.h file? My resource editor only creates the RC files.
I found a resource editor, but it seems that the tutorials from WinProg.net doesn;'t work with Dev-C++... I get lots of syntax errors in the resource file.
Is there any tutorial that uses Dev-C to...
I use Dev-C++ right now, but I can't find any resource editor
What about IDEs with resource editor? Is there any good one that's free?
Hi, I wish to port my Win32 Console app to a Win32 GUI app. However, I'm a complete noob at this...
Is there a free compiler out there with a resource editor to aid me?
Also, is there any good,...
Thank you guys.. it works!
So there is no way to get around this?
if (exp == "y")
{
time(&timz);
ofstream exp("export.txt", ios::app);
...
When I use ctime and time, it always breaks a line after it outputs... How do I change this behaviour so that it doesn't break line?
I tried using this:
char * conz;
cin>>conz;
int z;
z = atoi(conz);
if (isalpha(z) != 0)
{
I tried:
int z;
cin>>z;
if (isalpha(z))
{
cout<<"No alphabets allowed.\n\n";
cin.get();
I am making a console benchmark program, so I need the user to input an integer. However, I want to fool-proof it so the program will detect if an alphabet is being entered. Is there a way to do so?...
Mm ok, so it's a 32-bit program?
Will performance be greatly hit? Because the program I am writing is a benchmark program
So my console-type programs will still work in XP x64? I'm too lazy to master the Win32 API yet.
I heard it doesn't support DOS anymore. Will this mean that all console programs will stop functioning, eg those cout<<"hello world" stuff?