Beginners - March 2012 (Page 40)

by Maiels
sleep()
 
hello! I tried to use sleep() but it says that it has not been declared. but i have put #include <time.h> in fact i have tried everything i found on google...
[5 replies] Last: :D You guys on here are a lot of help to the beginner like me haha (by Eath)
vector.size() gives an error???
 
i have used .size() in the past and its worked just fine but here for some reason i'm getting an error. any ideas? float xPro = {0.0, 0.0, 0.0}; std::cou...
[6 replies] Last: size of an array sometimes cannot be known when creating an array, lik... (by chipp)
General Question About Class Access to Public and Private Variables
 
I have a general question about accessing public and private variables. Suppose I have a base class; call it Base. Suppose I have 2 child classes from Base...
[2 replies] Last: Thanks. I don't think making privateVariable Protected would do me mu... (by skyline01)
char pointer again
 
Hello everybody, I have a problem with the following function // get a column from a string for a given delimiter char * getColumn(char * inputStr, in...
[4 replies] Last: OK I see the point. Thanks a lot. Michal (by michal mackanic)
by ufs
Please Help! :)
 
First hello to everyone. I'm new to this forum and also to C++ programming language. I need help with a task that may look very easy to you, but I've just s...
[3 replies] Last: Creating the 5 students will be as simple as creating an array or vect... (by MrHutch)
Class Constructor Help
 
Hi all. I've made 2 classes, one that opens an ifstream and reads data, and the other that opens an ofstream and writes data. The third class I am working on ...
[3 replies] Last: It's best to use initialization lists for a couple of reasons. One is... (by MrHutch)
Not the output desired
 
Ok when I compile this program it asks me for 'Gender' and if I put something other than 'F' or 'M' it should go straight to an 'Invalid Selection!' message tha...
[6 replies] Last: The if-clause is just checking something. If the gender is not 'M' it ... (by CosminNTG)
by pzling
pow() returns Infinity?
 
Hi I'm trying to evaluate 2^19937 with the pow function. In this case I'm using the following code: double b = 2; double n = 19937; double res = p...
[6 replies] Last: yea, adding another level of detail, this was all part of building a r... (by pzling)
Print a middle character of a string
 
I'm working a problem that returns a string containing the character in str if the length of str is odd, or the two middle char if the length is even. her...
[9 replies] Last: Thanks everyone for the help, i got it!! (by Lwen8888)
array help
 
I was hoping someone could give me a hand with this. I am very much a beginner, and trying to learn this has been a challenge. I need to fix my last void functi...
[3 replies] Last: Believe it or not, that's because inValues is an undeclared identifier... (by cire)
functions in dynamic memory
 
can i direct dynamic memory to a function?? like: p =function1(); ??
[4 replies] Last: here is my code.. cout<<"\t\t\tEnter your choice: "; cin>... (by yhangel)
by dlusis
How to Wrtie this Function!
 
Help cant write this question out... Write a function which will have as input two double array arguments each pointing to, at most, 31 daily temperature r...
[1 reply] : Ok and have you even tried? Where are you having problems with? (by ResidentBiscuit)
by mohy93
c++ guessing #
 
i need help with this program, i need to give the user 20 chances to guess, and they should be asked if they want to playagain.(by playing again i mean generat...
[1 reply] : Ok and what is your problem? I for one didn't even really read your p... (by ResidentBiscuit)
decoder
 
im working a decoder for my project and i need a function that includes white-space that i can originate the data(char array) into an array here is my code if a...
[1 reply] : Try using getline. http://www.cplusplus.com/reference/iostream/istrea... (by long double main)
need help with conditional statements
 
any idea why it wont compile in unix? //-| --------------------------------------------------------------- //-| Assignment ID: PROG6a //-| File name: ...
[3 replies] Last: thanks to you both i got it done. nd i would include my errors but uni... (by byronflds)
Plotting Realtime Graph in visual studio c++
 
Hi everyone, I am a new to windows programming.I am developing a application to process the measurement data from a laser sensor. I have got the data from th...
[no replies]
SFML - Issues right off the bat!
 
Ok so I keep hearing all this hoopla about SFML, so I decided to download it and give it a go. First of all, I had some file linkage errors. Got those resolved,...
[6 replies] Last: I did alittle playing with code::blocks and SFML in a winXP VM. The si... (by naraku9333)
by JetX9
Am I allocating this right, and what is my instructor talking about?
 
Okay. Working on assignments here, trying to get them done...and I dunno if I am allocating this memory correctly. Note I am in a C++ class, so the programs we ...
[2 replies] Last: Yes it does. Thank you very much. Now I can finish this exercise. (by JetX9)
by mikeCC
Dynamic Memory
 
Hello, I had an assignment for school that asked me to write the implementation file for a dynamic sequence class. The assignment came with a test file that le...
[6 replies] Last: I understand what you mean now. Thanks for the help. (by mikeCC)
harmful things
 
struct Platform { cl_platform_id operator*() { return platform; } // no virtuals, no other data protected: cl_platform_id platform; }; std::vector<...
[1 reply] : Why don't you use resize instead of reserve? (by Peter87)
March 2012 Pages: 1... 3839404142... 71
  Archived months: [feb2012] [apr2012]

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