Beginners - October 2008 (Page 19)

C++ question #2 alphabetical via string
 
Here is my code so far but I cant get it to alphabetize correctly. Please explain what I am doing wrong b/c its driving me crazy!! #include <iostream> #inc...
[1 reply] : Well, for simple sorting that isn't that time critical, I would just s... (by firedraco)
C++ integer question
 
I need help with an integer question please tell me what I am doing wrong. The function bascially says what I need to output. #include<iostream> using na...
[2 replies] Last: WTF?? It wasnt working a little bit ago. I guess I messed with it bef... (by keviinmc)
Encrypt/Decrypt, Arrays/Pointers
 
Thank you for the insult. How dumb do you think we are? Show me the teacher who "dumps" an assignment on his students 24h prior to delivery! Everybody g...
[5 replies] Last: @ Dandirom Not post it here herself, do it herself. But good l... (by CheesyBeefy)
Problem with Modularity Program...
 
I've been working on a homework problem for my engineering computer sciences class although am having trouble finding the error in my program and was hoping som...
[3 replies] Last: Sorry for that last post, I wasn't thinking properly lol. I have fixed... (by bazanaka)
Programs Interaction/Window Hook?
 
Hi guys. I am currently trying to learn as much about WinAPI as I can. But so far my program is very limited to (pressing a button--program will do something.) ...
[2 replies] Last: You don't need hooks to do IPC. Google things like "ipc" and "inter... (by Duthomhas)
by Arekus
Basic Function Problem
 
New to C++... Taking my first introduction class... We're supposed to make a function that calculates a discount when X amount of items are purchased. For examp...
[2 replies] Last: Thanks a ton. I managed to get the break_cost, lunch_cost, and dinner_... (by Arekus)
Making Moving Objects
 
Ok so i want to make something like a letter move upon user commands. i suppose everyone has been taught some form of this with the getch() function apparently,...
[3 replies] Last: You have to use some platform-specific code to do it. There is no way ... (by Duthomhas)
asterisk
 
anyone can help me in doing this? sample side = 7 x.....x .x...x. ..x.x.. ...x... ..x.x.. .x...x. x.....x side = 10 x........x .x......x. ....
[2 replies] Last: To get started, think about the patterns for each line. Each line has... (by Duthomhas)
Cannot figure out how to do a word count
 
Hello, Here's the details: User inputs sentence Program checks sentence for 3 magic words ("chicken", "egg", "rooster") Program keeps count of every mag...
[4 replies] Last: Sentences are normally terminated by a full stop (.), an exclamation p... (by Duthomhas)
Y is my code sucking?
 
When you input a number, put in 1 first then try wat is supposed to be the answer which is 5. it'll repeat sorry, try again over and over. where did i mess up? ...
[2 replies] Last: TY! TY! TY! Ive been so tired and its been so hard to think. TY!! (by LovestoCpp)
ideas to write a good interface
 
hi all , This is a question that I doing for fun , in the book Data Structures using C++ , The question is to to implement those functions that are already...
[3 replies] Last: And note that the above is compiler implementation dependent, although... (by jsmith)
Prime Numbers
 
I need to remove all prime numbers from the set. I can get the first loop to remove all the even numbers. I tried using two for loops but when i did that i dele...
[6 replies] Last: Ya i was trying to use Seive of Eratosthenes. thanks for the link it h... (by bluegray)
Opening and Closing .txt files
 
The user enters 5 numbers, the program creates a file and saves them to it, then re-opens it and displays the numbers, and adds them together and displays that ...
[2 replies] Last: You might want to use a for loop for writing and reading the numbers. (by Poke386)
Read a number 1000 integers long and make it into a vector
 
I am reading a file that has a number that is 1000 ineters long. It is 3156353653.... but I want to fill a vector for each number separately. That is make my ...
[2 replies] Last: I'm not really sure about this but I guess you could use .get() to get... (by Poke386)
Masking the password
 
Hi! I am making a program that keeps things like passwords. I wanna make a password to access this program. But i have a question: how change password letters ...
[5 replies] Last: If you read the user's input with getch(), the characters entered are ... (by jsmith)
by Pis
How to declare a GPA formula...
 
Please help me,.....I don't know how to make an input for GPA formula....for GPA calculator for 7 subjects (max)... #include <stdio.h> void main(void) ...
[11 replies] Last: I confused with my own code.......please help me.. GPA = [Tota... (by Pis)
Program Trouble
 
I tried to make a program but after I edited something it suddenly changed. #include <iostream> #include <fstream> #include <ctime> #define deposit 1; #de...
[5 replies] Last: Oh many thanks! It worked. (by bluezor)
quick cout question
 
im trying to cout a " % " on the same line, immediately after a cin . my coding example: cout << "Price increase: "; cin >> increaseRate; cout << "...
[4 replies] Last: thanks for the tip. i wasn't aware i could cout << string( 100, '\n'... (by hankof1983)
Illegal else without matching if
 
Don't put ; after your ifs and it should fix the problem.
[no replies]
Can I use DevC++ to print a file/data?
 
is there a code in C++ to instruct a program to print a particular file? how? I know how to save data via .txt or via .doc but i don't know how to print it whil...
[4 replies] Last: Do you mean display the text on the screen or actually print out a she... (by eker676)
October 2008 Pages: 1... 17181920
  Archived months: [sep2008] [nov2008]

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