Beginners - December 2009 (Page 20)

by j3tt
employee payroll program
 
//payroll program //created by Jett Bailes #include <iostream> #include <string> #include <iomanip> using std::endl; using std::cout; using std::c...
[7 replies] Last: Ok so weeklyPay is entered by the user in the getInput function. shoul... (by j3tt)
Trouble with Serialization
 
I'll post the relevant code and then explain the problem. class graph { public: edgenode *edges[MAXV+1]; // another class, not relevant int degree[MA...
[5 replies] Last: That... shouldn't work at all. (by helios)
C++ Tic tac toe
 
I'm having an output problem with my tic tac toe.When player 1 goes it marks a o.But when player 0 goes it also marks a o and not and x like i need it to be. ...
[4 replies] Last: thanks that helped out (by halestorm222)
Input mode control
 
Perhaps this belongs in the windows c++ section, I am not entirely sure. But anyway, I was perusing this thread http://www.cplusplus.com/forum/general/3570/pag...
[no replies]
by mtod1
How do I hide user input such as passwords?
 
Hi all I would like to know how to have user input via console appear either as asterix thus ******** or not at all(similar to entering passwords in a termin...
[2 replies] Last: Thanks for that ;) (by mtod1)
Tic Tac Toe Winner
 
Afternoon Gents, I've been using this website for reference ever since I began C++ 4 months back. While I was coding for a tic tac toe game I ran into somewhat ...
[2 replies] Last: Thanks for the help. I'll use your code alongside loops to check for h... (by revanjedi1988)
by s4l
Need some advice
 
Hello cplusplus! I'm currently studying computer science, and need some advice. I'm not exactly sure where to take things next, perhaps someone here can help me...
[2 replies] Last: Ugh.. Seems like the jump from what I'm doing now to OpenGL is soo har... (by s4l)
by wasabi
Which is faster?
 
While reading a standardized file where you know the character-length of each word, which is faster? fscanf(file,"%s %*s %s",a,b); or fscanf(file,"%s",a);...
[4 replies] Last: The first will be at least as fast as the second for reasonable values... (by jsmith)
Storing x and y co-ordinates in seperate arrays!
 
Hey there, Ive been told to use a loop and store the x and y coordinates of each corner of a shape in seperate arrays. ive also been told to ask the user to ...
[1 reply] : See: http://www.cplusplus.com/doc/tutorial/control/#loops http://www... (by Bazzy)
adding elements to a dynamic array, programg crashes
 
This code is inside the constructor to a class. When I run my program it crashes and this is the output before it does so: no problem here or here right here...
[3 replies] Last: The point is, you're using post increment rather than pre increment. ... (by kbw)
Graphics in VC++ (console base)
 
Dear friends , i'm using VC++ 2008 ex Ed. in windows 7 i've a problem in graphics when i call a rectangle function and compile its code and when i run it the...
[2 replies] Last: please any one tell me how can i use graphics in VC++ console base....... (by mrprince786)
Solving Patterns w/ arrays. Well, trying.
 
My assignment is to create a series of these numbers starting with 1. I am really not sure at this point where my code is going wrong. I've worked through it wi...
[1 reply] : you have some trouble in CreateNextNumber(). reiheNumber[i+1] was a... (by herbert1910)
draw shapes in C
 
Dear all, This code below draw a triangle in C Could someone help me about drawing square,brill,rectangular #include <stdio.h> int main() { int t; ...
[5 replies] Last: Hello, this is my first post, so i'll try to explain the best I can. ... (by Ashden)
get out of the loops? (1,2)
 
hi, is there a way to get out of a loop from a loop or a function inside that loop? while(.....) { for(.....) { ...is there a way to get out o...
[31 replies] Last: It does beg the question, why is that function so complex? That comes... (by kbw)
Calculator problem
 
#include<stdio.h> void addition(); void multiplication(); void division(); int main() { int opr; printf("Renzo's calculator\n\n"); printf("Choose any...
[8 replies] Last: No problem. And it was just a hint for you how to write questions ins... (by MaikCAE)
Bitwise Qns
 
#include <iostream> using namespace std; int defaultPara (int x = 100, int y = 200, int z = 300); int staticVar(); int main () { int n = defaultPara...
[6 replies] Last: Tks kbw & MaikCAE! I am grateful to your help. Cheers, makan007 (by makan007)
Beginner Program
 
Needing help with a beginner program here. First class I've had on C++ and I'm having some trouble with some if statements and else if statements. If someone ...
[6 replies] Last: your , is probably supposed to be a && (logical and). i like your u... (by herbert1910)
Semaphore
 
Hi, I'm working on a project,using VxWorks to create a real-time embedded system,I have a task that creates 3 other tasks using taskSpawn,and to share resour...
[2 replies] Last: Put the thread code in loops. Think about when Task2 can release the ... (by kbw)
Not Declared in scope...?
 
I just finished typing Wator an ecosimulation in visual studio 2008.. it works perfectly and all.. but i have to turn it in to my teacher on a linux machine so ...
[3 replies] Last: g++ ( 4.4 at least ) allows that too (by Bazzy)
P.P
 
where will i find practice problems of the beginners level.........pkz tell
[3 replies] Last: Take a look at this thread, which I just replied to before seeing your... (by nayakan88)
December 2009 Pages: 1... 181920212223
  Archived months: [nov2009] [jan2010]

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