Beginners - October 2008 (Page 4)

console problem, running in background
 
i have a program where you can use the a and s keys to do mouse clicks, but the console that this program runs in has to be "highlighted" or clicked on for this...
[2 replies] Last: ok, well maybe i'll pick this project up once i understand windows a b... (by kartracer12)
i need advice on how to write functions
 
I have to write a program that calculates the perimeter, semiperimeter, area and centroid of a triangle using coordinates input by user. Some of the requiremen...
[3 replies] Last: You can use global variables or pointers (if you have learned about po... (by Scipio)
c++ simple problem
 
How i declar a global variable,i have a project, a header file and 2 .cpp files, and if i declare in header : int x; there will be a error if i use this 'x' in ...
[7 replies] Last: Thanks for the information. I'm not very familiair with self-created h... (by Scipio)
for loop
 
hello im having trouble with getting my for loop to work. what it is supposed to do is display all the odd intergers from 1-13 and get the product of all of ...
[4 replies] Last: The code should: - Be put in main a main function - Have iostream in... (by Somelauw)
Member functions inside struct
 
hi all , I am using the minGW C++ compiler with the DEV C++ ide on the windows vista , I just write this struct , but this is failling , I spend several hour...
[2 replies] Last: well , I don't know why I don't seen that . anyway need's more patien... (by sanzilla)
Optimizing code
 
I need help optimizing this code to be cleaner, faster, etc... Added a second code at top of the post, need advice for that one too :P. It works great now...
[18 replies] Last: Perhaps: int current; int prev; int prevprev; for(current = 1, ... (by QWERTYman)
function does not take 0 arguments
 
Hey I'm trying to compile my program, but I cannot figure out this compile error, I've spent almost 2 hours now trying to figure it out. Heres the code : ...
[2 replies] Last: You mean line 235 :) (by Timaster)
Pointer to 2D Array into Function
 
Hey All, I've been away from programming for a little bit, and could use a little help here. Here is the code: void showMap(const int *map); int ma...
[3 replies] Last: In order to pass a 2-dimensional array to showMap, showMap has to hav... (by jsmith)
Struct of Arrays and pointer manipulation
 
Ok I have the program all done, but when I compile to run I get this popup that says Project5.exe has encountered a problem and has to close...could someone ple...
[1 reply] : I don't know what this does: struct Donor { i... (by jsmith)
Arrow Key Identifiers
 
What is the name to identify an arrow key? For example, to have a switch statement with a case of an arrow key when using getch(); I was thinking it would be...
[8 replies] Last: Many of the "special" keys on a keyboard -- Up, Down, Left, Right, Hom... (by jsmith)
Counting vowels program creating loop
 
ok so I'm not looking for anybody to write code for me, but I am rally confused with this and wonder if anybody can point me in the right direction, I have to w...
[14 replies] Last: Here is your code: #include <iostream> #include <string> usi... (by Scipio)
Problem with 2-D arrays
 
How does the following program work? #include<iostream> int main() { int a ={5,5,5,2,2,2,8,8,8}; for(int i=0;i<=2;i++) for(int j=1;j...
[9 replies] Last: Well, i dont fully understand what your code is trying to do. But it o... (by Scipio)
Winnie - from Sourcecode
 
Hi, Would somebody please help me to get simple code (Winnie) work? This should be quite a simple one but I don't understand why can't I get it builded? ...
[10 replies] Last: Hi again, Thanks Bazzy! Now I got it! It works! Hmm... Obviousl... (by TapaniS)
by dronsf
Array homework question.
 
I have a new homework assignment that has to do with arrays. I am strugling to grasp the concept. I keep reading the chapter over and over but still don't know ...
[6 replies] Last: You'll have to return double as well, and your addition has a little m... (by Poke386)
Unable to calculate final score properly
 
Hello. I have made a dice game (that is also in the General C++ Programming section) but there is a problem with it. After each game, you get points according ...
[3 replies] Last: This is the new one. This copy was never posted in the General C++ Pro... (by bluezor)
Finding the GCD in C++ Program
 
Can someone write a quick program for me. The purpose of the program is to find the GCD(Greatest Common Denominator) of two integers that are inputed. All commo...
[11 replies] Last: here's a hint, I won' t write the code for you: the GCD of x and y ... (by grcunning)
for loop
 
Hey I'm having trouble getting the for loop to work, it's pretty similar to another for loop I did earlier only the previous worked fine. The count list is one ...
[4 replies] Last: I used [distance = .5 * 9.8 * pow(count,2.0);] instead of [distance = ... (by cascade384)
Strings logic!!
 
Write a function substring which accepts a string and construsts its substring as per the given star and end index.Write a program which accepts two strings x &...
[1 reply] : First read: http://www.cplusplus.com/forum/articles/1295/ Then rea... (by firedraco)
iostream, fstream which do I need for handling files?
 
C++ is really confusing. #include <cstdlib> #include <iostream> //#include <fstream> #include <cstring> using namespace std; int crypt(char* file, fl...
[2 replies] Last: Thanks you are right: tellp and seekp are for input tellg and seekg ... (by Somelauw)
by jrock
selection sort
 
trying to call the function in ascending order i can't seem to get the output complier says something about "arrSelectionSort idenifier not found" #include...
[3 replies] Last: Again you didn't print them. (by Somelauw)
October 2008 Pages: 123456... 20
  Archived months: [sep2008] [nov2008]

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