General C++ Programming - October 2011 (Page 16)

HELP PLEASE
 
C++ program have the user enter a two digit integer. calculate and display the square, raised to the power of 3, square root, and the sum of the digits of the u...
[3 replies] Last: To sum the digits together you need to isolate each digit. You can do... (by Disch)
How to use eof()?
 
Alright, I think I am doing this right but for some reason the outcome is not what's desired. #include <fstream> #include <cctype> using namespace std; int c...
[4 replies] Last: Thanks all!! (by kraigballa)
where should i use ignore.
 
Im a little confused about where to put the fin.ignore for everything to be straight. below is my code and below that is what my cout looks like. //Landon Hi...
[no replies]
by Weeve
How do I make a Instance of a class in a seperate class if it needs to be prototyped
 
as an example of what I want it to do: class Part{ private public Part(int num); }; class PartContainer{ private Part parta(45); public }...
[13 replies] Last: It looks like what I wanted to do.. but I don't understand ": size(sz)... (by Weeve)
Profiling
 
How to do profiling for cpp code samples?
[1 reply] : Do you mean CPU time sampling? Some IDEs have it, like the Microsoft V... (by Gaminic)
by khamis
Help me with C++ problem...
 
Write a C++ program for an Airline TicketPrice Calculation based on the following scenario. The calculation for the price of the ticket is according to the sele...
[1 reply] : At least pretend like you didn't just copy that from the assignment sh... (by Gaminic)
3D and 2D programming "ENGINE"
 
Aloha everyone. I just wanted to ask which engine is best to use with c++ programming to make 2D and 3D graphics?
[2 replies] Last: Thanks! (by Tertius Kgatla)
bitmap fread behavior
 
Hello, I'm afraid this might be a bit of a noobie question, but I'm coming across weird behavior when I use fread: #include<stdio.h> struct BITMAPFILEHEAD...
[1 reply] : Memory alignment. You have two padding bytes between bfType und bfSize... (by Caligulaminus)
Constructor call
 
Why (1) shows an error and (2) does not? (Please don't post comments/corrections that are off-topic and spoil my thread.) (1) #include <iostream> using ...
[1 reply] : When you get a compiler error, you should always post the error messag... (by Athar)
Switch case Passing String As Parameter
 
I want to know that if there is any solution for me to run the switch case well. I would like to know that if there is any solution to run the three cases well...
[3 replies] Last: How to switch on a string http://www.cplusplus.com/forum/beginner/1352... (by Duthomhas)
local variable gets modified suddenly
 
Hello everyone A student of mine wrote the following code and compiled it on Ubuntu Server OS 11.4, using g++ v 4.5.2. #include <iostream> #include <cmath...
[2 replies] Last: Whoops! My bad. I should've debugged it more thoroughly. Now, I see th... (by Saqib Ilyas)
Help with system() function...
 
I am trying to make a program to reset my computer password using net user . How do I get the system function to take input so I can add my username in: net u...
[1 reply] : To be honest, this sounds really fishy... (by Gaminic)
Help with C++ Hangman Assignment
 
The instructions are this::: Rewrite the Hangman game (Chapter 4) using functions. Include a function to get the player’s guess and another function to determ...
[3 replies] Last: That was it!! the semicolon was not needed. Thanks for all your help... (by Sagar7777)
Help with list
 
help with list Hi, I'm doing a program that registers a doctor's appointment and for this I am using a linked list but this fails to run giving. Can someone p...
[1 reply] : Hi, hi, I solved the problem. tks (by muttleydm)
Beast video game?
 
I'm not sure if you are all familiar with this 1984 ASCII game, but does anyone happen to have the code that would make it run? I can hardly find anything even ...
[1 reply] : What do you mean? Is it even open source? (by helios)
by Nuzut
Deck Class
 
Hey guys, I'm working on a project. its a memory card game. in this game the deck is a little weird its 2 decks of 9-ace (48 cards). I've got a card class ...
[3 replies] Last: You have populated them in the other constructor. You're assigning 14 ... (by shacktar)
Wont let me build solution
 
I'm using visual C++ 2010 express. I've had this happen a few times where I step away for a short amount of time, I come back and I can no long build a solutio...
[1 reply] : @Doccarson Did you build the program, run it, make some changes and... (by whitenite1)
by Giri89
IF Statement Issue
 
Hi Guys, I find that with the below code, the following line is appearing even when either a,b,c,d or q is selected. cout << "Please enter a), b), c), ...
[7 replies] Last: if(choice !='a' && choice !='b' && choice !='c' && choice !='d' && ... (by cttprogz)
release keyboard input
 
ok so here is a code i typed up to get simple input from the keyboard. #include <conio.h> #include <iostream> using namespace std; int main() { ...
[no replies]
Keyboard input w/o 'enter'
 
I've seen this question asked on many forums, but nobody seems to have a definite answer. Question: "How does the programmer get keyboard input without wait...
[5 replies] Last: Getting immediate input is not a language characteristic, but a termin... (by Duthomhas)
October 2011 Pages: 1... 1415161718... 36
  Archived months: [sep2011] [nov2011]

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