Beginners (Page 70)

by Torm04
Passing Pointers through various functions
 
Hello, in my assignment I am supposed to use pointers to pass the data throughout the different func...
[no replies]
by prhray
error: expected ';' , ',' or ')' before 'int'
 
I keep getting this error message: "error: expected ';' , ',' or ')' before 'int' " for line 10: ...
[2 replies] Last: I figured out what happened. I missed "," between x and int. (by prhray)
by SAL89
Question about Shortest path of the king
 
I all, I need help for a problem. This is not homework. the question is from here: http://codeforce...
[2 replies] Last: This is not homework. You try to learn by doing yourself. That is ... (by keskiverto)
Increment function help
 
I have just started learning c++, and I'm confused on one of my assignments. Write a void function ...
[3 replies] Last: Thank you @androidguy1 and @Ganado it works now. (by husband and wife)
by c4l
Least possible money needed for buying grain
 
Hey guys, I need to write a program that would find the least possible money spent for buying grain,...
[1 reply] : You have: bot = 0; // assign price to p , assuming that 0 < price if ... (by keskiverto)
why isn't this rounding properly?
 
see comments in code. u can see when 55.5000 is calculated, it rounds to 55. Then i assign the val...
[4 replies] Last: ok, read some of it. From what I can understand numbers like .1 can't... (by bob13bob)
Help with while loops (repetition structures)
 
I'm not understanding why I'm getting so many errors. Is there a simpler way I can code this? The p...
[3 replies] Last: You would want a do-while loop. Not a while loop. Put all of this code... (by TarikNeaj)
Read only variable is not assignable
 
I've been researching and I'm still puzzled on how this error (Read only variable is not assignable)...
[2 replies] Last: @Tarik, I figured it was the const! Thanks :) (by decoy98)
String exercise
 
Hello, I need to write a function char* strdup(const char* p) that copies a c-style string into mem...
[1 reply] : http://linux.die.net/man/3/strdup #include <iostream> #include <str... (by shadowCODE)
by gingy
Is There An Equivalent to the Not Equal Operator for Switch Statements?
 
My question is one I think is possibly a simple one. Is there a way to have a case in a switch state...
[4 replies] Last: If you wanted to be specific, you could use an if statement. For exam... (by cactus)
error C2059: syntax error : 'return'
 
Hey guys, I'm relatively new to c++ , and I'm having trouble with my program I'm writing. It's suppo...
[3 replies] Last: Glad it worked out :) (by TarikNeaj)
Problem with file data manipulation.
 
I'm trying to create a program that opens a .txt document with weight in kilograms separated by a wh...
[15 replies] Last: for (int i = 0; i < 5; i++) as file can be variable length, use w... (by anup30)
by SCB3
need some help with an array
 
uiu
[11 replies] Last: thank you, its all displaying perfectly now :) (by SCB3)
how to use while loop
 
Write your question here. when T1>T2 it works. but when T2>T1 it goes to infinity. thanks for help!...
[2 replies] Last: You're welcome. (by TarikNeaj)
best way to stream to file
 
Hallo, I am new to C++. I have only experience with C#. I have the below problem: in a loop i r...
[4 replies] Last: i did read your post carefully. what did you think i linked to? a bunc... (by Little Bobby Tables)
Rock, Paper, Scissors switch statement
 
So, i'm new to all this stuff and not used to c++ yet. My problem here is that when i enter 0-2 it w...
[3 replies] Last: http://www.cplusplus.com/articles/jEywvCM9/ (by TarikNeaj)
by Ganado
Non-virtual Inheritance overhead question
 
I have this example question about inheritance. Let's say I have two classes with partial common fu...
[2 replies] Last: Great thanks, that's what I assumed as far as speed goes, and it's eve... (by Ganado)
by Rob k
How to compile program in Emacs
 
Hi guys, Struggling a little here, I have a mac and am using emacs, but I can't seem to compile m...
[1 reply] : For anyone finding this thread, I have solved my problem, the problem ... (by Rob k)
by Fedeb
Store unkown size of input data
 
Hi, I have a set of files with the following format of data: File 1 A B C 1 1 2 2 1 2.2 ...
[6 replies] Last: To find lines of a file you could use std::getline. To find the numbe... (by megatron 0)
Project due need assistance
 
My tutor has given me these steps for one of our end of my year projects I am struggling with c and ...
[1 reply] : #include <iostream> #include <cstdlib> // Declare constants and map... (by megatron 0)
Pages: 1... 6869707172... 94
  Archived months: [feb2015]

Cannot post in this page. To post a new message, go to the first page.