Beginners - March 2012 (Page 68)

Still need help!!
 
Ok so I have this program here that a user selects the number of computations they want to do. then they select which computation. Now i have it looped, I just ...
[9 replies] Last: I fixed my loop so it goes back around. I still can't figure out how t... (by Andrew2172)
pointers array problem
 
Hi people. This code works fine when N=DIM, but for N!=DIM doens't. How can i fix that and why this happen #include <stdio.h> void InitialValues(dou...
[3 replies] Last: Post example (by histrungalot)
batch file for pausing
 
I have a book that im reading that tells me i can use a .bat (batch) file to run and pause my program so it doesnt close imediatly. i know i can use <system(...
[no replies]
Getline and Cout Issues
 
Hi, I'm a relative newbie to C++ and am studying in a 101 course right now. I'm having a real weird issue with my output. The goal is to read an entire line f...
[no replies]
i need some help with this one
 
Write one C++ assignment statement for the equation below. A*B - B/A avg = ------------- a+b i cant really understand w...
[no replies]
by Kameo
User Input to file name
 
This might be a dumb question but...I was trying to get a program that I am making as a side project to take user input for the file name and I am stuck somethi...
[2 replies] Last: Basically I have a program that is collecting information from users a... (by Kameo)
How to set background colour in Borland Turbo CPP
 
I am new to program coding but i like to be an expert. Now i am doing a project so i need codes for seting background colour and textcolour?
[no replies]
Section of Project
 
Hi, I'm just making a c++ project on my free time (the card game of war) (not homework), and I'm stuck on the part where I have to deal 26 cards to the player a...
[3 replies] Last: You'd also need an array to hold all the cards already chosen, then co... (by atropos)
help with this homework problem
 
Consider the statements below. int A, B; char C, D; cin >> C >> A; Before the read, the input buffer contains: A73-14 After the read, the ...
[3 replies] Last: nobody has a clue? because i always thought int and string didnt read ... (by byronflds)
inputing a string word and using Switch statment
 
Hello, I am working on inputting a word and using the switch statement to output the series of ICAO words. I have been racking my brain over this for 2 days now...
[6 replies] Last: 4. The body of the function void displayChar (char letter); is missin... (by teague00)
by dwjang
passing pointer to a function
 
Hi, I am completely confused now when I tested the following code. The last print statement always gave me 0. Can anyone explain me why? #include <iostr...
[11 replies] Last: [quote=dwjang]If this is true, then how can you achieve "pass by refer... (by closed account zb0S216C)
by Lio
Operator overload ostream
 
Hi, I dont know how to do operator overload for object with only array of 10 integers Thanks ostream& operator<<(ostream& out,MyObj & o) { ...
[13 replies] Last: This is entirely a matter of style. No semantics were changed. I wou... (by cire)
by pzling
Debugging an Access Violation
 
Hi I'm trying to debug a program which crashes with an access violation. The debugger breaks and points to the following code: inline double Parameters...
[2 replies] Last: thanks (by pzling)
Dynamic Struct Array w/ New
 
I have two questions here , I did the homework assignment in its entirety but I'm wondering if there is an easier way to assign the values to my dynamic array? ...
[3 replies] Last: Ah okay - so that's what c++0x "unsupported" meant... I thought it was... (by georgewashere)
by Naureg
Getting pixel colors
 
Looking for an easy(ish) way to get pixel colors without windows.h I know you can do it using X but I found that quite damn confusing, any explanation of X...
[18 replies] Last: *Tear* Java's robot class is so much easier *Sniff* :( (by Naureg)
Help! Input/Output file trouble
 
I decided to take a Computer science class and i have been doing well on my previous labs until this one was assigned. We are suppose to have an input file with...
[10 replies] Last: This program does that. It reads all the data from the file and proces... (by Moschops)
Decimal Place Formatting
 
Using this code within a loop: cout << "$" << setprecision(2) << fixed << total; Getting an output of: $1559.50 $155595.00 I want...
[1 reply] : http://www.cplusplus.com/reference/iostream/manipulators/right/ (by roberts)
Help modifying a looping program to read data from a file
 
Okay, so I have a lab exercise where I have to modify a program I already did in a previous exercise. I had to build a program which prompts for and reads a one...
[no replies]
Help with simple swap
 
I have a vector v full of class objects called kajigger with private members _thing1 and _thing2. How do I swap the entire class objects within the vector? ...
[6 replies] Last: In header <algorithm> there is standard function std::swap. You can us... (by vlad from moscow)
by awnn
Problem with Simplest Program
 
Hello, New to C++, but I have been trying to run a more complicated program and getting some errors, so I tried to run the simplest one and am getting the sa...
[4 replies] Last: The best that I can suggest is to try what timmyyyyy or ciphermagi sug... (by Exispistis)
March 2012 Pages: 1... 666768697071
  Archived months: [feb2012] [apr2012]

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