Beginners - November 2011 (Page 16)

geting the default costructor in class using array
 
cashRegisiter class simulates the sale of a product. Cashregisiter has an array that can hold retailItem objects, a constant for VAT rate and a variable to stor...
[8 replies] Last: VAT is a way taxing the products (by BLACKHULK)
Converting Celsius to Fahrenheit by using a fuction?
 
I have to make a conversion table with two columns. The first with the word Celsius and its number is from -10 to 40. The second column with the word Fahrenheit...
[7 replies] Last: Ok I will try what everyone posted. (by Guitars)
Switch, case more than 1 time
 
Hi, I have a program thats input a number and than output a number. If number is three, than programm exit, but only first time. I need a program to exit eve...
[2 replies] Last: Thank you. (by fsdprogramming)
Error 2 fatal error LNK1169: one or more multiply defined symbols found Error Help
 
http://pastebin.com/XBEMJiJC I am getting a linking problem, can someone look at this for me please and sorry for lack of comments
[no replies]
Effectively handle two objects at a time
 
Good day. I see the following code which looks for maximum and minimum and I want to discuss it .... // process two at a time. for (i=l+2; i<= u; i+=2) { ...
[no replies]
by doilin
Problem with the Streams Library
 
I have a program that is supposed to ask for the name of a file from the user, but when I attempt to use the variable that the file's name is stored in, I get t...
[1 reply] : line 11 must be std::ofstream outfile(filename.c_str()); Unfortunat... (by coder777)
why is it showing output like this ?
 
so im trying to write code for this. One large chemical company pays its salespeople on a commision basis.The sales people receive $200 per week plus 9 percent...
[2 replies] Last: thx its working now. :) (by srinivas01)
by Silkxx
error in program help
 
#include <iostream> #include <iomanip> using namespace std; class Acct { public: Acct(char , char, double); //constructor v...
[2 replies] Last: the last function double Acct::getBalance() { cout << "Account balan... (by ThangDo)
by kylet
Help with structures
 
I am very confused with structures. I do not fully understand the terminology in the comments, and am completely lost with what I am doing wrong, mainly with th...
[2 replies] Last: this is an assignment for an introduction to computer science class. B... (by kylet)
Help please.
 
Please don't spam i'm 13 and trying to learn a new language lol Actualy i like c++ more then most languages i know. anyways. are keys in certain libraries...
[4 replies] Last: No. The keys are on you keyboard. std::cin reads from its input buff... (by closed account zb0S216C)
beginner day 1
 
trying to write a text based game on day 1 of learning c++, no real background on programming so my debug skills are fairly weak. Receiving an error on line ...
[2 replies] Last: When the compiler tells you that it found an identifier it doesn't rec... (by closed account zb0S216C)
Beginning programmer.
 
Hello everyone, I am a new member of our forum, and I am a beginning programmer. I have a question which I hope that you guys can help me. ^=^ Here is a progr...
[1 reply] : [quote=domanhtien2007]"I dont understand why 100 is the parameter of t... (by closed account zb0S216C)
How to put a number in dollar format
 
I need to change a number into dollar format. e.g. 573 into $5.73 Can anybody help me out here?
[2 replies] Last: I edited my last post quite a lot. Sorry about that, but it should be ... (by doilin)
problem with quicksort function (1,2)
 
i need to sort a list of 10 numbers using the QuickSort method but there are errors in the split function. All the < and > are underlined and say no operator "<...
[20 replies] Last: Sigh This for (int list = 0; list < 10; list++) cout << list; is co... (by coder777)
how can I serch a word in a txt?
 
how can I serch a word in a txt? I have a text and it is for example :"hellow hellow hi hi good bye." and I want to serch the "bye"word what should I do?
[7 replies] Last: Your welcome! =D (by doilin)
Do I need to delete something that has been new'd inside a vector?
 
Case in point: vector<int*> myvec; myvec.push_back(new int); myvec.clear() // this will remove the dynamically allocated integer Does this work? I...
[2 replies] Last: ok, thanks :) (by ausairman)
Character limit.
 
Following the tutorial site arrive in the sequence of characters. So did the following example: #include <iostream> int main() { char nome ; ...
[2 replies] Last: This is a very bad kind of undefined behavior: you're writing to a sta... (by Cubbi)
by Silkxx
Hw help w/ classes
 
#include <iostream> #include <iomanip> #include <fstream> using namespace std; class Acct { public: Account( char , char, double); //constructo...
[10 replies] Last: #include <iostream> #include <iomanip> using namespace std; cla... (by Silkxx)
would u guys recommend this laptop??
 
ThinkPad Edge E420 laptop Intel Core i5-2520M Processor (2.50GHz, 3MB L3) 14.0" W HD (1366x768),VibrantView, Midnight Black Intel HD Graphics 3000 6 GB PC3-...
[1 reply] : Yah that's good just get something with atleast 6 gb ram and500 gb har... (by moot1)
not willing to print the same number
 
hi I am trying to print a 2_D array.But not willing to print the same number once at a time in each row.But program prints it.Ohhhh... #include <iostream...
[no replies]
November 2011 Pages: 1... 1415161718... 65
  Archived months: [oct2011] [dec2011]

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