General C++ Programming - July 2010 (Page 13)

Using a Pointer as the String
 
I have a question that I haven't got yet. I want to pass a pointer in a void function. And count the words in the pointer. Well I got it to echo back what I typ...
[8 replies] Last: You're welcome (by PiMaster)
Selection Sort in a payroll program
 
Hello all, hope someone can help me out with this. Can someone please help me add a selection sort to my payroll program. I want to sort the net pay (ascending)...
[6 replies] Last: so where you say char employee name 20 in the brace make it MAX2. So i... (by Allenmy)
How to get past a blank line?
 
When my input file reaches a line that only contains a newline character, that same line keeps being read infinitely and I can read no further. do { ...
[3 replies] Last: I was told to replace the body of my loop with infile.getline(moo... (by lnwlfx44)
Write a c++ program that will calculate the total electric bills
 
Im new to this one . i would really appreciate if you could lend me some knowledge about it. im looking for a sourcecode . im begging we will pass this tommorow...
[4 replies] Last: it is too easy mate you are lazy (by gregson)
by elega
Template typedef as function parameter
 
Hi board! I have a situation where my (class') function takes a template class parameter, but I'd like to have that parameter type typedef'd. I have an en...
[11 replies] Last: (kinda kludgy, but maybe it'll get you past this hurdle so you can de... (by elega)
mutable constants
 
I'm getting an error message on each of the getters for a class i'm writting. The error says: error: passing `const model::container::Item' as `this' argument...
[4 replies] Last: that was all it was. Thank you. (by ischuldt)
Unresolved External Symbol
 
I get these errors when attempting to compile my code: 1>Student.obj : error LNK2019: unresolved external symbol "public: void __thiscall Student::getSsn(long)...
[1 reply] : You've only declared those functions; you haven't provided an implemen... (by jsmith)
y/n interface
 
Hey, I am not new to c++, but still learning. As in I dont get pointers but I understand classes, functions, and the other main features of c++, so I will try ...
[9 replies] Last: okay, great. Thanks for all the help (by justinmburrous)
I have a fatal error!
 
I wrote a class and a operator+ for that. in operator+ compiler causes a processor fault when i want to create a class-name object and return it. somthing lik...
[6 replies] Last: You've not answered the questions about the code you've posted an gone... (by kbw)
by moust
Using two cpp file to implement a class
 
Hello, I was wondering if it was allowed by standard C++ to split the implementation of a class in two different cpp files, this mean implementing some metho...
[3 replies] Last: Does it also work if one method from one file call a method from the ... (by Athar)
by NGen
Working some Template Magic (1,2)
 
A couple of months ago I wrote a class that allowed me to store any single type of variable, it worked kinda' like this: CAbstractVar *pVar = new CVar<int>;...
[21 replies] Last: No, that doesn't work either, because T could be const or volatile, in... (by jsmith)
Friend declarations: nested classes and base-clauses
 
Hi there! I've got two questions about friend declarations. 1) According to the 11.8.1 paragraph of C++03 standard: The members of a nested class...
[7 replies] Last: Can somebody help me regarding 1# ? (by Quentin)
by jkigen
hey people need assistance
 
some body help me write program on modularized program for computing area of a circle and the other for computing the largest of three numbers
[1 reply] : http://www.cplusplus.com/forum/articles/1295/#msg4406 (by kbw)
FAT file system (1,2)
 
How to implement FAT file system in C++,any helping material, i can't read the partition table also??
[21 replies] Last: no, i am working in Windows xp (by atifjatt)
Please answer its important to me (1,2)
 
You are an expert on paranormal activity and have been hired to locate a spirit haunting an old resort hotel. Strong signs indicate that the spirit lies behind ...
[25 replies] Last: Door A: It’s behind B or C Door B: It’s behind A or D Door C: I... (by m4ster r0shi)
getchar/gets issues
 
I'm making a console chat program, but it requires you to enter the type of connection you want (host or client) and the ip address of the other person if you'r...
[1 reply] : Use std::getline() instead. (by helios)
what is an operator
 
hi all, we all know that c++ has many operators like new , = , << etc but what essentially is an operator? how does it differ from a normal function?...
[9 replies] Last: The only operators that can't be overloaded are . (dot), sizeof, ::, ?... (by helios)
by JohanJ
My first OO design does not work (inheritance and overloading)
 
Hi My first post. I am quite familiar with the C language subset so I do not post this in the newbie forum. I hope it is OK. This is the first time I try to ...
[2 replies] Last: Thank you very much for you reply! I will be away for some weeks an... (by JohanJ)
running any file
 
hi everybody i was wondering if i could make a c++ program to run any file extension what i mean is for instance to run a JPG file or an mp3 file or a power p...
[1 reply] : C++ is a programming language, it doesn't "run" any file extension Yo... (by Bazzy)
by Bazzy
Template Member Specialization
 
I was trying to specialize a template method of a template class but I can't get it to work properly. The following code works fine if class foo isn't a temp...
[9 replies] Last: I'm reading the template part of the ISO document, I wonder how a huma... (by Bazzy)
July 2010 Pages: 1... 1112131415... 20
  Archived months: [jun2010] [aug2010]

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