Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #2K
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 14

9 Posted Topics

Member Avatar for orwell84

[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.

Member Avatar for orwell84
0
160
Member Avatar for fireballnelson

[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 …

Member Avatar for ArkM
0
168
Member Avatar for new2c++

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 …

Member Avatar for Freaky_Chris
0
101
Member Avatar for Liinker

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 …

Member Avatar for Liinker
0
874
Member Avatar for athar89
Member Avatar for berting

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.

Member Avatar for ajay.krish123
0
95
Member Avatar for rkumaram

[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 …

Member Avatar for rkumaram
0
92
Member Avatar for fedderico10

[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 …

Member Avatar for Lerner
0
170
Member Avatar for Liinker

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.

0
81

The End.