Beginners - October 2012 (Page 48)

How to solve an variable storage problem?
 
i did this to my global variables to try and get rid of them, but now there undefined to my entire program, even though they are public, did i do this right, an...
[4 replies] Last: ok, if you would gladly reply to my next reply and try to fix or at le... (by brandonator)
HELP! Weird error using functions.
 
My code just gives me a long weird error code. #include <iostream> #include <iomanip> #include <cmath> using namespace std; void presentValue(double,...
[4 replies] Last: Thank you very much. I forgot I had text within the function stating w... (by closed account y6DLy60M)
Code affect IDE? Xcode specific issues?
 
So, my issue is with Xcode. I keep getting the error that states Undefined symbols for architecture x86_64: http://cl.ly/image/1M1t0G2w092J here is an im...
[no replies]
Darn function does'nt work the way i want it
 
Hello gurru's of C++ Once again I have a very simple problem that I need some insight on it a for loop. I wrote a simple program where the program should j...
[1 reply] : I want to use a -for loop- Well, here's a version which is self-cont... (by Chervil)
Help with if else statement
 
Hello, im having with my if else statements it wont compile and im probably doing something wrong. But here is my code...... #include <iostream> #include <i...
[3 replies] Last: For what I can see as I didn't run the program. if (currentBalance ... (by leftcoast)
by kdubb
Rock Paper Scissors
 
#include <iostream> #include <string> #include <ctime> using namespace std; // Global variables enum Choice { ROCK, PAPER, SCISSORS} ; int myWi...
[1 reply] : //I need some help with this coding assignment...any suggestions? ... (by IceThatJaw)
Help ! error C2064: term does not evaluate to a function taking 1 arguments
 
#include <iostream> #include <iomanip> #include <cmath> using namespace std; void fallingDistance(); int main() { cout<< " I will display the the distance ...
[4 replies] Last: Thank you so much I completely forgot that. (by closed account y6DLy60M)
Flowchart help
 
I need help creating a flowchart from this source code and I have no idea how to start. I already made the program and the flowchart/pseudocode is what I am stu...
[2 replies] Last: Thank you, I can do the rest now. (by Sena2012)
Problem setting class functions equal to a variable
 
Can somebody tell me why this program wont work? I am really confused. #include <iostream> #include <ctime> #include <string> #include <sstream> #include ...
[1 reply] : Attack = YourFireType->SetAttack; Health = YourFireType->SetHealth; ... (by Aceix)
cannot exit do...while loop
 
Hello all, I'm a second year computer science student, and before I say anything, this question is regarding an assignment, but this is NOT the solution for ...
[15 replies] Last: ZOMG. sloppy9, you... are my hero. Popped that inside the main loop... (by kuriolis)
Facing difficulties in shifting & insert new numbers in array
 
The question says Write a function named insertNewElement that takes four parameters: an array of integers (List), an integer (newItem), the number of element...
[2 replies] Last: Thanks you, I got it working so far but I don't know weather it is 100... (by Ruthless)
Problem with setting class functions equal to a variable
 
Can somebody tell me why this program wont work? I am really confused. #include <iostream> #include <ctime> #include <string> #include <sstream> #include ...
[2 replies] Last: Can you fix this error please so i can implement it into my program pl... (by brandonator)
can you help me with another very simple array problem, then thats it for my frazzled brain for todai
 
so i want to move you (the '^' dude) up in the board, i been trying to move yous position in brdray, now how do i get his position and in case 1 move one of hi...
[11 replies] Last: thas still no workee workee five dollar ahh i forgot an = what i mea... (by devonrevenge)
by gtkano
for each loop ?
 
I just realized that in Visual C++ I have "for each" loop. Is the for each loop cross-platform ? Example code in Visual C++ 2010 #include <iostream> ...
[1 reply] : No, that is not standard C++. It's probably a compiler extension, whi... (by Disch)
Return an array from function problem
 
Hello, I have a cpp file that contains following code, #include <iostream> #include <fstream> using namespace std; int* boxes(int a, int rows) { ifstream co...
[3 replies] Last: I've solved the problem using vector. Please tell me if you see there ... (by Edi Amin)
Infix to postfix expression. Don't work
 
function definitions in classes are all right. problem is in output. error may be in handling array of char. using namespace std; # include <iostream> ...
[no replies]
Function/Table problem
 
solved
[3 replies] Last: Don't use pow to square a number, it's like using a sledgehammer to sw... (by Disch)
Problem getting g++ up to date
 
I'm trying to update g++ to 4.8, with C++ 11 support, on Ubuntu, but trying to initialize a vector with an initializer list still gives a compiler error. I've ...
[3 replies] Last: -std=c++11 and -std=c++0x is exactly the same. (by Peter87)
cout not printing
 
I can't seem to print using cout without <<endl. I've tried using cout << flush and cout.flush() but to no avail. What on earth is happening here?
[3 replies] Last: There's a lot of IO activity and stuff I cannot reproduce at my PC and... (by webJose)
how to translate-> static uint8_t * song = (uint8_t*)"C2.C2,D4,C4,F4,E8,";
 
Hi all, Can kindly help to translate static uint8_t * song = (uint8_t*)"C2.C2,D4,C4,F4,E8,"; my understanding as below, pls correct me if i am wrong: st...
[1 reply] : The string literal has type const char . In the expression it is con... (by vlad from moscow)
October 2012 Pages: 1... 4647484950... 84
  Archived months: [sep2012] [nov2012]

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