Beginners - September 2012 (Page 42)

by MW130
What is expected unqualified-id
 
omg lol im tired of this error msg. Can someone tell me what to do to avoid it plz? In almost every program I try to make, It is an error. Btw, It is alm always...
[3 replies] Last: disch; thank you soo soo much dude. You were a huge help, and taught m... (by MW130)
by MW130
How to make an external output window? xcode
 
hi i am getting more into c++ and i use xcode. I would like to know how to have the code appear in an external window.. Like the output shows up in the same pag...
[no replies]
whats wrong in my code?
 
#include <iostream> #include <iomanip> using namespace std; double getBMI (int h, int w, double s); return (w/(h*h)); void output (double b); ...
[4 replies] Last: You are confused with function prototypes and implementations... This... (by Aceix)
by cadlac
Input/Output questions
 
Hello! I'm new to programming, and am trying to do what I believe must be a very simple I/O project. I'm trying to have the user input a word, that correla...
[4 replies] Last: This might help if you're thinking about more efficient options: http:... (by georgep)
Private or Public?
 
I just wanted to know a dumb-down version of the difference between the two Private or Public within writing C++/C# code?
[4 replies] Last: In a nutshell: A class separates the world into three pieces: thing... (by Duthomhas)
what is wrong in the given code its not working
 
struct integer { int x; void set(int i) { this->x=i; return; } int get() { return this->x; } integer operator=(integer ...
[3 replies] Last: We can but in this case a copy of the object will be created. When a... (by vlad from moscow)
C++ won't recognize getline(cin, itemName)
 
I am having trouble getting MS Visual C++ to recognize my input for the 2nd getline I have listed. It already recognizes getline(cin, firstName) and allows for ...
[4 replies] Last: Thanks! (by andigirlsc)
How to concatenate elements in a char Array and store in a short Array
 
Hello, I am working on this project where I am receiveing a char array and need to concatenate elements and store the combined element in a short array. For E...
[1 reply] : The result depends on whether your system uses big endian or little en... (by vlad from moscow)
Having problems with a const reference parameter in function
 
I am a beginning and am testing my skills with the C++ driver for the MongoDb database. I've written this function: void printQuery(DBClientConnection &c, s...
[no replies]
stream manipulators
 
Hi Is there a stream operator like hex, dec or oct to convert decimal numbers to binary numbers? I can't say bin ... so what can I do?
[1 reply] : For all of that and more XD http://www.cplusplus.com/reference/iostrea... (by soranz)
condition
 
Hi I faced that problem: if i = 1, j = 2 what the following prints?: cout << (i >= 1 && j < 4) << endl; I tried it and the output was 1 but why...
[3 replies] Last: ahaaaaaaaaa thank you very much (by Sarah93)
by skarla
memory managment.
 
#include<iostream> using namespace std; int *resize(int *old,unsigned int oldsize,unsigned int newsize) { int *tmp=new(nothrow) int ; ...
[7 replies] Last: A new array has been made, that could be a different size, and the old... (by Moschops)
Computer Science Program Help
 
AHSDFAS
[2 replies] Last: I had a while if loop after line 39 but it did not work so I deleted i... (by chunkymonkey11)
How would I solve a problem like this
 
Exactly as the title suggests: http://aipo.computing.dcu.ie/programming-problems#___Cube_Chaos Please just explain the algorithm, or give pseudo code.
[no replies]
Undefined reference to function error
 
Hi! When I try to compile this code it gives me this error: Line: 36, undefined reference to `TextGetcher(std::vector<unsigned char, std::allocator<unsigned...
[2 replies] Last: thanks Moschops! I pretty much cleared out my #include chaos and that ... (by Mrcerimo)
by MW130
How to put images in c++?
 
Hi I am new to doing c++ programing, and I want to make a dichotomous key for science fair. http://en.wikibooks.org/wiki/Dichotomous_Key basically this would be...
[1 reply] : Essentially, you ask the operating system to do it for you. You can do... (by Moschops)
Whats wrong with my code???
 
// code error in line five #include <iostream> using namespace std; int main() { do while int num=9; cout<<"Pick a number 1-10"<<endl; cin>> age; ...
[5 replies] Last: The errors would be a lot easier to see if you properly indented: #i... (by Disch)
problems with arithmetic problem
 
#include stdafx.h #include <iostream> using namespace std; #include <string> int main(){ // Declaring variable for Positive integer int p = 0; cout <...
[3 replies] Last: next time you ask a question, write the code in Source code Format (se... (by sigmablack)
It's seem cannot print out! Help! Noob Here.
 
Hello. I'm an engineering student and i have a problem with my program that I encode. It seem's that it can not print out the results. This program is all about...
[2 replies] Last: Does the program require that you put the cout inside the for loop? If... (by Need4Sleep)
Draw board on console
 
Hi everyone, Ok, so I have this assignment to create a tetris game using C++. I'm trying to draw the board and the logic isn't working. I just want to put a ...
[8 replies] Last: That one worked! Thank you so much!! I will check out the link on ot... (by newbe25)
September 2012 Pages: 1... 4041424344... 62
  Archived months: [aug2012] [oct2012]

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