Beginners - February 2011 (Page 36)

by II15X
Problem Reloading a External File
 
Hello, I've been working on a little program for a while now, I recently added a piece of code that retrieves a file named 'Help.cryo' and displays all the c...
[3 replies] Last: Well, i don't use ifstream too much, but i think that it doesn't allo... (by II15X)
by zJho
New to C++
 
Write a C++ application that is intended to covert temperatures in centigrade to the equivalent in Fahrenheit. First write the equation in the following way: ...
[1 reply] : 1. yes, it should be 9.0/5 (it's enough if one of them is a double). D... (by hamsterman)
NEED ASSISTANCE!!! if statements & loops
 
!!!!!!!PLEASE HELP!!!!!!! hi everyone. im stumped on this C++ code i have to write. i have to write a code where the user either enters a S for sum, o...
[10 replies] Last: thanks alot! (by neverknownig)
Classes, functions
 
#include "stdafx.h" #include <iostream> #include <string> using namespace std; class Goblin { public: Goblin(unsigned short StartHealth, unsigned sho...
[1 reply] : try cout << flush; (need to #include <iomanip> You don't initia... (by ne555)
Rounding a number
 
If anyone can offer help, I'd very much appreciated it. This is about my 3rd program, so I'm brand new and stuck. I am writing a program for homework that us...
[4 replies] Last: I think I've solved it! My big issue was having three conditional stat... (by rdavenport)
by amaac
A quick question on Referencing vectors.
 
I am trying to find out how to access a vectors data once it has been passed by reference to another function in another class. I seem to remember something abo...
[1 reply] : Sorry, I don't understand you. Could you provide a code example, plea... (by ne555)
For Double Condition
 
Hi, I'd like to have a for condition with two interrupting conditions: for(temp=hl;temp!=NULL,bOver1==true; temp=temp->next){ bOver=false; int I=0; wh...
[2 replies] Last: for(temp=hl;(temp!=NULL)&&(bOver1==false); temp=temp->next) T... (by MessMyHair)
comparing strings issue
 
I'm having a problem with the two if statements. I get the error no match for 'operator>'. I'm doing it exactly like my c++ book says for comparing two strings....
[9 replies] Last: Well i figured it out, finally. the switch statements helped alot. I a... (by crunkjuice210)
Complete Beginner Basic Strings Array
 
Hi. Thanks for helping me in advance! I am used to Java and C# but C++ is completely different. I am trying to do part B of this lab: http://cs.binghamton.edu/~...
[2 replies] Last: no one can help me? (by tomhangler)
by pooshi
String comparision
 
I am comparing these c strings and it prints out not equal. Why does it do that? Aren't these the same strings just initialized differently? #include <iostr...
[4 replies] Last: Thank you. (by pooshi)
creating class objects in a header file
 
Why does it seem impossible to create an object inside a header file of another class(made in a header file).
[10 replies] Last: thats really weird for me, I guess there must be some other error (by Blessman11)
Need some advice on input data
 
The current input in the text file is: IBM 100 93.2 98.6 MER 200 67.2 43.89 QQQ 300 78.9 70.0 C 200 35.78 50.02 CSCO 400 45.67 57.23 From left to r...
[3 replies] Last: Hmm.. do you need a nested loop to read each row/col? (by pq1wx1p)
by amaac
A little advice Returning Vectors Please
 
I am having trouble remembering how to return vectors back and forth between classes. I seem to remember that it is best to pass as reference parameters. I am h...
[4 replies] Last: Thankyou Moschops. You are of great help. I dont know if it will compl... (by amaac)
Unable to open include file IOSTREAM
 
Hi, I just wrote my first program hello world. I'm getting the compilation error (unable to open include file 'iostream') Please help
[15 replies] Last: Moschops what's the problem there? :))) (by Janlan)
Storing song information using strings, classes and overloaded operators
 
So guys, first post and these forums have been very helpful in helping me understand programming a little better. Problem is that I really don't know what I'm d...
[1 reply] : Anyone? I've updated the program above to what I've been able to figur... (by Chimuel)
by lrwham
User input using exclusively <iostream>
 
I need to be able to accept user input of the date in the format MM/DD/YYYY, exactly. I am limited exclusively to the <iostream> and <iomanip> libraries for th...
[2 replies] Last: Thank you sir. I had tried that, but I clearly must have overcomplica... (by lrwham)
if (!cin) and other input mismatch questions.
 
I know that if cin gets an incorrect type of input (like giving a character for cin >> intVariable;) then it sets some error flags and cin itself returns false....
[2 replies] Last: Thank you for your help. Also, never mind about the last question. ... (by Kieth89)
Incorporating functional programming into C++
 
When I first learned programming in C++ (perhaps less than 2 years ago though it feels much longer), armed with only rudimentary knowledge of C my first project...
[2 replies] Last: <functional> could help, but under C++98 it is still quite kludgy. C+... (by PanGalactic)
by HMW
The logic of logical operators?
 
I am having trouble understanding the logic of a couple of logical operators. I will show you an example in a context below that will (hopefully) illustra...
[2 replies] Last: Hello again Moschops! This gives me a headache (and I have read Wit... (by HMW)
Concatenation: what's wrong with this program?
 
#include<iostream> using namespace std; char concat(char a, char b); void main() { char a,b; int c; cout<<"Enter employ's first name:\n"; cin>>...
[16 replies] Last: IIRC the comma operator is not overloadable at all , the default resu... (by ne555)
February 2011 Pages: 1... 3435363738... 43
  Archived months: [jan2011] [mar2011]

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