- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Comp-Sci student
Re: you could also add [icode] system ("PAUSE"); [/icode] right before you return from main. This will cause the program to stop and wait for a key to be hit before it closes. You would do this instead of [icode]cin.get()[/icode]. | |
hey, i am working on this project, and have made it to the end of the hard coding part. Now i need to work out the bugs / get the thing to compile. I am having some trouble though as i am getting error messages that i dont understand. here … | |
Re: use code tags!! | |
Re: you can use a prototype. In c++ a prototype is declared at the top of your program, outside of any functions. the prototype is the return type of a function, the name of the function and any arguments that get passed to the function. the prototypes for your program would … | |
Re: [URL="http://www.computerhope.com/binhex.htm"]This[/URL] should help. | |
Re: [URL="http://www.daniweb.com/forums/announcement8-2.html"]Read this[/URL] | |
Re: couple of things that i noticed without knowing what problems you were getting: [code=java] double i = 0; for ( tempArray[0] = 0; i < tempArray.length; tempArray[0]++); i = i - 32 * 5/9; [/code] The 2 biggest issues that i see are : 1. you put a semi at … | |
Re: That is the practice that is taught to beginners. if you make it, you should clean it up. | |
Re: you could make the folder a drop box of sorts, where the folder has write only permission. Students could drag files into the folder, but not see what is in there, nor edit what is in there. | |
Re: when you output to your file, the text editor that you open the file with (notepad for example) will have an option to automatically wrap the words to the size of the window. If you want the lines to wrap at a certain set length, add something like: [code=c++] int … | |
Re: [QUOTE=Rashakil Fol;787165]Why don't you just learn both?[/QUOTE] I agree. They both are very similar. Once you get one, the other comes easily. | |
Re: [CODE=c++] #include<iostream> using namespace std; int main() { int x,y; int *p1,*p2; p1=&x; p2=&y; *p1=10; *p2=*p1; p1=p2; *p1=20; cout<< x << y; return 0; } [/CODE] I believe where you are getting confused is at line 11. There you tell it that the address that [ICODE]p2[/ICODE] holds is to be … | |
Hey, i am working on a project in which i am making a minesweeper game. The game part was written by my prof. all i had to do was make the class and header to run the background of the game. I have done so successfully, but i am having … |