Beginners - April 2009 (Page 5)

ifstream/ofstream compiler error when using block if
 
Hi all, I'm new here and pretty new to c++, but I'm getting along well so far. There's lots of help on these boards and most of the time my problems have been r...
[2 replies] Last: Got it! Works flawlessly. Thanks Bazzy! (by Nino DeCoy)
by masiht
Virtual function
 
Can anyone tell me please what is virtual function and how to use it ?
[3 replies] Last: Thank you to both !! (by masiht)
by masiht
how to write a program in most professional way.
 
Can anyone please tell me how to write a program in professional way ?
[7 replies] Last: Four things: Know algorithms and data structures and the canonical ... (by PanGalactic)
get integer?
 
for file I/O is there a get() like function for pulling an integer from a file?
[5 replies] Last: >> operator if you are using file streams (by Bazzy)
by murva
deleting array of pointers
 
What is wrong with the code below? Goal games ={Goal(1,"one"),Goal(2,"two"),Goal(3,"three"),Goal(4,"four")}; Goal **games1; games1=new Goal*; gam...
[5 replies] Last: Thanks guys, very helpfull!! (by murva)
by jayt
Dynamic Allocation
 
Can anyone please tell me what dynamic allocation means and how do we use it ??
[17 replies] Last: Those parts aren't the point of the example. The code as a whole shoul... (by helios)
I'm getting errors that don't make any sense.
 
I'm trying to do my homework, but I can't understand the errors that I'm getting. By looking at the examples in my book, everything is perfect, but it doesn't ...
[5 replies] Last: Hey, that worked helios. I thought that I could just use the returned... (by Scythe37)
char* to time_t
 
Hello, I'm writing a program in C++ and I have a char string, " 1240717949684" , which I need to convert into the time_t type. It is apparently far too big ...
[6 replies] Last: Ok, thanks for the help guys, I'm going to download the boost librarie... (by crh0872)
Initialized arrays
 
If you have an initialized array that holds 9 numbers. And you want the program to prompt a user to input another number for the array to hold. Is this possible...
[2 replies] Last: Hey much appreciated. I'll look over array indices. Cheers, joey (by jrich73)
New pointer question
 
In my previous pointer post, I have a user input: Hello to the world and I converted this string to olleH ot eht dlrow using this code: istringstrea...
[10 replies] Last: After executing the code with the string reverse the string, this whil... (by kempofighter)
Making a portfolio (1,2)
 
Okey, so here's the thing. Next year I want to do the study International Game Architecture and Design but the problem is that 50% of the students that get a...
[35 replies] Last: It's written as though it was C, but since it has a .cpp extension, it... (by helios)
by Handix
Lvalue required errors
 
hello all..i have problem with my program wroten in Borland C++ Builder witch contains structure and grafics as forms and tables... when i trying to write to s...
[1 reply] : please use the code tags when printing code. Makes it infinitely easi... (by Disch)
by Joe101
app crash with mod division
 
NO need to read my post...i see what my (rather silly) error was...it turns out that you can't divide by ZERO! Hi, Still a C++ newb here, though enjoying ...
[2 replies] Last: Line 7 in PrimeFactory.C should be for (int i=1;i<=sqrt(num);i++) ... (by helios)
Error on comparing 2 string char arrays in C++
 
Error on comparing 2 string char arrays in C++ I'm working on a assignment that involve with fstream, loops, arrays, and functions from my introduction to C++...
[3 replies] Last: and change totalCorrect = totalCorrect + 1; to totalCorrect += 1; ... (by mcleano)
output to database???
 
is there a way to use file output to a database of some kind like MS Access or to an XML file, or something similar?
[4 replies] Last: sorry but i dont know what OTL or ODBC's are. i have been playing arou... (by kyle11778)
by murva
array of objects
 
How do I declare an array of objects from same class,sending different arguments for each object? In which case do I need to allocate each one of the objects be...
[4 replies] Last: Thanks for the help (by murva)
by Peyton
Time difference
 
Hi there, Here is a simple but challenging problem... How do I deal with it? Say I have a number of dates and times in a file , for example: 2008/11/2...
[4 replies] Last: Could you not manually convert HH element values into seconds at the t... (by mcleano)
Problem with a segmentation fault.
 
Hi, I'm newish to C++ programming (As you may have guessed), and I'm trying to write a program that will run if its given command line arguments (Oddly enough, ...
[2 replies] Last: I'm using it for file I/O, and last time I tried to use strings it wou... (by TylerM91)
by um0123
a couple simple things
 
heres my code // 2 and 2 is 5 #include<iostream> using namespace std; int main() {loop: int a,b,c; cout <<"Enter a number: "; cin >> a; co...
[4 replies] Last: Ah, I mistook that for something else, where there were four lights in... (by QWERTYman)
by rain
How copy files?
 
How to copy file from C:\source\file.exe to C:\dest\file.exe I want to have fixed code, I mean I do NOT want any command line arguments. Platform:windows
[3 replies] Last: Not really. This is C++ forum where we can help you, not do it for yo... (by kbw)
April 2009 Pages: 1... 34567... 28
  Archived months: [mar2009] [may2009]

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