Beginners - March 2015 (Page 36)

by thor36
Compiling code in CodeBlocks
 
Hello, I had a problem with settings, to allow the code (which uses cURL) to compile in CodeBlocks, Windows 7. The original question is here: http://www.cplusp...
[1 reply] : Hi, The man page explains things better than I can: http://linux.di... (by norm b)
Need help with function call!
 
After compiling i am getting a "a function definition not allowed here before a '{' token" error. Need help fixing this. Line 90. And also I'm getting a expect ...
[1 reply] : Hi, You are missing the while condition for the first do loop. Don'... (by TheIdeasMan)
Need help writing a "for" loop please
 
Can I please get some help using the "for" loop ? I just started learning how to use C++ and I'm having trouble with this 1. Write a program to compute the s...
[no replies]
by camk16
Sum of the Series (1,2)
 
Hello, I'm trying to figure out how I might do this: Calculate the sum of the series S n , where S n is the sum, from i = 1 to n, of ( n + n 2 ) / 3. Altho...
[20 replies] Last: Read my posts, what isn't clear? You didn't change anything I said. (by chouhaizi)
recursive hanoi with 2D arrays
 
Hi, so upon searching for info it would seem there is rarely any replies when people ask about towers of hanoi code. But I'm going to ask anyways. I'm not ask...
[3 replies] Last: No, b just means that it's a 2D array and the 1st dimension isn't sp... (by dhayden)
by Jyrz
Class functions
 
Doing a project for an intermediate C++ class in Qt and I've run into a little problem that I can't figure out. I'm sure the solution is simple but my head does...
[2 replies] Last: I figured it out, probably. Including the Person class at the top brok... (by Jyrz)
What is a good book to learn C++?
 
I am a newbie to C++, however I have done computer programming before. I've done a tiny bit of Java, but other than that, I've only used graphic based programmi...
[no replies]
by camk16
Precision & Rounding
 
Here is the question: Write a program to compute, and later output to the screen, the average of an arbitrary sequence of integers entered, via the keyboard, b...
[no replies]
by Edzeo
Searching websites for a request.
 
Not too sure how to explain what I'm trying, but here goes. Trying to make a small program which lets you type in a text box what you want, eg "coffee table"...
[no replies]
by sick09
Game Program
 
Base on the rule, there will be 3lifelines that you may use. But you can only use each of it once. How can I make those lifelines be used only once? this is...
[6 replies] Last: You should learn about functions. Your code is difficult to read beca... (by GRex2595)
function calling with random generators
 
I'm not asking anyone at all to write the code for me or anything like that, just some pointers on where to start and what to think about when writing the funct...
[8 replies] Last: Sorry for the confusion! The range is supposed to be previously set i... (by closed account zT4NhbRD)
Need guidance
 
Hello guys, I want to create a bot that automatically (flawlessly) plays (and beats) a minigame on a game for me. I am pretty new to C++, but I assure you that ...
[no replies]
Not compile
 
the code wont compile ,, whats wrong with this code ?!! #include <iostream> int main(){ int a, b, c = 0, d; int i = 0; int j = 0; ...
[3 replies] Last: What you are using in each of your if statements are conditional loops... (by Militie)
return pre sized vector
 
Hi guys.. I stumble a upon a little which i cannot come around.. I have function of type pair, which returns a 2 coordinates consisting of displacement on ...
[1 reply] : So your code is roughly is: std::pair<int, int> your_code(); void othe... (by MiiNiPaa)
by Ganado
Question on constexpr strictness
 
So I was looking into stuff that can be done with constexpr variables and functions, and the jist I got was that if something is marked as constexpr, the comp...
[6 replies] Last: Thank you MiiNiPaa, all is clear now. (by Ganado)
by Kman
3 unresolved externals?
 
I know what it means, but I'm having trouble finding the darn things. Can someone help me find them? #include <iostream> #include <string> #include <f...
[10 replies] Last: void getData(ifstream&,studentType , const int); void getData(ifstrea... (by Kman)
Positive numbers and avg
 
Write your question here. Enter any positive numbers. Loop stops when there is a negative number. Output the average of the numbers #include <iostream> using ...
[3 replies] Last: A few issues then, you have two variables: n, and num. What job is ea... (by Ganado)
HELP!!!!!!! I hate factorials.
 
I have been banging my head against the wall with this problem since yesterday. I have tried everything. The exercise is: Write a program that lets a user e...
[8 replies] Last: Feel free to post your solution in case someone else has the same issu... (by giblit)
return 0?
 
I ask it here even if it may not be an easy question. What is the reason of writing down return 0 in the int main() function? I find on many forums answers like...
[6 replies] Last: Well, it also marks the end of your program. Nothing after return 0; ... (by closed account 2LzbRXSz)
by Dogman
No errors, but the program doesnt do what i want. class header included.
 
The program is supposed to ask the user for the length. then check if the length inputted is greater than zero, and if it is then the user's length will be plac...
[11 replies] Last: wow...something so trivial..i need some sleep. Thank you so much fg10... (by Dogman)
March 2015 Pages: 1... 3435363738... 51
  Archived months: [feb2015] [apr2015]

This is an archived page. To post a new message, go to the current page.