Beginners - February 2011 (Page 20)

Static Functions
 
Hi, I was reading some tutorial(Here: www.functionx.com/cpp/index.htm) and then the tutorial mention static function without any explanation. Static Fun...
[5 replies] Last: Thanks guys I get it now. (by hitmanben2)
by firix
iterator class for list and vector
 
Hi, I've written the source code vector and list. I would like to write the iterator class for these classes template <class T class Itor{ // commo...
[no replies]
Loading text into memory
 
I need to make an array of pointers to a string where i allocate about 19 bytes. After the 19 is used i have to increment 10 each time it is filled; so ill hav...
[11 replies] Last: im trying to fix the problem but nothing is working. Do you have idea... (by moorecm)
by tonnot
Declare an array at .h and create at .cpp
 
I'm a little losted... I want to declare an array of objects at .h file (to say my class that are private). And later, I want to create it : at .h a_ob...
[5 replies] Last: Yes, you cannot dynamically allocate an array of objects and call any ... (by jsmith)
by tonnot
How to pass 'numbers' (int, float...) to a single variable into a function ?
 
I know overload methods but.... Is there some type to receive numbers and later know the real type ? In the old VB it was the 'variant' type. I'd want to...
[2 replies] Last: At that point you don't even need templates. Just make non-templated ... (by jsmith)
Need code for a subset problem
 
Hey guys! I need a program that can extract a number that determines how many elements the set has and that creates a subset that has the property that every n...
[1 reply] : I need code that parses coredump files and outputs the values of all t... (by jsmith)
by Dannk
equation
 
Please someone help me write a c++ program for the equation, square root of a^2+b^2 =c. Thanks.
[1 reply] : Again? See this: http://www.cplusplus.com/forum/beginner/36468/ The... (by filipe)
Extracting information from a text file
 
Let's say I have an array of structs called animals, and for every struct in the array I need to get struct.name and struct.number from a text file that looks l...
[9 replies] Last: the ; goes in your txt file like so: ;some header information here ... (by danaigo)
Issue with funtions
 
I am pretty new to programming. For one of my classes i have to write a program using functions. So far this is what i have. I left out the functions that are w...
[2 replies] Last: Wow. I can't believe that. It was very late at night but wow. Thank yo... (by jokerfwb)
Linker
 
Hi, I'm new to C++ and I was wondering what the linker does. I'm currently using "Sams Teach Yourself C++ In and Hour a Day" but he doesn't explain it clear eno...
[8 replies] Last: Just about; the term "library" tends to commonly be applied to the hea... (by Moschops)
How to read all files and all subfolders (including their files)
 
My task is going to read all the .wav files and all text files without extension (like those in Linux), read them and process them. For each pair of wave fil...
[3 replies] Last: But I still don't know how to search files in those subfolders. Now... (by dynamiclc)
what is "cout<<cout<<"
 
I had an exam in C++ today There was a question to find output. There was a code like cout<<cout<<X *3<<endl; When i tried it in computer, i got the mem...
[1 reply] : You did not get &x , you got &cout. (sort of) That's because ostream ... (by hamsterman)
convert minutes to hours and minutes?
 
Hey everyone, im back again with another question.I know this topic has been brought up before, and i have searched and read all the topics but still a bit conf...
[8 replies] Last: If you want something more to think about: Personally, I would make... (by sadavied)
by ctrlz
Not compiling, errors
 
These are the instructions for my project: 4. You will need to write a program that has three functions and performs the following: (a) asks the user to ent...
[10 replies] Last: What is the purpose of the code on lines 79, 86, and 95 in last posted... (by sadavied)
by rekson
How to output a polynomial in c++?
 
If I want "3x²" to be output in my program, and I have a variable holding the "3" as float coeff and one holding the "2" as int expn, how do I go about display...
[1 reply] : You can't have superscripts in console. You'll have to go with 3x^2. (by hamsterman)
by rekson
Beginner's question on Arrays
 
Can I write an array variable as "int a ", as in an array with no specified amount of elements to hold initially (to be determined later with a index variable)?...
[1 reply] : Can I write an array variable as "int a ", as in an array with no spe... (by Disch)
Math not computing correctly
 
My problem is that my summation function is not working correctly. when I subtract the Integer value minus the mean I do not get the correct answer. I am ...
[6 replies] Last: Which of these is wrong? I don't get it, what -6.25? 39.0625 1.5625... (by rocketboy9000)
by lichul
Microcontroller
 
need help... how de i start learn c++ microcontroller programming? thank u...
[3 replies] Last: thank u so much for the answer... if i wanna buy a microcontroller fo... (by lichul)
Can anyone tell me how to improve this program?
 
Can anyone help me to improve this program? So please feel free to correct me or tell me what I'm doing wrong. Thanks! #include <iostream> #include <str...
[2 replies] Last: Make it actually give me a snack and/ or a beverage. (by Danny Toledo)
21 dice game
 
ok so im doing a dice game where you try to reach 21 and if you go over 21 then your score gets reduced to 13. it is not working right. it keeps the first rando...
[11 replies] Last: Remove lines 37 to 48 for now. line 25 and 32 are outputting the valu... (by Zaita)
February 2011 Pages: 1... 1819202122... 43
  Archived months: [jan2011] [mar2011]

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