Beginners - September 2008 (Page 15)

by man156
button codes
 
i need code of keyboard buttons is there any source for that? & whish programme suitable for formation of game 2d ?
[2 replies] Last: codes i need is written for giving order in game programming & i sear... (by man156)
Pre-Test & Post-Test Applications
 
Can anyone give me real world examples of applications of the pre-test & post-test loops? For instance, using pre-test to determine the interest rate in achack...
[no replies]
Word search from file to display whole line
 
Hi Guy! I am trying write a small program which search word from text file and display a matched word whole line. Can any body help me out please? Thank y...
[1 reply] : You can use an ifstream to get input from files, and use the getline()... (by mahlerfive)
by larryG
how can fstream not overwite filedata?
 
does anybody know how can i insert data to a file in between the previous data?? eg if a file content is : "123456789" and i want to insert "abc" between 4 a...
[5 replies] Last: You can do it without the temporary file. Remember, think of your file... (by Duthomhas)
Prime Calculator
 
Hello. I've been working on a program that checks if your number is prime or not in C++ (i'm a total beginner). Anyway, i've done one before in Java so that's w...
[5 replies] Last: Just FYI... in the case that your number is prime, calculate() does no... (by jsmith)
by man156
if problem
 
how i can use if statment for more than 2 choice knowing that it is float not integer type & also how to use switch for float type & how to write that x equa...
[3 replies] Last: Try looking at http://www.cplusplus.com/doc/tutorial/control.html - th... (by Faldrax)
by duney
Storing data in a double-linked list
 
Hi, was wondering if any of you guys could please help me out! I'm fairly new to this and I need to write a program where basically the user inputs data about a...
[5 replies] Last: Yeah, your code is reallly messy and hard to read in that form Oo. Li... (by firedraco)
What do I use in this case?
 
case 'C': cout << "\nYou selected a 30 year loan term at 5.75 percent\n" ; mpaymentAmount = (mloanAmount*((minterestRate /100)/12))/(1-(pow(1+((minteres...
[2 replies] Last: Here is the whole .cpp. What I mean is that for some reason I am getti... (by walaskey)
debugging class
 
I have a program I am working on, it's a class. I am having some trouble with it when I build it a keep getting errors that I don't understand. I will post th...
[9 replies] Last: You have a function declaration and a function definition. You updated... (by helios)
by man156
interval switch
 
i want to make switch contain value for example if was 12.56>x>4.68 goto function mystring & switch code not suitable for float & not suitable using " for " ...
[7 replies] Last: I'll post a thing similar to what I said in Duoas's link to a thread o... (by QWERTYman)
selection problem k=n/2
 
I have all the code, at least I think I do. I have a bubblesort to sort my numbers and a timer to see how long it takes to sort them. But when I place the point...
[6 replies] Last: You are dividing by CLOCKS_PER_SEC (or CLK_TCK. Whatever that is). Don... (by helios)
by man156
activation programme
 
how i can make programme has ability to call my site on web & activate my original programme ? i need answer in details.
[6 replies] Last: Question: what for do you want a copy-protection if you lack the knowl... (by exception)
C++ newbie
 
I am trying to write a program to find the max number for 15 numbers inputted. I am getting these errors when I try to complile it: In function `int main()...
[1 reply] : 1. You don't need using namespace std; since you use the explicit ... (by exception)
by theDTD
sorting arrays
 
>how to make this one >i tried it many times but i always failed ------- *int list *the user will input 10 integer values for list *then the output should...
[4 replies] Last: wooo, thnks a lot guys! (^,^) (by theDTD)
Class in Switch
 
Is this possible? If so how? Thanks I appreciate the help. I am trying to jump out of a Switch to a class in the mortEnt.h file. switch(menu) { case 'A': ...
[2 replies] Last: Thank you! I feel very stupid now! I have been working this all weeken... (by walaskey)
Connecting 3 .cpp in one.
 
I need an example of what to do when I am trying to connect three .cpp into one. I have read everything and I am confused. example code would be great! What I h...
[3 replies] Last: AWESOME!! THANKS!!!! (by walaskey)
by pino
command-line options
 
Could somebody explain me what does the following command line means prog -d -o ofile data0 where prog is the program that contains main? Thank you.
[1 reply] : Well, I'll just put on my magic robe and wizard hat and infer with my ... (by helios)
How to compile/run from Command Prompt?
 
I'm kind of stupid and never learned how to do anything with the command prompt. How do you run exe's from command prompt? And how do pass arguments to it? (arg...
[1 reply] : >program.exe argv argv "argv with spaces" (by helios)
by Bladt
Translate roman numeral, what am i doing wrong?
 
Hi, for starters im trying to make this "program" print regular numbers when i input x,v or i. but i am ovbiously doing something wrong, can anyone please tell ...
[9 replies] Last: You can compare a character in a string to another character, but co... (by helios)
Character Mapping Program
 
Hello guys. As a beginner, I am going to ask a beginner question. I am trying to do a program that takes a txt file and counts the occurrences of each character...
[6 replies] Last: Thanks a lot for your help. I realized that I just have to replace st... (by locorecto)
September 2008 Pages: 1... 13141516
  Archived months: [aug2008] [oct2008]

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