Beginners - April 2010 (Page 31)

by vlad61
that grading program.
 
#include <iostream> using namespace std; int main() { int score; char choice; do{ cout<<" *** Grading! ***"<<endl; cout<<" Please...
[4 replies] Last: ooohh i see what you mean so it works like a chain.... each if code s... (by vlad61)
is there any way to find the methods in header file?
 
In perl through "symbol table" we can find all Methods in a package/module. Likewise is there any way to find all methods in c++ header. ex: #include<time....
[12 replies] Last: SGI has a list of that stuff. http://www.sgi.com/tech/stl/ It's proba... (by tummychow)
inheritance
 
class
[5 replies] Last: A bit more specific? That's a very vague question. (by tummychow)
define String to number
 
Hi I want to Define when user enter a character. the character return a number . for example when user enter "A" this character define 1
[12 replies] Last: ok Thank you (by ehsangha)
Program Modification
 
Hey guys, I need some help with a program Im writing for class. The program below calculates the amount of uncut acrea being reforested per year for a total o...
[2 replies] Last: Why are you mixing stdio and iostream like that? Is there any specific... (by closed account jwC5fSEw)
Converting string to number, stringstream
 
Hi, first of all excuse my English, please. This is a part of a code (http://www.cplusplus.com/forum/articles/6046/ - this topic is already archived, so I'm...
[3 replies] Last: to: hamsterman, maikel thank you, now it is quite clear to me... (by stepan89)
don't understand what compiler has said
 
hi, Just completed the following code - a personal variation on the 'don't press 5' exercise, anyway - it had trouble compiling but still went through - here...
[3 replies] Last: Much appreciated, matter settled, thanx. (by dan1973)
I remember when...
 
...I first setup my C++ environment. All the time, you hear about new programmers struggling to understanding the concept of a programming environment. As a mat...
[2 replies] Last: Problem is, speaking as an absolute novice, the IDE takes away a porti... (by dan1973)
Visual Studio C++ first use
 
I have a trouble using my visual studio C++ that I've just downloaded. I couldn't debug the program I wrote as a window pops up with the following error messag...
[7 replies] Last: check whether the file exists....if it doesnt make sure u save it next... (by abhi201090)
how many return values can a function have in c++?
 
can i return more than one value from a function in c++? i've tried it myself and it does not work but maybe i am doing it wrong and there is a way to do it? ...
[7 replies] Last: Similar to C , in c++ also u can return only one value (by abhi201090)
struct vs class
 
can anyone tell me the difference between a struct and a class? they seem very similar to me. also what are the benefits of using one over the other? i usually ...
[6 replies] Last: Seriously, in the definition of the C++ language, that is exactly what... (by closed account S6k9GNh0)
by beaudy
File Input & Output
 
This is the code I have so far for this question... Write a C++ program to read information of eight countries from an input file, called countries.txt. Wri...
[11 replies] Last: just looks like you needed a space catcher , and move your write data ... (by DrakeMagi)
by vlad61
practice programs
 
#include <iostream> using namespace std; int main() { int score; cout<<" *** Grading! ***"<<endl; cout<<" Please enter score: "; cin...
[4 replies] Last: It reads as: if score is greater than or equal to 90, and score is les... (by tummychow)
by MWH
Passing variables to 2D arrays
 
I don't know how to pass variables to an 2D array, I have included my code underneath. Obviously its wrong; can someone tell me how to do it. #include<iostream...
[4 replies] Last: You may also want to read this: http://www.cplusplus.com/forum/article... (by hamsterman)
by Cn00b
sort issues
 
Hey all I am new here and have been dealing with this issue for the entire weekend. This is an assignment, I will say so upfront, and I am just confused as to ...
[1 reply] : #include <iostream> #include <cstdlib> #include <algorithm> #inclu... (by m4ster r0shi)
by broot
question about encapsulation
 
so far I've been taught to always put member data/functions in either public: protected: or private:, but in a few code tutorials i've seen things like integers...
[3 replies] Last: Why do people do this and not just declare it under public? my quic... (by blackcoder41)
sizeof(string)
 
The execution of: sizeof(string); returns 32 on my machine. What do these 32 bytes contain? If I had to guess, I'd say there'd be: 1. A pointer to th...
[3 replies] Last: A std :: string is a class , so it is (as Disch said) implementat... (by Duthomhas)
Converting char* to char
 
Hi, I am trying to convert a char pointer to a normal char(somehow copy the strings from the pointer and pass it to the char) Here is a piece of example on ...
[13 replies] Last: Sorry, i deleted the post...i somehow did the mistake of strcmp(Volume... (by martje12)
Errors when compiling
 
Hey everyone, I just started learning C++ and everything was going fine for a while but now when ever I try to compile something a get all these errors: C:\...
[2 replies] Last: I just noticed that if #include <iostream> is used it gets these error... (by shaqywacky)
double to int error
 
i think there is something wrong with my compiler. i was trying to configure codeblocks to use mingw as the compiler. i am trying to create a square root an...
[5 replies] Last: oh ok, nice to know (by m4ster r0shi)
April 2010 Pages: 1... 2930313233... 35
  Archived months: [mar2010] [may2010]

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