General C++ Programming - October 2008 (Page 5)

Unable to start program
 
Unable to start program 'c\users\matt\documents\visual studio2005\projects\wage slip\debug\Wage Slip.exe' what do i do to get rid of this? :S
[no replies]
Last Record Repeats Why?
 
I have made this program - File data_n.txt has data- 1 1 1 2 4 8 3 9 27 4 16 64 #include <iostream> #include <fstream> using namespace std; int m...
[4 replies] Last: thanks jsmith!!!!!! (by aakashjohari)
Solving an error
 
Hi, I'm still quite new at C++ (far past HelloWorld though =D) and having trouble with an error. My goal is to parse a file and I'm having trouble with a hel...
[2 replies] Last: Now that you mention them, I think I should indeed be using ifstream i... (by porrum doctum)
Function trouble
 
#include <iostream> #include <iomanip> int fixzero(int); // prototype using namespace std; int main() { int numerator_One; int denominator_One; /...
[6 replies] Last: value_One=float(numerator_One/denominator_One); First it divides ... (by Smok006)
The number 16384 ?!
 
Hey, I am currently studying this code a I 've got some difficulties to undestand the following lines: if (++D->nP > num) { num += 16384; if ((tmp = rea...
[1 reply] : 16834 is 16K exactly, but I think from the looks of this code that the... (by jsmith)
Maximum Sum
 
I have a problem - Input is a pyramid - 1 2 3 4 5 6 7 4 2 1 8 8 3 2 1 I am to choose that path from top...
[1 reply] : Hello! If I understood u wright u have this input: 1 ... (by Smok006)
Airline reservation Portal
 
Hi and hello, This is sundar....I'm posting a c++ source code on airline reservation system...pls find faults if any...and lrt mr know how to correct it... ...
[no replies]
ERROR IN PHONEBOOK
 
i cant figure out how to fix 2 errors..here it is 41- TransFS should have a prototype in function main() 102-call of nonfunction on function TransFS() ...
[1 reply] : First of all in main() u call "TranFS", ur function is "TransFS". In f... (by Smok006)
by Hazer
Program in program
 
Does anyone know how to make program which creates other program. E.g. I launch program and it creates hello program as other executable
[5 replies] Last: Hrmm, well I guess you could write a program that opens a file, writes... (by firedraco)
by Kalos
Linker error
 
I'm using a link list with header files "card.h" and "deck.h" and implementation files "cardi.cpp" and "decki.cpp" respectively. However, on my deck implementat...
[1 reply] : You will need to post your code for us to be helpful. Are you sure yo... (by jsmith)
Infinite loop
 
I have written a program - #include <iostream> using namespace std; int main() { float D; D=0.1; while ( 1.0-D != 0.0 ) { cout << D << en...
[7 replies] Last: Very good article Thanks ;-) Personally I think we need an arti... (by exception)
Problem with getline C++
 
I am having following code for reading and writing from an file.... but when i directly read from file... it displays all the data.. but when i do some write ...
[3 replies] Last: See http://www.cplusplus.com/doc/tutorial/files.html for info on using... (by Faldrax)
Why float rounds the number ?
 
Hi Try this code: #include <stdio.h> int main(){ float x = 1.1; float y = 123.1; float z = 123.2; printf("x = %f\n", x); printf("y = %f\n",y); p...
[2 replies] Last: Thanks ... i get the point. Real number are continuous, uninterrupted... (by graciano)
Getting value from memory address
 
I want to make a program to get the value saved at the particular memory address. suppose i have opened two konsole windows. In first window i have made a pro...
[4 replies] Last: guestgulkan, you understood my question correctly?? Maybe I don't... (by guestgulkan)
can '\b' negate '\n'?
 
Hello, Reciently I started messing with '\b'. If you look at some of my other posts one of them is about making a text-based progress bar the refreshes a...
[2 replies] Last: Thanks for the reply. I have used the command 'system("cls")'. It wo... (by enduser000)
All Possible Arrangements of a word
 
I want to make a program that prints all the possible arrangements of a given word. As Input - abc abc bca cab acb bac cba
[2 replies] Last: There is a standard C++ generic algorithm named next_permutation() def... (by buffbill)
c++ games
 
is there someone here have developed a game (any game) using c++? if there, can you help me?
[3 replies] Last: www.gamedev.net (by Zaita)
Resuming errors
 
I want to resume errors in C++ as we do in Visual Basic We write at the top of the code 'On Error Resume Next' and if there is any error in the whole program i...
[2 replies] Last: "on error resume next" is a terrible thing. It's merely a hack intende... (by Zaita)
by hitu
what to do to solve these errors
 
The Errors i got here are: blob\blob.cpp(194) : error C2062: type 'void' unexpected blob\blob.cpp(195) : error C2143: syntax error : missing ';' before '{' b...
[3 replies] Last: You are obviously using microsoft visial studio. Go help->search a... (by guestgulkan)
Does anyone know how to make a C/C++ program bootable?
 
Does anyone know how to make a C/C++ program bootable? (without an OS preinstalled, like booting the program from a floppy)
[1 reply] : It isn't exactly a property of a C++ program. The actual bootcode (cr... (by exception)
October 2008 Pages: 1... 34567... 11
  Archived months: [sep2008] [nov2008]

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