Beginners - May 2008 (Page 8)

by fonzie
MORE file I/O troubles
 
This program runs fine, but when I go in my files to find "database_file.txt" I can't find it anywhere. Anybody spot where I went wrong? #include <cstdlib> ...
[4 replies] Last: Hi fonzie, U r trying to write the data to a file after creating th... (by DiptenduDas)
My calculator.
 
I am kinda newish to c++. I just wrote this calculator, and I want to make it... better. Any idea's #include <iostream> using namespace std; void add(in...
[2 replies] Last: Ok I will work on that, but I need to crash for tonight. Thanks for t... (by kadajett)
Enum & macros
 
Hello, I am facing problem where I want to create compile time error.I am modifying macro which takes one parameter and then it need to be evaluated again...
[1 reply] : You can't mix C++ and CPP (preprocessor) data. So if the argument to t... (by Duthomhas)
fstream Reading Carriage Return
 
How do I read a carriage return in a text file and cout? while ( inFile >> data ) { // read file . if( data == "\n") // how can i recognize "new lines" ...
[7 replies] Last: Thank you very much that was a big help! :D (by deleted account)
Using a function to change the data in a struct
 
Before I begin, I would like to say I'm very much a beginner to C++. I have searched fruitlessly thus far for a solution. I have been up all night trying to ...
[7 replies] Last: Ack! Sorry! (by Duthomhas)
fscanf in text file
 
i need help to scan the following in text file 56567-64-654-546 how can i get each integer without (-)..tq.
[4 replies] Last: There is no danger in his format string. The worst that can happen is ... (by Duthomhas)
need some assistance in breaking code in to class
 
ok after somet time im now ready into breaking my code apart into 4 class Sports,NBA,NFL,MLB, now i have broken it to where that parent class will be the S...
[4 replies] Last: To execute this correctly you can do it 2 ways. int main() { C... (by Zaita)
by gem925
Text file-getting confused
 
This is the whole assignment listed below it the last part where I am having trouble putting together. Any Help would be appreciated I hope this gives you a cle...
[1 reply] : http://www.cplusplus.com/forum/articles/1624/ You will be more like... (by Zaita)
header file?
 
hi, what exactly is the function of a header file? i wrote a program with two source codes, and linked them with a #include "header.h" comment. i compiled these...
[4 replies] Last: The simplest explanation would be: "The header file allows you to s... (by Zaita)
Opening Image Files
 
I'm in my first year of programming so i'm not really that familiar with the whole c++ genre yet but i was wondering... for my term project is it possible to...
[1 reply] : That's probably way over your head. If you are using the console, y... (by Duthomhas)
Changing interface with c++
 
I need a few tips for messing around with the default interface in c++ consoles, I know it's kind of lame , but its a requirement. I need to be able to change...
[2 replies] Last: Your best bet is Curses . If you are using *nix, check out NCurse... (by Duthomhas)
by zachlr
What's wrong with this class?
 
I'm currently learning about classes, and I'm trying to make a simple program to create, and show information about a member of a club, guild, etc. Here is p...
[13 replies] Last: Ok, never mind. I used using std::string, but didn't realize I also n... (by zachlr)
by gem925
Confused on creating a text.file
 
//I am having trouble with the bottom half of this program creating text files for the numbers and word. Basically know what //and where to put things is very ...
[3 replies] Last: This is the whole assignment listed below it the last part where I am ... (by gem925)
C++ API documentation in html
 
Hi All, I'm a new student to the c++ language, I have been using java to do all my programming. I would like to know. Does C++ have a java-like API documenta...
[1 reply] : There is not unfortunately. Your best bet is to start at http://www.c... (by Zaita)
In search of strings
 
I've been working my way through a beginning C++ book and have been rather frustrated with the lack of information on strings. Can anyone recommend a good book/...
[3 replies] Last: The size_t is an old C type that basically means "some potentially-h... (by Duthomhas)
Passing arrays as function parameters
 
Well, I have always had problems with arrays and functions together. #include <iostream> #include <vector> using namespace std; struct Massive { ...
[1 reply] : I'm still not sure exactly what you are doing. Your Compare function... (by Duthomhas)
by gem925
Struggling with end of array for program
 
Add code to read 5 words from the Console (user input). Store these values into an array of string . Make sure the string array is large enough to hold at l...
[4 replies] Last: Thank you so much for your help I just wish the book would show exampl... (by gem925)
by mac173
Console window shuts down instantly
 
I am just beginning to try to teach myself programming. I have the Borland Turbo C++ compiler. My first "Hello World" program seemed to run, but the console...
[4 replies] Last: Arrgh. http://www.cplusplus.com/forum/beginner/1865/#msg6775 (by Duthomhas)
by Cbas
Char for switch case
 
I've got a code which allows people to change values, of the machines. It works if they input a, however if they first change an object then accept them, it cra...
[3 replies] Last: The problem might be because if you enter 'A' you get a random value i... (by Duthomhas)
by Cbas
output to Excel
 
I've been reading all the information on outputting files, however, I still cant output my array to excel. Any ideas? Please The array call it A is A with flo...
[2 replies] Last: Crud. I just re-read your first post and realized that you are trying ... (by Duthomhas)
May 2008 Pages: 1... 678910... 12
  Archived months: [apr2008] [jun2008]

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