Beginners - September 2012 (Page 41)

by majo
please help with this program
 
please help with this program. I need to calculate the highestSales, the averageSales using float funtions and displayOutput using void, I wrote the program but...
[2 replies] Last: I want to write three float function one for getSales to ask the user ... (by majo)
Need help to this program
 
#include <iostream> using namespace std; int main() { char n; do { char input = ' '; int num1, num2, sum, difference, product, quotient = 0; ...
[3 replies] Last: Is this what you are looking for? http://www.cplusplus.com/reference/c... (by monad)
double pointer 2d array assigning problem
 
This looks way too stupid to be posted in beginners too :-/ This is my 1st post so pardon me for any mistake i make in creating posts :) I wanted to create ...
[4 replies] Last: Thanks to visual studio breaking points and a frnds help i got it. at... (by KodnameChoklate)
How to start with a framework ?
 
Recently I learned all about C++ that means just completed a C++ book and lot of tutorial. Still I'm working on console. Everyday I still making one or more sim...
[2 replies] Last: Thank You for reply... :-) Can you tell me which part of C++ is most ... (by Sparkle24)
inFile
 
Hi im trying to figure out the following. say i inFile a word from a data file. so like this: inFile >> word; how can i cout the line where this word...
[3 replies] Last: You can use std::getline to read a line from the file. Read each line ... (by Peter87)
by V n H
Isalpha doesn't seem to work for me, any suggestions?
 
Howdy friends, let me jump straight into it, this is my code: #include <iostream> #include <cstdlib> #include <cctype> using namespace std; int main(int argc...
[7 replies] Last: Happens to everyone ^^ (by soranz)
Use of extern
 
I wrote two programs #include <iostream> //#include <string> using namespace std; int k=50; int main() { cout << k; } & second one #include <iostr...
[3 replies] Last: That it wouldl be clear I will show at first a simple example. void ... (by vlad from moscow)
problem with array of floating point and store into array
 
int main() { int i = 0 , x = 0; float donations , arrayOfdonation ; for( int i = 0 ; i < 100 ; i++ ){ cout << "Enter donation: "; cin >> arra...
[2 replies] Last: yeah please be more clear your question.. (by mr J)
C++ Coding Assistance
 
I currently have a program I am to be designing, although I'm new to the field I in no way intend to "leech off of" or fall into the laps of anyone. I simply wi...
[19 replies] Last: Finished , thanks for any consideration. (by zero117)
2 decimals instead of scientific
 
My output keeps printing in scientific notation when I only want 2 decimals. Im using a file of 3 lines, each line is - last name, first name, salary, and incre...
[1 reply] : Do you mean for cout ? You didn't use setprecision(2) for cout, you on... (by soranz)
by MW130
Plz help im so confused
 
I am new to c++ and I want to add images in my outputs. I have no idea what bitmaps and that are. Plz, is there any simple way to put images into c++? I even he...
[2 replies] Last: You can use SDL, which is pretty easy to learn and is cross-platform. ... (by monad)
C style strings in structs
 
I am currently learning structs and am having issues in reading from a text file into a array of structs. I am trying to create a deck of cards. The text file i...
[5 replies] Last: Oh man, for some reason I was too focused that I had to increment the ... (by topchef)
Noob Q. What can I do with c++?
 
Hi guys, I just started my first programming class (C++) a week ago and I love it, sadly I know next to nothing about programming and I have some questions. ...
[2 replies] Last: AAAwesome! (by luckypenguin)
Checking For Duplicates
 
Hello, my head hurts from trying to figure this out. For an assignment I have designed a program that inputs school ID, grades for 2 homeworks, and the sum o...
[2 replies] Last: An array would be the way to go (or some other container). My feeling... (by Lowest0ne)
problem with a reapeating cout
 
ok so i am having trouble with a reapeated word in my c++ program everything works except that a cout reapeates itself like this. math bios: add enter 2 num...
[2 replies] Last: You've got the assignment and comparison operators mixed up too. Line... (by Lowest0ne)
How to use new operator
 
struct student { char name ; int age; int gender; int courseCode; }; Sorry for my bad skills , for this code , how I use new operator...
[6 replies] Last: indeed. (by Lowest0ne)
by MW130
plz help calculator problem
 
Hi am writing code for the calculator for add subtract divide and multiply. on three of the lines it says expected expression and Idk why. can someone plz he...
[2 replies] Last: Your error comes from the lack of braces. You need braces if your con... (by Lowest0ne)
And yet another formatting question
 
Hey! I've written a program that does some calculations yadda yadda yadda. What I'd like to do is have the output look a little more neat. So I want the number...
[3 replies] Last: setprecision() to set the amount of digits to display, fixed to ha... (by Lowest0ne)
Please help with C++ Program?
 
I need to know whats wrong with my code. This is the instruction. I must do it this way or i will get a zero tomorrow. You will create a program that calculat...
[4 replies] Last: u forgot a semicolon (by Aramil of Elixia)
by MW130
Images in c++
 
I need to make a project like an ai and I need to post images in c++. How do I do this? I need to display images. Not really do anything with em lol. can you te...
[1 reply] : Any answers plz? (by MW130)
September 2012 Pages: 1... 3940414243... 62
  Archived months: [aug2012] [oct2012]

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