Beginners - April 2008 (Page 18)

compiling program
 
hello, im extremely new to C++ and i cant find a compiling program, would anybody be able to tell me the name of a good one so i can download it and start progr...
[3 replies] Last: Just download one of the free compilers: Code::Blocks http://www.code... (by pierrecarly)
file processing, saving a structure
 
thank you grey wolf and satm2008, you are a great help, both of you enlightened me. The codes you sent me were good but I had to make some adjustments. ...
[1 reply] : Here is an example of how to write a record to file: #include <fst... (by psault)
Understanding void
 
Hi I'm very new to C++. I'm teaching myself from online tutorials with minimal previous programming experience. I have a question about void. I read that ...
[2 replies] Last: a void function can still perform actions, and there is a way using wh... (by psault)
labels and gotos
 
Can someone show me how to do labels and gotos?
[8 replies] Last: @arnaudk That is a common abuse of exception handling, using exceptio... (by closed account z05DSL3A)
by skev
help with an if statement
 
Hello everyone. I'm quite new to the c++ program so i'm assuming my problem is relatively simple:). I've been given a question asking me to input three words in...
[4 replies] Last: Alternatively, you could do something like the following, but that bri... (by peterhansen)
class help
 
#include<iostream> using namespace std; class Mp3Player{ public: Mp3Player(){ ntracks=0;} void playtrack(){ ntracks=30;} void removeTrack(){ ntra...
[1 reply] : Whoa. You've got a whole lot of errors in here, so let's start with t... (by gzero)
by mikeym
Generic Classes
 
Hi, I'm new to C++ and coming from a background of Java and scripting languages. I'm wondering how to go about writing a generic class that can be applied to an...
[1 reply] : "So how's it does in C++?" woopse! How's it done in C++? Is the... (by mikeym)
by amsami
Speeding up the code
 
Please, can anyone give some ideas on how speed up a c-code?
[2 replies] Last: I like a site on optimization that starts with a quote along the lines... (by closed account z05DSL3A)
sQuestion about finding specific Content in an Array
 
I have an array of 20 integers and one of the questions is to find the locations and content values if any, where the content of the array is three times the in...
[3 replies] Last: The concept you're missing is this: Arrays values are indexed starting... (by gzero)
how to copy a structure to anonger structure
 
I made 2 structures: 1. struct {} customer 2. struct {} dummycustomer I need to put all the info in struct {} customer to struct {} dummycustomer . ...
[5 replies] Last: thtnk you grey wolf and satm2008, you are a great help, both of y... (by Karlinods)
one dim ARRAYS....
 
ok what im trying to do is....write a program that will calculate the frequency distribution using an interval of 10 million gallons per day. the input specific...
[no replies]
cin input type crash
 
Hi. When I run the following code and input a non-integer like a char or a floating point number (chars are integer compliant, after all, they're just ASCII re...
[2 replies] Last: Thanks, exactly what I was looking for. I better read through the doc... (by peterhansen)
by umen
what is the different between all the include types ?
 
hello all im confuse here there is several include types and i dont understand why for example in the c++ file i can see : <somefile> or <somefile.h> ...
[2 replies] Last: In general, you should try to have as few include directives as possib... (by ropez)
two rectangle overlap
 
hi I got an assignment this week.But i dont understand it clearly. Here is the question "A rectangle in x-y space can be defined with the x-y coordinate...
[2 replies] Last: Hello, here is the assignment's code;) i think that does what u want ... (by guruplus)
pointer using string.....
 
Pls.,, help me to find the error in ths program... this program should accept white space,so i use string and getline...it doesn't have error detected but it d...
[1 reply] : Hello, before using getline call cin.innore(1) if you used cin>> befo... (by guruplus)
3-dim array runtime error
 
Hello, When I try to compile the following code, it results in a runtime error: #include <iostream> using namespace std; const int MAX_ROWS = 10; ...
[1 reply] : The sort of runtime error would be good to include in your post, but i... (by xabnu)
April 2008 Pages: 1... 161718
  Archived months: [mar2008] [may2008]

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