General C++ Programming - September 2008 (Page 9)

Divide two many-digit numbers digit-by-digit!!!
 
Hello all! i am taking a Computer Science 2 class at a local community college and we have this simple C++ program to write that divides two large integers. The...
[15 replies] Last: Would it work if you were dividing: 1222222222222222222222222222222... (by Zaita)
who can tell me why?
 
according to the C++primer book, size_t k=get_size(); int *a=new int ; i apply this to my program ,but when i debug the program ,it happens that "error C2...
[2 replies] Last: I think you should go back and read more carefully, because get_size()... (by helios)
Testing a member function
 
I am having problems with my int main()...trying to get the program to enter a new balance (400.00) and then calculate a new interest (calcInt) and display it. ...
[2 replies] Last: if using Savings a; Add one more constructor "Savings()" to initial... (by patilvishwa)
Web-Based Compiler
 
Hey. Well, recently, I've been wanting a web-based compiler so I can compile at the library and not take up space on my USB, Anyway, I've google it, and found...
[12 replies] Last: Hmmm... I've done DirectX 9 development on Dev-C++ with no problems... (by Zaita)
How to make a ODBC connection to MySQL
 
Hi, I would like to know how to make an ODBC connection to MySQL database using C++. I know the mysql++ is an alternative to go from C++ directly to MySQL...
[no replies]
by AutoC
Reading white spaces....
 
Hi, Here's my situation.I'm reading a file that consists of characters including white space.Once I read them I'm counting the occurrences of each character....
[6 replies] Last: that's good to know, thanx (by Mitsakos)
analysing bug
 
#include <iostream> using namespace std; int main() { float D; D=0.1; while ( 1.0-D != 0.0 ) { cout << D << endl; D=D+0.1; } return...
[4 replies] Last: buffbill: Yes, the single equals is the assignment operator and is use... (by jpeg)
by gAaRa
Can increase font size in Tcc ?
 
So i have heard that you could increase the font size in Turbo C++ if you switch to graphics mode or something like that ? Is it true ? If it is, can anyone tel...
[no replies]
by dck
hi, simple C problem..
 
i want to write a program that will repetitively read and calculate the total sale for a purchase from a fast food restaurant. this is the code i ve written un...
[3 replies] Last: as helios says: double item,total; while(item)//ctrl+z to quit ... (by buffbill)
by nicvyn
how to display * for input password
 
how to display * when user is require to input the password?
[17 replies] Last: Failure to initialize creates a great big surprise. Include <cstrin... (by Duthomhas)
recursion to iteration
 
i was wondering if you guys could point me in the right direction for changing this loop to an iterative statement for( int i=0; i<40; i++ ) { ...
[10 replies] Last: you guys still have me at a loss here (by Willie7772)
How to use and make events.
 
I've been messing around with windows forms on my Visual Studios IDE and I've been wondering for awhile how to make events similar to the ones used in Windows F...
[1 reply] : The most important concept to program events (I'm assuming you want to... (by helios)
Convert iostream to stdio
 
Hi everyone, I am new here and also new to programming. I am given a list of codes in the type of <iostream>, but the codes that I've learnt is in the type ...
[5 replies] Last: readMatch is declared as an ifstream instance, so readMatch>>ID>... (by Faldrax)
issue with user input (char give when asking for a #)
 
Hello, It's pretty simple, I ask them for a #, and it put's my code into an infinite loop. Here's the specific function: void One::myTurn(){ bool te...
[12 replies] Last: I would probably make the symbol a member of the Player class. cla... (by Faldrax)
by drac
Diary Agenda using SLL
 
hey, well my problem is that i'm required to make a diary agenda for a class. The agenda must be able to Add, Remove, Modify, View all the activities and can al...
[4 replies] Last: Ok, as far as I understand the code you have a template class Agenda w... (by Faldrax)
If statements and such :(
 
so basically im trying to make a program which converts temperatures, and I was wondering if there is any better way to represent the code im going to post, i t...
[8 replies] Last: enum={TempUnit};/*need the assignment operator + curly brackets with e... (by buffbill)
Cutting a number to last 2 digits.
 
Ok, I have to do an operation like this: 454*22.76 = 10 333.04 Thats ez, but then I have to only print to screen the last two digits, the 33. How woul...
[5 replies] Last: if you like the modulo: force the long to an int by n=(int n) then u... (by buffbill)
by mikej
Setting Precision and a Map question
 
Hi Everyone, I have two questions ;) 1. I want to limit the precsion of the values to say 2 decimal points before I store the values in some container (vecto...
[1 reply] : 1. I just wrote a short function for this purpose: http://www.cplusplu... (by helios)
by hamo94
how to clear display??
 
when ever i run any of my dos programes that have a lot of output the screen has to scroll down is there a command in c++ that clears the current output off the...
[1 reply] : You can take a look at this thread on how to clear the screen in c++ h... (by Mitsakos)
by temp
Stacktracing exceptions with Mingw
 
Hi, I'm having an STL code, in which the STL throws an exception I didn't catch (I didn't catch it on purpose, since this exceptions means bugs in my code. The...
[5 replies] Last: GDB can print a stack trace. I don't remember the command for it but y... (by Zaita)
September 2008 Pages: 1... 7891011
  Archived months: [aug2008] [oct2008]

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