- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
9 Posted Topics
Re: [QUOTE=orwell84;763476]I think the problem is that I don't know how to take the output of a function and use it...[/QUOTE] [CODE] int iReturn = recurse (input); or int iReturn = 0; iReturn = recurse (input); [/CODE] Also, your factorial calculation should be done inside the recursive function. | |
Re: [QUOTE=fireballnelson;766201]A pointer points to a memory location containing a specified value right? If a pointer is defined without something to point at, it can point anywhere, right? Here is my question: What are the practical uses of pointers? I mean why wouldn't you just make a reference to the variable … | |
Re: It gives me a headache... thats what it does. But seriously, I think its some kind of tic-tac-toe or connect four game. If you could throw some delicious code tags around it, that would be helpful. Under your post, click "Edit this post" Then add [*code=c++] before your code and … | |
I'm mapping a file view to share an array of 200 std::strings between two processes but I've been getting an access violation error when I write a string longer than 15 characters into the array. Does anyone know how I might increase the size of each array element so it … | |
Re: Please use code tags to make it easier to read. | |
Re: Gotta read the forum rules bud... show some effort before people will help. Post us some code you've written for this project and we can point you in the right direction. | |
Re: [QUOTE=rkumaram;763940]Following program gives me output 556 , I cant understand why ? [code] #include<stdio.h> main(){ int i =300; char*ptr =(char*)&i; *++ptr = 2 ; printf("\n%d",i); } [/code][/QUOTE] ptr points to the first byte of four that represent the integer 'i' the bytes for 'i' are (44,1,0,0) by taking the address … | |
Re: [QUOTE=Lerner;763981]You can store the return value in a new variable and pass it to the use the second function or you can place the function call from the first function inside the parameter list of the second. int temp = classA.function1(); classB.function3(temp); classB.function3(classA.function1());[/QUOTE] You will also need to change your … | |
Hello everyone and Happy Holidays. It's good to finally become a member of DaniWeb. I've used the forums for code references before but never actually signed up. Anyways, thanks for having me. I hope to be able to assist as well as possibly receive some assistance in the future. |
The End.