Beginners - September 2008 (Page 8)

Problems with loop
 
I'm having problems with this loop. I'm making a grading program and I'm trying to make the loop repeat when a negative value is entered. if (choice == 1)...
[5 replies] Last: Thanks a lot. I appreciate it, that loop was killing me. (by smokeydubbs)
by gd566
file IO line by line
 
I have jsut started to learn C++, and I am working on my 5th program. It is a fairly simple "labyrinth" style game. Minus the maze (for now), because I lack gra...
[14 replies] Last: O U! I'll do it just because it's short and I like you: std::ifst... (by helios)
rewind(stdin) assistance needed
 
How do I make this function work under linux? When I compile and run my program in Windows, this function works perfectly. But when I compile and run in linux...
[13 replies] Last: Ok, I got it working now in both Linux and Windows. I just created a ... (by mherald81)
Having trouble with homework assignment
 
I am having nothing but problems in my C++ course. I need some help with this assignment. Here's what I'm supposed to do: 1. Write a header file that defi...
[3 replies] Last: Yer welcome. (by QWERTYman)
by Claymz
Average
 
hi to all, i want to write a program, which, when user inputs a number, array of same size is made, and user then initializes the elements of an array, and a...
[4 replies] Last: ty all that really helped me (by Claymz)
by j5j5j5
Problem with string [ULTRA-BEGINNER]
 
Hi all I have a newbie problem. The array "hours_match" is not being filled correctly. I dont know why. On the first printf i see that's OK, but on the second ...
[6 replies] Last: The solution was "typedef struct" :) thanks again guys! (by j5j5j5)
The Difference of a .H sfile and .C sfile
 
I'm still pretty new to this but i've been learning quite a bit but don't understand the difference of a .h and .c files what are the difference and how you kn...
[3 replies] Last: No. .cpp aren't included by other files. They are compiled separately ... (by helios)
by sadani
inheritance test assignment
 
Hi all, i am newcomer to c++ forum and a student. i have been assigned a task related to inheritance classes usage. i'm copying that assignment below if a...
[2 replies] Last: Faldrax is right, I would only really say use an adbstract class to st... (by Umz)
by Han
To draw this
 
Hello I'm beginner of C++ programming. I want to draw the diamond shape by using characters "*" by using Turbo C++. Can you help me? Thanks
[10 replies] Last: Han, I suggest you do the tutorials on this site. Looks like you woul... (by Roads)
strcmp and/or strncmp. issues
 
Ok, I have this program pretty much done but I'm just trying to tweak it up a bit. I'm writting a commmand line interpreter and trying to get it recognize as...
[5 replies] Last: Er, sure. No promises though. If it is huge just put a link to it inst... (by Duthomhas)
What is a good compiler to use and what is a Console Program.
 
Hi, I am very new and before I start programming I need to know what tools I need to use. I read in the tutorial something about a console program. Could someon...
[9 replies] Last: I would suggest Dev C++ or Visual C++ for coding and compiling. They b... (by eker676)
my first .h file
 
im making my frist multiple file compilation, and my first .h file of my own. problem is, i dont know where to put struct grades {definition}. no matter which ...
[7 replies] Last: thank u all very much, i now understand how to compile a vial pile of... (by chopficaro)
by buduza
Strange math and type conversion error
 
The following code is an attempt to test an inputted proth number as prime or not. line 6 is simply for testing purposes to see what the program is outputting ...
[4 replies] Last: Oh wow. Thanks a lot, I didn't expect you to do all that. Really app... (by buduza)
Static Double
 
Hey everyone i'm very very C++ illiterate in one of my classes i have to use a static double what exactly is a static double and what would i use it for. accord...
[1 reply] : It's a double precision floating point number that retains its value b... (by helios)
Playing Sound In the Console
 
Is it possible to play a sound in the console window? Even if it is as simple as a 'beep' or 'bloop' ? If so, what is the syntax for it? I am using Visual...
[3 replies] Last: cout<<"\a\a\a\a\a\a\a"; (by BlahBlah)
by Xyzk
Merge-Sort (on paper) and Windows Error
 
As written in subject :/ Im Still working on merge-sort alghoritm (belive me, when you`re ill you`re not working as fast as you would like to :/). I use Dev-C++...
[3 replies] Last: Ah. Here we go. Each of the elements of iTablicaA are pointers (for s... (by helios)
Simple(?) loop question.
 
I am completely blanking on what obvious thing I need to do to make this loop work. Here's what I have: --------------------------- #include <iostrea...
[8 replies] Last: Wow, we haven't gotten into anything like that. I guess I'll try that... (by acevans2)
Pointers
 
Hi I have this code in main: string input ; string* ptr ; for(int i = 0; i != 5; ++i) ptr = &input ; readLines(ptr, 5); ...
[1 reply] : A pointer is just an address in memory. string* ptr declares an ... (by Faldrax)
Writing a simple calculation program.
 
This thing is kicking my ass. I've been through my book, and I have even downloaded the professor's notes on subject (he posted them). I can't find what I'm doi...
[6 replies] Last: You made a copy-paste mistake.... Look your lines 9, 13 and 15... Ev... (by Mitsakos)
by Roads
another "why" question - classes
 
Here is the code for a tut on classes: // example: class constructor #include <iostream> using namespace std; class CRectangle { int width, heig...
[2 replies] Last: ahhh OK, thanks. That explains why there is so much of this :: in the... (by Roads)
September 2008 Pages: 1... 678910... 16
  Archived months: [aug2008] [oct2008]

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