Beginners - December 2010 (Page 23)

Char and String
 
Sorry to be clogging up the forums, but I have another question. As I make my way through the tutorial, I came across the data types char and string. I know t...
[14 replies] Last: That's enough for now; thanks, all! (by Ameobea)
reading a file into a vector
 
I am trying to read a file into a vector, but i think i got it wrong. any pointers? void insertIntoVector(vector<Poem> &story, string word) { Poem temp;...
[1 reply] : if I interpret your code right then you're trying to add a word. if th... (by coder777)
calculating with binary tree
 
hi.every one i haven't understood calculate with binary tree. which document i should read.? if you have any binary tree's document please share with me. t...
[no replies]
by firix
Ebooks
 
Hi I want to ask you something I have read the book two times in C + + programming language(Bjarne stroustrup). now I want to read the following books whi...
[11 replies] Last: Thanks all... (by firix)
Teaching C++
 
Hi there I'm Jack and I'm 17 years of age. I've wanted to learn C++ for a while now but haven't had the chance too. Would there be anyone willing to learn me C...
[6 replies] Last: good luck :) (by firix)
Trouble with Vectors
 
Hi people. I have never worked with vectors before so I am wanting to know if the way I did this one is correct or not. cout << fixed << setprecision( 2 );...
[1 reply] : No problems guys, I got this one thanks. (by nglwthnati2de)
static, can I under stand like this?:
 
once anything is is declared as static, it will always exist in the memory, and all the same class or function or variable will use the same memory block until ...
[1 reply] : class XL{ int i; static int s; public: XL(int ii) // constru... (by firix)
Filling arrays the easy way
 
I've got a large collection of objects: T01, T02, ... , T41. These objects belong to a class Class with a member function F: double F(const Class* C) ...
[4 replies] Last: Noted. But you got the idea. Actually, I'm working in a framework call... (by gammaray)
converting to hexa
 
this is my code i don't understand,why my result 12cA is? please explain to me. thanks a lot // Example1.cpp : Defines the entry point for the console a...
[no replies]
Static data members = fail
 
Why does this show me this error undefined reference to `SomeClass::data' class SomeClass { public: static int data; } ; int main() { ...
[5 replies] Last: It works! Thanks for the help. (by Dark Byte)
Unable to compare string from file
 
i wanted to compare a string and number stored in a file "Albums.zu" with a string and number entered by the user. I wrote the following code void album::g...
[1 reply] : Solved.... there was an ; at the end of if (by jmv1993204)
need assistance using classes and arrays
 
here is my problem: write a class that finds the average of an array of 5 test scores. Those scores are 98,73, 65, 41, and 89. The class should have varaible...
[8 replies] Last: The default constructor should look something like that you have there... (by Albatross)
Word Check Program
 
I'm in the middle of a program assignment and I'm getting an error I don't quite understand. Here are the tasks it must accomplish. 1. Open the file conta...
[1 reply] : You need to read the word into a temp string and use words.push_back()... (by PanGalactic)
Trouble with Battleship Game
 
I just finished coding my little Battleship game, and everything works okay for some quick work. Right now ships don't have three sections like the regular batt...
[2 replies] Last: Yeah, I now see I'm going to have to rethink my random number generato... (by AlexDGr8r)
C++, sort names using linear and binary searches?
 
I'm trying to get used to using the search functions, as their main focus is to just search for something specific in the array. I'm used to looking through num...
[no replies]
Random Integer
 
Hi. I'm new to C++ and new to these forums. I have coded in Warcraft 3's language JASS which, if I understand correctly, is a form of C. (Or based of it, or s...
[2 replies] Last: Seeing as this question was unanswered... Line 17 is a line that wi... (by Albatross)
New programmer and i need assistance
 
we are working basically from scratch and have no skilled programers, we are all learning to use labview, but i think that it has a feature to script using c++,...
[1 reply] : "Script" using C++? In Labview? Er... why would you want to do that wh... (by Albatross)
Error on destruction of boost::shared_ptr
 
I have an stl vector of boost::shared_ptr's declared like so: vector< shared_ptr<delim_list> > row_data; delim_list is a custom class encapsulating a vect...
[3 replies] Last: It looks like I misplaced the location of the error, but its still puz... (by simpleson)
How would I write this type of function?
 
I'm trying to write a function that counts how many times the score is in the array and returns the number. How would I would I even go about this?
[1 reply] : The function needs to accept an array (and the array size) and return ... (by PanGalactic)
Trouble populating and displaying arrays
 
I'm trying to use a while loop to populate a set of arrays with data entered by a user. I am then passing the arrays to a function to be displayed when prompted...
[4 replies] Last: Thanks for the assistance slicedpan. I fixed the array by simply mo... (by slashsign)
December 2010 Pages: 1... 2122232425... 35
  Archived months: [nov2010] [jan2011]

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