Hey all,
I'm creating my first menu but it doesn't work for some vague reason.
I've tried several things, and the code compiles just like it should, but the menu doesn't show up when I run the...
Type: Posts; User: FromHolland
Hey all,
I'm creating my first menu but it doesn't work for some vague reason.
I've tried several things, and the code compiles just like it should, but the menu doesn't show up when I run the...
Thanks for the links! Just what I was looking for! :cool:
Hi, I am new to c++, though I have practised it for a few months, but that's about 6 months ago now. I've dicided to take another shot at it :D
I'm working on a tiny program now, it's quite...
Hi,
I am working on a small application, just to practise File I/O.
The program creates a text document, named by the user, and then it adds both a string & an integer value to the file.
Here is...
PS
I used the char name ' IC ' in my own script :D
OW ! One more thing about your post, FillYourBrain, the code only works when I write it like
switch((char)IC) and not like switch(IC[0])
Thx alot! That was all I needed to know!
Another question by me!
How can I use a Char in a switch()?
I tried it like this:
char x[2];
I know what you mean, and that's exactly what I did before. What I really mean is a timer that displays time during the program, even when no event occurs. Imagine a program that does cout<<"hi";...
I don't know what he's up to, but I do know that it requires great skill to create a program that manipulates mouse movement.
HI!
I would like to know how to put a realtime timer in my program, like a stopwatch. I tried using the Time_t function but it can only display time when an event occurs. Maybe someone can tell me...
Thx alot for the good advice!!
The link Xsquared posted is great, I will make good use of it:D :cool: thx!
Hi!
I am still a beginner at c++, but I would like to know the advantage of Windows programming. I am a bit tired of all those dos applications and, since most programs use windows, would like to...
Yes I KNOW! adrianxw told me before! And, you're wrong about the link thing, cuz there weren't any other links posted but yours when I posted my previous reply. And I cant use a link to some "use...
Isn't there any oter way of generating random numbers without having to use the system time?? I still have this frequecy in the random numbers.. Like this:
24
29
34
44
57
It's just NOT...
I am making this small program wich generates random numbers in order to make random sums. I checked the toturial to see how to generate random numbers using the system time, wich is never the same...
It doesn't matter as long as the compiler does not see the difference between LEGAL and NON-LEGAL code.
Thank you VERY much :D :D !! It finally works!
You say that you can't explain any better, well, maybe someone else can. I need to know HOW and WHY it works, that's how I learn from it.
The ONLY problem: When the program calculates the sum, the outcome is always 0.
What if you would change this:
ofstream out( "C:\\Program Files\\myfile\\w00t.txt" );
Into this:
ofstream out( "C:\\Program Files\\myfile\\w00t.exe" );
And if the program would be 'evil'...
But what if you would make a loop within the program?? Would it create a text file over and over and over and over and over and over again??:o
I tried your code and modified a thing.
Than I get this funny result:
If you change IF(!source) to IF(source) than the prgram displays all kindof weird (possible hexadecimal) stuff. =)
That doesn't change anything! The outcome remains 0.
What is the advantage when 'using namespace std;' ??
I see that lots of people use it in their code, but when I delete it, the code still works. So why use it?
This is my (Yehaa!! :cool: My first, more than 20 lines of code containing, more than 90% working) finished program.
It is a calculator, I made it just to practise. BUT!! it doesn't work!
Well, it...