Works fine for me. >> Sometimes... When exactly? Try displaying the random seed - read time(0) into an int, display that int, then call srand...
How far have you got and where are you stuck? Note that this is not a free homework doing site. We'll help you, but not by doing your work for you.
What happens if you simplify main so that it just calls SuNN with a fixed value, e.g. int main() { SuNN(5); return 0; } You might need to...
Because int foo(int bar) { ... } int quux() { foo(10.5); } is legal, so the compiler doesn't know if the second call to area() is to...
Once, or lots of times?
Didn't it even display "Enter N:"? If it did, what input did you give it?
You can use something like IDA Pro - this is a very good decompiling tool. And as you wrote the original code it shouldn't be too difficult for...
>> it did not work How exactly?
What are your questions?
Just swap the entries in the array (after verifying one of them is zero), then you could either clear the whole screen and redraw all the numbers...
Strange thing about this "puzzle" is that it reads just like a homework assignment. Site's called Go4Expert for a reason. I think you wanted to...
In C++ arrays start from zero, not 1. So an array[10] comprises elements [0] through [9], and assigning to array[10] causes undefined behaviour....
OK, well if you're sure that i is automatically set to zero, then I must be wrong. Why not add a printf statement (or cout if you prefer) to...
You can't store multiple names in one string. Well, you can, but not in the way you're trying to do it. You're trying to use array semantics:...
Read the link in my sig before you post again.
>> it say i have to use vector, and i try but have errors The errors are because your code is wrong. >> i can't use getline(cin,names).could...
The clue was in the word "Read". Think of various things you might read. For example, would you read a donkey? Or perhaps you might read a...
Read Petzold's Programming Windows. This will show you how.
You'll have to share your code. Also let us know what version of what compiler, and what version of what operating system, you're using. This...
Are you looking at (a) the address of ptr, (b) ptr itself, or (c) what ptr is pointing at? If (b) then it should be exactly equal and if it...
Separate names with a comma.