Beginners - April 2010 (Page 7)

by clio78
Simple date validating
 
I am in the middle of a program. It is unfinished. However i would like to validate the date. I am stuck. Please could you take 5 mins to look at this. H...
[9 replies] Last: its ok I made that same mistake in my first code project (by MSkillet)
My program wont let me put in an input! any sugg?
 
#include<iostream> #include<string> using namespace std; float choice; //integer to hold a value to determine which fucntion the user wants by using an i...
[7 replies] Last: @ packetpirate: I have noticed this but isn't float choice allowed I'm... (by MSkillet)
by Groo
Can't get max
 
I can't get this program to work right. It reads and displays the file it's supposed to, but it won't figure out the max and display it. I'm a newb at this so...
[2 replies] Last: Additionally : double max = data ; for(i=1; i<=max; i++) ; i... (by moorecm)
Version Comparision method
 
Hello all, I have a small problem im finding hard to solve, I need a method to compare version numbers. The version numbers will always be in the same for...
[5 replies] Last: that doesnt work for all cases... Correct. Consider a counter ex... (by moorecm)
by clio78
looping i'm unsure
 
I have a c++ problem regarding looping. I am writing a program which will include a problem similar to below. 1) ok, i am writing a program that asks the us...
[4 replies] Last: #include <iostream.h> #include <string> #include <conio.h> void fu... (by clio78)
by haim
Find largest number position
 
I have to write program using an array enter numbers and then determine largest number's position, For example if i e nter 5 7 9 1 6 it should return 2 since 9...
[2 replies] Last: I have to write program using an array enter numbers and then determi... (by Dufresne)
by zoerb
Getting "Parent" pointer?
 
So I have a class World_Object that holds a vector of Component objects. The components send messages to each other. I need a way to send the message (generat...
[2 replies] Last: That makes sense because the pointer does not need to know the complet... (by moorecm)
by fyodor
Problem with virtual function...
 
Hello! =) I have one more problem =/ I must run program like that: Vector2D V2D; Vector3D V3D; cin>>V3D; cout<<V3D; Vector2D *pV2D = &V3D; cout<<(pV2D-...
[2 replies] Last: HAhaha...how stupid i'm:D thank you... (by fyodor)
how to overload (int) for my class?
 
Hi I have a class that it have an integer attribute and I want when it typed for example : class myclass{ private: int salary; ...
[2 replies] Last: You can overload the conversion operator: operator int () const {... (by Bazzy)
Function irresponsibilities.
 
Hello, I'm trying to make myself a very very basic game, and so far so good. But since i haven't gotten that "far" itsn't not very great either... Anyway, th...
[14 replies] Last: You... You... You did NOT just do that. my god. Thank you. So, ... (by AngelHoof)
by fyodor
operator << and >> another way...
 
Hello! I got definitions of >> and << operator: ostream& operator<<(ostream& out, Vector2D& vector) { out<<"X "<<vector.x<<endl<<"Y: "<<vector.y; ret...
[2 replies] Last: It helps me so much, thanx! (by fyodor)
Modify
 
Can any one help me in function modify i wanna modify the data but i cannt do it #include <stdio.h> #include <stdlib.h> struct Student { char ...
[no replies]
by JoH
Should this be a member function?
 
I have created many functions which I wish to use but am unsure whether they should be inserted in to the class as a member function. I am wondering if this pro...
[3 replies] Last: I am afraid that I haven't been able to figure out where this primary ... (by JoH)
by new
cout array to screen
 
I am trying to get the values in my array to print to the screen. When I do the step in debugging it looks like the values are going into the array okay. How ...
[1 reply] : My eyes bleed by looking at this, sorry... Surround your code with cod... (by AngelHoof)
Car rental Program...so lost...
 
I am on my last assignment for my C++ class (thank god) and I find myself really lost. I don't know where to start. In this program I must use arrays. I am open...
[1 reply] : int YTD Would be the correct way to declare the array. There is ... (by AngelHoof)
Input validation issues. Need a second pair of eyes pls.
 
I'm working on a project for class and i cant get one function to work correctly. Basically I'm trying to validate the user input as an interger between 1 and 3...
[3 replies] Last: You might fancy a variation of the following as a way of excluding the... (by dan1973)
Visual C++ 2008 not creating a .exe file
 
Hi, This is my first day C programming and I have a problem. When I compile my code, no .exe file is created. My object is called ex1, because it is the f...
[10 replies] Last: Ah I found it, the compiled output was being sent to another directory... (by adamchapman)
Animal insurance and functions...........
 
Hello all! Am pretty new to c++ but very new to functions. Found an exercise online about animal insurance and thought it sounded like a good place to start ...
[3 replies] Last: Thanks very much for the assistance, both pieces of advice really help... (by dan1973)
by haim
find largest number position
 
I have to write program using an array enter numbers and then determine largest number's position, For example if i enter 5 7 9 1 6 it should return 2 since 9 i...
[3 replies] Last: one more question i tried to write the program calling function but... (by haim)
by jbl09
space delimited
 
how would i make a file that has the seven days of the weeks in a space delimited text file?
[1 reply] : Dont quite understand the question. So you want to write the seven day... (by devilirium)
April 2010 Pages: 1... 56789... 35
  Archived months: [mar2010] [may2010]

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