Beginners - February 2009 (Page 19)

by Sathed
Destructor Questions..
 
I'm a bit confused about destructors. I understand their functionality and why they are important... However, consider the following code in my base class: ...
[4 replies] Last: They are inherited as jsmith said and don't need to be implemented bec... (by catch patrick)
syntax error
 
u c when i finished doing this program at skool it worked jus fine but now when i tried it at home it says sytax error and syntax error before namespace. if any...
[1 reply] : Post your code, the compiler you used at school and the one you are us... (by Mythios)
by masiht
problem in creating a problem
 
I read all the sections of identifiers and conditional structures but I am still having a problem in creating a program.I want to run a program that calculates ...
[17 replies] Last: @ buzzy thanks alot it works now @ grey wolf , Thanks to you too. (by masiht)
Using a string in printf()
 
Just wondering how exactly you display a string with printf(). As when ever I try displaying one of the strings I create with printf() like this printf("%s", m...
[2 replies] Last: Omg how did I forget that. I'll go boot vs up now and see how she goes... (by Mythios)
by zachlr
Error: missing function header (old-style formal list?)
 
Below is a section of code from my program. void textcolor (string f, int fi, string b, int bi); { switch (f){ case "Green": f=FOREGROUND_GREEN; br...
[4 replies] Last: Okay, I'll convert this to if-else and post my next set of screw-ups ;... (by zachlr)
Calenders and File I/O column methods
 
Hi everyone.I hope this is the right forum for it. I've so far been unable to fine a good site to get answers to my questions even on other forums. But i find t...
[no replies]
by Asseel
course average???
 
HI!!! I'm trying to make a program to get the course average and the grade letter; the programe should ask for the last name, midterm grade and final grade,and...
[6 replies] Last: Aren't operands always converted to the type of the biggest operand? (by helios)
Trouble with char and classes
 
Hey folks, I'n new hear so hello to everyone. I've been self learning c++ for a month or so now and am having some problems with characters in classes. ...
[2 replies] Last: Hi Odahk, Thanks for the quick response! I'll give your sugges... (by robousy)
by nedutd
problem with one line
 
hi, Iam using a Dev-c++4 compiler and i am stuck on one line of a program to show the word of a sentence e.g. the last word is Ireland should show up on screen...
[3 replies] Last: What are you doing with Array ? Your sentence is stored in strSenten... (by mordekai)
Suggestion on starting.
 
I was told to come to this site for help in getting ahead of my class; as well as learning C++ on my own before I actually got to it in college. Well, though I ...
[3 replies] Last: Thanks a bunch Sammie and Helios! (by Lazorith)
how do i create a binary float?
 
I am working on a program which tests the limits of the float type variable. Is it possible to change the default for my program from decimal to binary? ...
[5 replies] Last: Haha.. that's a good one. (by Sammie22)
Problems with logic
 
how would i put the savings if the person picks package(1) to how much they would have saved if they had picked package(2).. heres my code.. #include <ios...
[1 reply] : Hi,crawfoosh In ur programme,there 5 cout << "Customer Name: " << ... (by hackeny)
question about argv
 
Hello, I have a question about the char **argv array in then main function of a any C/C++ program. I know that char* is a pointer to a string, but how does *...
[2 replies] Last: For the second question, you need to use a const_iterator. So, vect... (by mahlerfive)
by diva
Removing duplicates record from a file
 
hi all I am writing a file,"abc" but my data has duplicates. Is there anyway to write only the unique record to the file. also I have to read this file in m...
[1 reply] : How is your data stored before you put it in the file? If your data is... (by mahlerfive)
Delete unsucessful.
 
Urm....i have a problem with the delete link part and i really do not know what's wrong with my codes...i am showing such a lengthy code just in case you guys n...
[2 replies] Last: Oh! Thanks a lot! You rock, helios :D You're the SUN!!! (by renzokuzen)
calculations not workings if/else statements
 
for some reason when i run this only package (1) will work for an output...the other two packages just end with nothing..thanks.. #include <iostream> #i...
[1 reply] : If you tried indenting your code you'd see the problem quite quickly. ... (by Zaita)
problem declaring strings
 
for some reason i get these errors when i know everything is right..and yes i did do #include <string> int pause; int package; int hours; int amountdu...
[4 replies] Last: thanks!!!!!!!!! (by crawfoosh)
Vector Trouble.
 
Why am I getting this error? #include <iostream> #include <vector> #include <cstdlib> vector<int> group1r; vector<string> group1; group1r.insert(...
[4 replies] Last: grouplr.resize(cnt); (by Zaita)
by Jaymie
Vector to Array
 
How do you convert a vector to an Array without creating a new variable of that type, i.e.: vector<int> myVector; int myArray = myVector; When I tried this it...
[5 replies] Last: I'm going to have to say that I don't like it. It works because a vec... (by seymore15074)
Internet Service Program S Confused!
 
alright so im going crazy with this program i ust cant think anymore..this program needs you to enter your name, the internet package you purchased, and the amo...
[1 reply] : http://www.cplusplus.com/forum/articles/6046/ amountdue = package_... (by Zaita)
February 2009 Pages: 1... 171819202122
  Archived months: [jan2009] [mar2009]

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