Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for wschamps42

I have a few code snippets from a tutorial Im reading my friend gave me to learn c++, and a lot of it is written in shorthand but I cannot fully understand the shorthand code. return c < Cnt ? &foo[c]:NULL;; this: return (cc > 0 && cc <= mCnt)?&foo[cc-1]:NULL; …

Member Avatar for wschamps42
0
157
Member Avatar for wschamps42

Hello, for some reason, I am getting a very weird negative nuber as my average for my program, here is my code: int sum, avg; sum = 0; avg = 0; for(int i = 1; i < size; i++){ sum += array[i]; } avg = sum / size; my output …

Member Avatar for vmanes
0
243
Member Avatar for wschamps42
Member Avatar for Banfa
0
152
Member Avatar for wschamps42

Hey guys, can anyone tell me how I could use randomaccessfile to read in a txt file and copy the content to a tree? Also how to then do the opposite and write newly changed nodes from the tree onto the text file? It's pretty much like creating a save …

Member Avatar for bguild
0
267
Member Avatar for wschamps42

So what would be the size of this array in bytes if on a 32 bit machine: double *arr[4] ;

Member Avatar for rubberman
1
262
Member Avatar for wschamps42

Hey guys, yes the title sounds funny, I am working on this project for a special someone, and I want to ask her out by writing her a simple program. I am having some trouble though with the execution of this idea. I have a pseudo code ish plan in …

Member Avatar for bguild
0
114
Member Avatar for wschamps42

Can somone please explain to me what does fork() != 0 mean? From what I understand I think it means if fork is not false? Or if fork is true then.... I dont understand how Fork() can be true or false, seeing that it just creates a copy of a …

Member Avatar for np complete
0
178
Member Avatar for wschamps42

Hello I am new to C and was wondering if someone could just please explain to me what this function does? Thats all I just need help understanding it. I'm new to C so some one the syntax is tough for me to understand and Im not sure what the …

Member Avatar for TrustyTony
0
128