Beginners - March 2010 (Page 29)

Hi! I have For Loop problem!! Thanks
 
I was ask to write a program that do the following: You start the job with 1 cent salary, and each day after you earn double the previous days salary. The...
[5 replies] Last: Thank you too, Have a good night.. (by cubanmiami05)
im working on a text based combat system (1,2)
 
and i would like to assign actions... to a button on the keyboard can any1 give me a hand with this?
[25 replies] Last: I agree, the gaming industry is focused on what attracts an audience, ... (by yoked88)
by Nichi
Cin without console
 
Hi all! I'm using DevC++ to develop my program and I started my project as a Console Application. Then I changed in the project Options the type to Win32 GUI...
[5 replies] Last: I think that people use GetAsyncKeyState () far more than is right. I... (by Duthomhas)
Declare Vector with String as Name
 
If I have a string with a name or word in it, how do I go about declaring a vector with the string's contents as its name? Also, how do I check when I decl...
[1 reply] : You can't declare a vector with the identifier (or name) being another... (by Warnis)
confused on basic c concept
 
I have the following code foo.c #include <stdio.h> int c; void printc(){ printf("c is %d\n",c); } bar.c #include <stdio.h> int c; void pr...
[8 replies] Last: Thanks for the clarification. (by brakepad)
sorted insert and linked lists
 
Hi, I posted the other day but removed it because I thought it was a bit sloppy and because I thought I had figured out the solution. However, I'm still having ...
[2 replies] Last: sorry about that, I put the comments outside of the code. I'm tryi... (by towelrack)
by bavman
Read a specific line in ifstream.
 
I've been looking around and I keep running into the getline() command. I basically have a txt file with several lines. I want to be able to tell it a line numb...
[2 replies] Last: i do not think that there is such a function that does exactly what yo... (by kempofighter)
Delete posts
 
How do I delete threads/posts?
[2 replies] Last: Next to your name in the hearder of a post you've made should be eithe... (by jRaskell)
renaming files doesn't work
 
Here is the source code of the program... I'm not sure what else to mention... uhm.. here is the program's output ... every time: File not found! ... so it can...
[2 replies] Last: yes... tested both with and without the files. Same thing Later edit:... (by adikid89)
by Zexion
Advanced card game
 
I just started Programing this year in class, and was given an assignment to shuffle a deck of cards. Well I did so and know I would like to make a game out of...
[1 reply] : I just started Programing this year ... Also how do I put it into... (by jRaskell)
Using pointer arithmetic instead of array indexing
 
Hi all. I'm currently working my way through a beginners book on C++. In the book there is an exercise that demonstrates the difference between using array i...
[5 replies] Last: I am glad that my answer was helpful. (by Danielsson)
by HELP
how can i fix this???(sorting)
 
#include<iostream.h> #include<ctype.h> double vat(double x); struct compute { char name ; }; compute sug ; int limit,cntr; double price ; co...
[4 replies] Last: That code is just to hard to read as is, I'm not commenting until it's... (by gcampton)
Problems with a C string and its ascii code
 
hey guys so in my C++ program i have a function that evaluates an input string from a file. so i just want to show you my function really quick: int code(...
[1 reply] : Please use [ code ] tags around your program (you can edit your own po... (by imi)
Random #
 
hey guys i need to make a random # generator... and im having a problem... it keeps telling me that i need to return something.... but i've tried a bunch of dif...
[13 replies] Last: Sorry, typo on my part. RAND_MAX = 2^31 - 1 (it is signed). (by jsmith)
by Ajax
hi, new here, problems with stdio (1,2)
 
i just started, and i am trying to do my first programme, but i have syntax errors telling me that no such file or directry as stdio.h. please help guys, thank...
[21 replies] Last: Thank you i will try it out, i wanna learn C++ for real (by Ajax)
Martix reading problem
 
Dear All, I am new in C++ and in this forum, I have a problem to understand what the program is doing when try to read a matrix. I do not know what does mean...
[1 reply] : modulo (remainder of integer division) (by jsmith)
Using std::sort
 
I am using a array of pointers to objects and wish to sort them using std::sort(). However, I've noticed that sort() cannot do this and seems to only work on n...
[3 replies] Last: Awesome, thanks imi. Denis I should have realized that was what it... (by AlwaysLearning)
Sorting By Mileage
 
My next part to the code is doing a selection sort and displaying my array in that sort! Can someone please tell me if it looks like I am doing this right or d...
[5 replies] Last: temp = 0; for (int i = 0; i < SIZE-1; i++) { for (int k... (by jRaskell)
question to cin on Floating Point values
 
float b/*Monies*/,s/*Sum*/=0; while (b!=0){ cout <<"Enter monies:\t"; cin>>b; if (b==0)b=0; else if (b!=.05 && b!=...
[9 replies] Last: EDIT: Using double solved the problem. Thanks a lot guys! It alle... (by jRaskell)
bitwise copy constructor
 
if i have a class that stores 3 integers, is it true that using the default bitwise copy constructor would be faster then overloading the assignment operator ...
[3 replies] Last: It would not be slower. struct A { int a,b; }; struct B { in... (by imi)
March 2010 Pages: 1... 2728293031... 34
  Archived months: [feb2010] [apr2010]

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