General C++ Programming - May 2008 (Page 8)

by jobuny
This is a simple question I think
 
I need to set a variable to be a space. I'm using this keyboard type of program so I need the space back to actually work. So if somebody clicked on Hi (then hi...
[3 replies] Last: I guess another way to put it would be, how can I make the output skip... (by jobuny)
Slightly confused
 
Hey i've been programming in C++ for two days son my problems here are expected for newbs like me, my program is for asking for intensity at a distance of 1m, a...
[6 replies] Last: #include <iostream> #include <string> #include <sstream> using nam... (by Avignale2)
Finished application, please rate
 
Ok, so I just finished a flashcard application that takes input from the user, saves it to a flashcard file for use later, then displays it randomly, but never ...
[11 replies] Last: Better yet, pass by const reference: void foo( std::string const& ... (by jsmith)
creating outfile name, comparing array values
 
Hello again! In a battle against my own insanity, I decided to do some extra stuff for my final program in my C++ class. Probably got a bit carried away. Here's...
[4 replies] Last: To do it yourself, the algorithm goes something like this: // ps... (by jsmith)
Having trouble deallocating a multidimesnional dynamic array of pointers.
 
What I have is a pointer to an array of pointers to arrays of pointers. // global int*** pppInt; void allocate() { pppInt = new int** ; for(int i...
[no replies]
no compile errors but not working properly
 
I saw the forum and thought maybe i could get some help. I'm kind of new to programming and I've been taking a few classes on it and I've got this program I've ...
[no replies]
Overloading operators
 
Hi Guys, Just got a quick question on over loading the les than < operator. I'm trying write some code to ask a generic class member if its less than a cert...
[2 replies] Last: Correction: The draft implementation above is wrong, it should be: ... (by ropez)
i got a program here
 
code a proagram that has individual string functions to do the following: return the string length copy one string to another(string 2 to string 1) a...
[17 replies] Last: thank you i got it now. 1 more thing, what about the occurences functi... (by micah1983)
[] operator overloading
 
Hey. i have a class with 2D array inside. I'd like to overload operator that will allow me to access any member of this array (like int a=myarr ). How can i ...
[7 replies] Last: "this" is the address, so line 11 should actually be Proxy opera... (by ropez)
Sorting multiple vectors
 
In my program i have three sperate vectors that store the students last name, first and score. I need to sort it by last name and print the contents of the vec...
[2 replies] Last: You probably want a vector of structs, eg struct student { ... (by jsmith)
Error with strings in constructor
 
Hi, a little help please! In addition to the constructors below there are also default constructors that take nothing and interactively get the values. He...
[1 reply] : Hi In the Book Constructor The parameters are string where as while ... (by DiptenduDas)
array
 
i've been up way to long but i have to have this done tomarrow I kno the error is on the lettersneedCounted something with the array int avgLetter(int n...
[2 replies] Last: You select the text you want to make code (while posting), and then cl... (by firedraco)
Program encouters a problem a needs to close everytime i run my program
 
Everytime i run my program after i enter my first value for the number of students, i get the windows box that pops up and says studens.exe has encountered a pr...
[5 replies] Last: Because you are storing your first name, last name and score separatel... (by Zaita)
system() call with paths containing spaces
 
I am having trouble performing a system call where the path to the executable and the paramter to the executable both are path names containing spaces. I am una...
[5 replies] Last: ok - finally got it, so I will post my solution. for(std::vecto... (by SteveTheProgrammer)
problem with declaring
 
I'm having a few problems with this, it's a program to get a list of words and have a running total then also sort them different ways. my 1st problem is I'm no...
[3 replies] Last: nevermind I think i found another way (by bcurry1)
Sorting a Linked List
 
I have the entire program written, but I can't figure out a way to sort the data structures by time. Any help or ideas would be very appreciated. Here is my he...
[2 replies] Last: I'm a bit of a newbie. Can you give me an example of how to write the ... (by sgtledbetter)
Conainers and sub-classes
 
Hi, I need a bit of help, I have a program with 3 sub-classes derived from the same class. I need a container that will hold pointers to objects of the th...
[11 replies] Last: For the -> operator look at Pointers to classes here: http://www.cplu... (by closed account z05DSL3A)
by jobuny
Adding characters
 
This may be hard to explain but I'll do my best..... I'm using an HTML based form that displays a keyboard, when the user clicks on a letter it display "you ha...
[2 replies] Last: right should have been string output sorry 'bout that thanks ... (by jobuny)
Class definition in header file
 
Hi everyone, Is it bad to put the class definition in the header file (for non template classes)? I ask because I've been doing a lot of java programming ove...
[3 replies] Last: Yes I used to do this all the time, but in my current project I had a ... (by enixi0s)
Grade book program using vectors
 
I am writing a gradbook type program. It first allows the user to enter the number of students they want to enter. then allows them to enter the first name, las...
[6 replies] Last: Class and struct are interchangeable. I used a struct to show simplici... (by Zaita)
May 2008 Pages: 1... 678
  Archived months: [apr2008] [jun2008]

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