Beginners - October 2010 (Page 28)

Calendar program to count the days...
 
I am a very new programmer and am working on an assignment to create a program that counts the days from Jan 1, 2010 to a given date. I am doing great so far, ...
[1 reply] : :) You have a semicolon after: while (day>maxDay) (by keepjumpin)
by mzdr
syntax errors g++ compiler
 
#include<iostream> using namespace std; int main() { return 0; } this should be enough tokens for a program to compile and execute. It compiles b...
[6 replies] Last: ./a.out worked ... I'm new to linux , on and off for about a yea... (by mzdr)
Advice please--working but not working program.
 
The program compiles and runs, gives the correct answers to the sample data to be inputted. So, it appears as if I am done. However, upon entering a really larg...
[3 replies] Last: lol. I guess I should have refreshed the page before posting. Also, h... (by keepjumpin)
Porting problems
 
Hey A friend an I are trying to port an old board game over to a simple console based game as part of C++ practice. We already finished up the player class b...
[1 reply] : Firstly, http://www.cplusplus.com/forum/articles/28558/ Now, what is ... (by hamsterman)
by jpc271
Change machine off by a penny... sometimes.
 
Hello. I'm brand new to the forum. I have been lingering and searching for a while but never opted to join up. I have to write a program that will determine...
[5 replies] Last: Thank you so much! (by jpc271)
using "scientific" and positive and negative numbers
 
Hi everyone! I am generating some contend for a file which should look like: N, 1, -1.2244281e-16, 9.9985440e-01, 6.5286169e-03 N, 2, -5.9098613e-01, ...
[1 reply] : what about std::showpos or std::setw and std::right ? (by Bazzy)
how can i random this program?
 
hi.. can you give me some guide how can i random this program.. tnx..! heres my code.. #include<cstdlib> #include<iostream> #include<time.h> using ...
[1 reply] : What is the purpose of your program? Here is an example of pseudo r... (by keepjumpin)
fopen
 
Hello people, I am just starting C programming and I am having trouble with fopen. My current text works fine but I can't figure out how to keep the result. He...
[1 reply] : Hello victortacos, This line printf("%i,%i,%i,%i,%i.\n",rand1,ran... (by coder777)
New objects in Binary Search Tree
 
I am working on a project, for school, that takes in a text file, creates objects of type Cat. Here is the loop to create cats while (inFile.good()) { ...
[1 reply] : Hello CoffinNail, you cannot place a function of a template class o... (by coder777)
by ToniAz
Inserting into a double vector
 
Hello everyone! I searched everywhere for this, but found nothing... What I need to know is how to insert an integer value in a double vector. In double arra...
[3 replies] Last: To extent the size in the j direction you need to loop through each ar... (by Galik)
by Maerle
Doubt in the class structure
 
class Lista { int array ; int cont; public: Lista(): cont(0) {} ~Lista() {} }; What's the meaning of the : cont(0) {} ?...
[3 replies] Last: It's an initialization list. It is used to initialize the member cont... (by moorecm)
questions about <iomanip>
 
hi everyone - noob here I have been trying to build a project with a header file and two cpp files. One of the cpp files is a test driver (main) and it uses ...
[2 replies] Last: The compiler shipped with Dev C++ has a buggy std library, you should ... (by Bazzy)
by xcmir
Different object names
 
Hi there everyone If I need to pass a range of objects into some functions for processing, what would be the best way to specify which objects to process and w...
[3 replies] Last: At the end of the day you can not avoid having to do seven different t... (by Galik)
by dznguy
stopping loop but contiune
 
so im writing a prgm that find the perfect number where the user enter from x to y. such perfect numbers are 6, 28, 496, and 8128. my prgm: #include<iost...
[6 replies] Last: [quote=dznguy] if (sum==outer) cout<<outer<<" is a Perfect Nu... (by guestgulkan)
How to roll the dice
 
Does anyone know rolling the dice program. I don't understand the meaning of the commands I have this program and I need to redo it into all numbers not only 7...
[4 replies] Last: Thank you so much I'll try to do the program and make a graphic for th... (by marichi)
Opening CD tray
 
What functions would I use to open the CD tray? I've received mixed research results on this, some long and some simple. I've found a few snippets (that I tr...
[9 replies] Last: Le bump! Nothing? From all the people I've given the above snippet ... (by Neo Nemesis)
do-while loop question
 
ok so i'm making a very simple program for myself and others at my school. It is a simple conversion program that converts everything from Kelvin, Celsius, and ...
[5 replies] Last: Apologies if this has been answered, but my scouring of the internet h... (by rparker)
translating c++ code into pseudo code
 
hi, i just want to check if my c++ code void insertLast(Node* &f, int v) { if (f==NULL) f = new Node(v, NULL); else ...
[4 replies] Last: Thanks again for your help. I will keep your remarks in mind when i wr... (by pirlo89)
errors with a class program
 
I need help trying to fix the errors in my class program. The comments to the sides are the requirements for the program. My compiler says that there are a bunc...
[1 reply] : For starters, it's "class" and not "Class". C++ is case sensitive. ... (by LB)
Why Can't I make this into a class?
 
Why can't I make this into a class? (It works fine as functions alone but, once I put it into a class it generates errors, also I know I havent made any Private...
[6 replies] Last: Also, just a note for you based on what firedraco said about your use ... (by LB)
October 2010 Pages: 1... 2627282930... 42
  Archived months: [sep2010] [nov2010]

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