Beginners - September 2012 (Page 14)

Declare const with no type
 
I'm trying to follow an example from my book, and has made the following code: #include <iostream> #include <iomanip> #include <cmath> using namespac...
[2 replies] Last: Early when a variable has no type specifier the int was assumed. Now t... (by vlad from moscow)
Help with functions, please.
 
This is going to be somewhat of a long read, please bare with me. First of all, these are the instructions to the program I'm supposed to make: You will need ...
[7 replies] Last: Nevermind, figured it out. For those of you who are curious as to wha... (by degausser)
boolean function return
 
hello- i am trying to test two different answers with this function i am using. i am wanting to always compute the sum and product, and only the quotient if my...
[3 replies] Last: You wrote the function that return false if an argument of the second ... (by vlad from moscow)
Need a bit of help with string and ENTER as an input please?
 
So I got this project due for class, I've got the majority of it done, but I'm stuck on this last bit. I'm suppose to make a program where you type in two in...
[9 replies] Last: That's totally fine, just needed a push in the right direction is all.... (by noylekul)
about string and getline!!
 
Hi i am trying to make a program that gets string and divide it by new line which is \n. i noticed that if i assign a string into a variable and run the program...
[4 replies] Last: thank you very much!! now i got it!! (by munjo5746)
Homework help
 
// DogDayCare.cpp : Defines the entry point for the console application. // Eric Vardinakis // 9'24'2012 #include "stdafx.h" #include<iostream> using na...
[3 replies] Last: [code/ DogDayCare.cpp : Defines the entry point for the console applic... (by closed account 37S1hbRD)
by MW130
problem with simple sdl code
 
hi i am trying to load an image. I made a program to do so. I get errors that say use of undeclared indentifier "sdl surface, hello, and null" the errors are ...
[2 replies] Last: I think that the problem is that NULL is undefined name. You should in... (by vlad from moscow)
by khal
Average
 
I am kinda confused on how to calculate the average depth of a tree. Its the max depth divided by the total amount of nodes? Is this correct? Thanks
[2 replies] Last: @Aceix Thanks for being useless. The reason I use this forum is for un... (by khal)
by dusty
Functions not returning values
 
I am writing a program to yield the result of a factorial with an equation rather than using if statements. The goal of the problem is to use functions to get ...
[2 replies] Last: Wow, I feel really dumb. I should have seen that. Thanks for respond... (by dusty)
Quad. Equation Solver Involving functions and constants Error
 
I am writing this Quadratic Equation Solver for school. As I write my output section the cout and cin get red-lined by Microsoft visual 2010 Express. The final ...
[2 replies] Last: So after taking a break to get the kids I read over my code and fine t... (by boba bev)
by mk620t
Help me simplify my class assignment
 
I'm in a C++ class and have completed my assignment. Everything works correctly, but I was hoping for some tips or anything I could do to make it more streamli...
[6 replies] Last: Reply to: Ryan Boykin Ok thanks! Now that I'm a little further into t... (by mhaggard)
Declaring Objects/Scope
 
Hi! I'm a beginner at C++ and I've been doing some reading on it, but I don't really understand scope pertaining to objects and a bunch of my errors are scope r...
[3 replies] Last: Thanks, busturdust! I feel silly... xD It was a very simple solution! ... (by FoolishOrpheus)
variabel scope
 
I'm trying to create a random number generator, and need some for loops etc. But I have some problems with my variables. Can someone please tell me why I get...
[3 replies] Last: Maybe you are using the same name Foobar for a declaration of another ... (by vlad from moscow)
Quick question: is it possible to use a non-fundamental type name as a variable name?
 
In a BFS program, I am using a queue, but I would like this queue to be called 'queue'. The program compiles fine but is this legal?
[2 replies] Last: Great, thanks! It's just a very simple program and I'd rather use 'qu... (by georgep)
C++ Yahtzee program help!
 
Hello there everyone! I Have been interested in C++ for awhile and figured I'd look online for some easy tutorials. I Came across this online assignment to run ...
[1 reply] : If it's something that u'r interested in then u should be doing it urs... (by soranz)
How can my program recieve exactly 8 digit input??
 
Hey guys..what can i do if i want my program to take 8 digit input number ,no less no more than it.. i try to ask my frind but its hard to get.. (but not using...
[7 replies] Last: You're right Chervil. OP should be more clear so we don't have to gue... (by soranz)
Evaluation of Postfix Expression Using Stacks! (Not Working)
 
Here is my complete code. I have really tried everything but couldn't understand where i am going wrong. There is NO ERROR in compilation but the output does ta...
[1 reply] : Hi! Code tags pls :) Should those while loops have {} ? (by soranz)
by ice9
XOR output
 
I've bee looking all day for good information on this question and have come up nearly empty. if I have this: result = 'a' ^ 'd'; What type should result b...
[5 replies] Last: I think it really comes down to how the number is to be displayed. Int... (by Chervil)
Adding a user's choice.
 
I am giving the user a choice. He inputs the difficulty level he wants to attempt and the code acts appropriately. I don't know how to go about this. I can prom...
[5 replies] Last: Instead of putting TheJJJunks code so that it must read the if's each ... (by whitenite1)
Help needed considering formula.
 
Hello. I need help figuring out the formula for an exercise. I need to set up a program, that would check if the point N (x and y points inserted by the user...
[2 replies] Last: Thanks, i got it sorted out. (by Toms Adakovskis)
September 2012 Pages: 1... 1213141516... 62
  Archived months: [aug2012] [oct2012]

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