Beginners - October 2010 (Page 27)

What't wrong?
 
#include<iostream> using namespace std; void main(){ int i,j; int min; int t; int a ; cout<<"enter 10 numbers:"<<endl; for(i=0;i<10;i++) cin>...
[2 replies] Last: Thank you! (by scofield)
Card Guessing Game, comparisons not correct
 
Wondering if anyone can help me, I've created a card guessing (higher or lower) but for some reason I can't get the comparisons 100%. For instance it will show...
[3 replies] Last: Yeah, you're completely right. I'm just not exactly sure how to go ab... (by scottypeps)
Keeping function pointers in a separate class?
 
I'm trying to build a (text-based) menu system. The idea is that there is a "Menu" class which holds instances of class "MenuOption" in an array. MenuOption is ...
[2 replies] Last: Thanks for the link, firedraco. I've managed to get everything working... (by Swiftslide)
by daveit
project c++ experience
 
Hi. I have not an c++ work experience and therefor I want to write one project,within I can use many c++ tools and feauteres.I need your advise for choosing ...
[3 replies] Last: edit: fixed my fail. (by closed account 3TkL1hU5)
Errors and don't know why
 
Hello, I am new at C++ and I been learning how to use C++ a couple of weeks now and it hasn't given me any problems. However, I been working on this program fo...
[1 reply] : Code tags, please. First, it is int main() , not void main() . ... (by Zhuge)
by Yitzu
Debugging
 
Today i've just started to program in C++, and i made my very first project following the C++ Tutorial, so I wrote this in a new project i named "Tutorial" whic...
[5 replies] Last: Don't make a Win32 Project. Make an empty project. (by Zhuge)
Leap Year Function
 
I'm writing a program to determine the number of days between a user selected date and the year 1753 (because before 1753, they weren't using the Gregorian cale...
[7 replies] Last: Galik, thank you SO much! You fixed a problem that I've been trying to... (by brycematheson)
by Maerle
About class
 
What's the advantage and the disadvantage using class? Not need to be brief.
[no replies]
c++ program compiler error?
 
I am getting this one error for my program that says "fatal error C1075: end of file found before the left brace." Can anyone help me fix this error? Here...
[1 reply] : Not to sound lazy, but comparing my edited source to yours should show... (by MottMan)
by Maerle
Whats's wrong?!
 
#include <iostream> #include <conio.h> #include <math.h> using namespace std; class SegReta { int x1, y1, x2, y2; public: S...
[10 replies] Last: I had a problem with all of those also. I now use cin.ignore().ge... (by AlphaBravo)
Enum and Switch
 
I have this program made already and it works and everything, but instead of case '1' they want me to put case 'Mon'. how would I make it do that. #inclu...
[3 replies] Last: Oh, i dont think that would be possible to ask to type Mon, since it h... (by edgarfa11)
by ender2
Multiple class problems (object initialization)
 
I'm having trouble initializing the object "com" in my main .cpp and can't find out what's wrong, I'm getting an access violation (like i'm trying to access som...
[1 reply] : In commiteeClass.cpp, you are using string pointers without allocating... (by cpluplusrat)
Some body tell me what is the name of this function?
 
heres the code.. i don't have idea what is the name of this function ..tnx.. int counter = 0; for( int i = 0; i < 10; i++ ) { ++counter; ...
[2 replies] Last: i mean what is the use of counter contolled loop of the function..?tnx... (by jonjondavid)
by wtf
How do you overload the [][] operator?
 
I've seen pages referencing how to overload the operator but not the operator.
[3 replies] Last: The is not an operator. Start reading here http://www.parashift... (by Duthomhas)
problem with set of code do-while
 
i have a problem with this set of code because i should be able to end the program when the person guess the right answer (should say you win and ask the user t...
[1 reply] : it is not stopping whenever time is 0 it keeps counting -1 -2 -3 and i... (by elvis0288)
Guessing Game
 
Hey I'm new to programming and am stuck on one of my assignments. Here's what we have to do: The rules of the game are as follows: * The user will be as...
[2 replies] Last: Although a more specific question would be appreciated, remember that ... (by MottMan)
What is a good and simple compiler?
 
I had a look at Microsoft's Visual C++ / Studio, but that environment is huge. I even don't mind to use Notepad as an editor, but the compiler should be somethi...
[8 replies] Last: I had a look at MingW, but that one is also like 1.5Gb. What makes... (by Athar)
Extremely confused - quick answer would be awesome
 
So I have an assignment for class, dont want to explain the whole thing but im trying to write some info to a file, then input from that file to another output ...
[6 replies] Last: Coming back to the original post - Only two lines are required to make... (by guestgulkan)
i have big problem with do-while
 
hi my problem is that i need to make random number for the picture and random number for the prize without the do while everything is working perfect but then i...
[5 replies] Last: thank you and i am sorry about that... my problem is that without the ... (by elvis0288)
Reducing Fractions in C++
 
Hello I need to create a program that reduces fractions to lowest terms like 875/1000 = 7/8 I have a function that kind of works and I was wondering if someone...
[3 replies] Last: You could use a recursive function such as: int gcd(int x,int y) ... (by Mike Sandy)
October 2010 Pages: 1... 2526272829... 42
  Archived months: [sep2010] [nov2010]

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