Beginners - October 2009 (Page 2)

Cow & Bull exercise asking for criticism
 
/* Name: cow_bull.cpp Purpose: to create a working example of a console cow & bull game. */ #include<iostream> #include<stdexcept> #include<sstre...
[2 replies] Last: Your main/try/catch blocks are mixed together for some reason. Try/ca... (by Bazzy)
Asking for advise .
 
Hello, i just start from scratch programming in c++. Is quite difficult but fantastic too. I found a lot of good tutorials, all of them are theory with no exerc...
[4 replies] Last: The standard is rather hard to read except for the simplest things (e.... (by helios)
run-length
 
I need to write a program that I can input a ASCII file into it to decode it. I have saved the file into the same directory as my program but I don't know how t...
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/files/ (by Bazzy)
Beginner Projects
 
Does anyone know of anywhere with some beginner project ideas. I am taking a C++ college course right now and in between assignments I want to work on other thi...
[3 replies] Last: I like these a lot. While the first few are very basic it still helps ... (by cbouwkamp)
struct and union
 
we are using a struct and a union to map a 32bit microcode instruction to its corresponding bit fields. We have used this method before and it worked fine, exce...
[7 replies] Last: As yet, no one has mentioned that the thing the OP is trying to do is ... (by Duthomhas)
If statements involving a string and a int
 
Hi everyone, I'm new here :). I was looking for a way to query an answer from the user, and then, depending on their answer, choose a number for a variable.. T...
[7 replies] Last: http://www.cplusplus.com/forum/beginner/15368/page1.html#msg76089 Tho... (by Duthomhas)
by minix
Debugger
 
Hi, I want to make a debugger for my application. which also print line number and and file name. and also accept variable argument list. We don't need t...
[3 replies] Last: http://www.cplusplus.com/forum/general/14694/ (by minix)
how to use fstream?
 
hi guys, My point is to make a program that could read from given file byte by byte.. somehow it turned out for me not to be as easy so i simplified my code ...
[9 replies] Last: http://sl.iciba.com/viewthread-52-634575-1.shtml (by zhangwenlang)
by Aazor
Mac open source programs
 
I have been programming with C++ for a few months now and I am curious if anyone knows of a any sites that offer open source mac programs written in C++. Everyt...
[10 replies] Last: It is already installed. Thats good that its not just takin up space o... (by Aazor)
by robezy
Doubt about member functions calls
 
Hi, This might seem trivial, but i got a doubt. I have class like class SomeName { public: dosomething(); private: bool oneTwoDa...
[1 reply] : Yes. (by kbw)
arrays
 
1.Input characters from the user until a '-' character is reached. The input will all be characters, though some characters may not be letters; your program sho...
[2 replies] Last: Thank you very much! ok so my program is as follows but it says my le... (by spazamatic2)
How do I code computer shutdown?
 
I have computer addiction and need a program that will help me break it. Unfortunately, I couldn't find a program that has all the features I need. (I won't lis...
[4 replies] Last: Or you could use SetSystemPowerState(). (by helios)
by JWP321
must be nonstatic member function error
 
Hi, when I compile my code for proj07.string.cpp, i receive the following errors: proj07.string.cpp:31: error: 'String& operator=(const String&)' must be a n...
[1 reply] : You're defining the function wrong in the .cpp. It's not String::St... (by helios)
working with do-while statements
 
so im haivng trouble writing this program, here is my task: "Develop a program that accepts several integers from the keyboard (range:1 to 25) Program must ask ...
[4 replies] Last: Mate334 is correct... You're using incorrect logic here... }while... (by pjwarez)
Question in Arrays - Give an advice
 
The following problem has to do with Arrays. I would appreciate if someone could give an explanation in this assumption below: If we assume that SIZE is a ca...
[3 replies] Last: You should never ask this question because it should never happen. DON... (by mbittel12)
Looking YACC grammar for 8085 or any other assembly language
 
Hi, i have started working on writing a assembler and need to write Lex/YACC grammar for the same. i was looking for some already existing grammar for any...
[11 replies] Last: Yes, you're right. This actually could work pretty well. Of course,... (by Abramus)
ADD CODE ERROR ,Reference-parameters
 
I ' m a beginner... Can anyone help me too find out what's wrong with my code and fix it. thanks very much. #include <iostream> using namespace std; ...
[2 replies] Last: Thank you very much!!- hamsterman very helpful... (by james1008)
by rej3kt
Initialising an array within a for loop
 
All i'm trying to do is get the program to ask the person to enter a number in an array then test weather the number is between 1-50, i've tried doing it within...
[4 replies] Last: this can also work if ((number >= 1) && ( number <=50))... (by Maimaje Bello Abdullahi)
Error Checking ofstream?
 
#include<fstream> #include<iostream> #include<string> #include<cstdlib> #include"person.h" using weightGain::person; using std::getline; using std::cerr;...
[2 replies] Last: Okay I took it out for now. How should I use .bad() properly? I looked... (by cbouwkamp)
by Claymz
Abstract Base Class
 
hi, base class becomes abstract class, when it containes atleast one pure virtual function. so technically there is no need to make every virtual func. pu...
[3 replies] Last: You make functions virtual if you want derived classes to be able to o... (by jsmith)
October 2009 Pages: 1234... 25
  Archived months: [sep2009] [nov2009]

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