Beginners - November 2008 (Page 14)

by Ray
Calculator
 
This calculator does the calculations but has 6 zeros behind the decimal what if I only want 2 how do I get the prgram to stop after 2 decimal places? #incl...
[2 replies] Last: If you use the C++ cin and cout you could use the manipulators sto... (by Bazzy)
The tutorial from this site?
 
Not really a coding question... The tut from this site is great.But is there a pdf version or any other offline format out?I dont always have access to interne...
[3 replies] Last: No, but you can use your webbrowser offline. Or If you want pdf use... (by Karql)
by Ray
Price comarison
 
I need help getting started with a program that asks how many of one object you wish to buy then calculates the number entered by the price then gives you the t...
[1 reply] : Read this: http://www.cplusplus.com/doc/tutorial/program_structure.ht... (by Karql)
problems in running programs
 
i've made a correct program list,it has been compiled and showed no errors but eventually when i run the program, there is a warning from the windows that te...
[1 reply] : Code, please. There are no telepathists here (by melkiy)
How to read/write file in separate folder?
 
Question as above: I want for my program to write and read to and from files that are in completely different folder: example giving while program is in C:\Cpp\...
[3 replies] Last: No. Working with directories is platform-dependent, and programming ... (by melkiy)
by JFunk
input/output files, won't write to output
 
This seemed simple at first and I've followed many tutorials on the net. Nobody else seems to have this problem. I'm new to C++ with Java behind me. My pro...
[1 reply] : Here is an error: ofstream writefile ("output.txt", ios::in ... ... (by melkiy)
Problem related to allocating memory
 
Hello, Structure of my classes is as follows : String.h class String { public: String(); String(char*); Byte...
[6 replies] Last: A copy constructor for a class T is a constructor for T that has the... (by jsmith)
case expression not constant
 
Hello, My program structure is: Constants.h #ifndef CONSTANTS_H #define CONSTANTS_H class Constants { public: Constants(); ~Constan...
[1 reply] : I don't understand the situation competely, but if you initialize your... (by melkiy)
How to repeat a piece of text?
 
How do i repeat a piece of text like.. cout<<"APPLE PIE"<<endl; and now i want it to be written 20 times. Please help.
[7 replies] Last: n++ is the same as n=n+1 n+1 doesn't work because because n does in... (by fatpizza99)
How to only read every 2nd line? Actually, look at this yourself...
 
Okay, here's whats inside myData.txt: Natalie 1.000 John 2.000 Bob 3.000 I need to gather the total of ALL of those numbers. Here's what I got:...
[3 replies] Last: yeah that should work because getline would take in the newline byte. ... (by fatpizza99)
Problem trying to get sin to work in a program
 
I put together a small program and for the life of me I can't get sin to work properly. Been at it for 3 hours trying to get it done. Any help would be aprrecia...
[5 replies] Last: Wow I knew it was some minute little detail I was overlooking. This... (by Caffiene Powered)
Simple opening a input file
 
string fileName; ifstream inFile; cout << "What file do you want to gather data from? "; cin >> fileName; inFile.open( fileName.c_str() ); while( inF...
[5 replies] Last: No problem :) (by firedraco)
avarge value
 
I want the program to sum all numbers over 100 and sum all numbers below 100 that the user type in. And then calculate a avarage value of each sum. But how...
[6 replies] Last: Something like this maybe Pseudo Code: 1. use a vector to input ... (by Hypersion)
by Inebas
main(int argc, char *argv[])
 
I have a Threshold.cpp which contains the above main function main(int argc, char *argv ) The teacher wanted us to create an exe using the command line an...
[6 replies] Last: Actually I do find the .exe. Thanks. (by Inebas)
by Timbo1
Major Game trouble
 
I am making a major game and implied the help of a video tuorial but i can't get the code to work here is Player.cpp #include "Library.h" void PLAYER:...
[10 replies] Last: I inferred that was the problem in my first response. It was never co... (by jsmith)
Executing problem
 
Hi all!! i'm new in this, i just got in c++ a couple of days ago and i got a problem. When i want to execute whatever i program in c++ it finish rapidly fo...
[1 reply] : Read a bit of this http://www.cplusplus.com/forum/beginner/1988/ (by Bazzy)
Suggestions for a better compiler
 
I currently use the Microsft Visual C++ 6.0. It's pretty old so i was wondering if anyone could tell me better compilars and where to get them.
[3 replies] Last: I used to use Pelles C, which wasn't bad. (by roblf)
Select amount of integers
 
I have a question: I want to add some amount of numbers and find its average, but the numbers I add will be different, so what command I should use to chose ho...
[3 replies] Last: That code at best stomps memory. (by jsmith)
"Identifier not found" - outside file / function problem
 
This program is supposed to have users input a day of the week and time and have it return what was inputted at the end. I've had problems thus far with calli...
[5 replies] Last: It is improper to #include cpp files directly. You could get away wit... (by jsmith)
by Umz
Problems with SDL
 
Can someone tell me how to install and add SDL to microsoft VC++6.0 and VC++2008 express. The one that came with the book has terrible instructions of how to...
[no replies]
November 2008 Pages: 1... 1213141516... 19
  Archived months: [oct2008] [dec2008]

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