General C++ Programming - October 2009 (Page 11)

Incorporating functions into my project..?
 
I started my project, which is to create some casino games. I started it and the high-low and roulette games work. However, then my professor gave us the criter...
[1 reply] : If you don't how functions work, read this first: http://www.cplusplu... (by firedraco)
Typecasting struct pointers?
 
I'm trying to get into socket programming, but I am having trouble understanding some of the ways pointers and structs are used. For example from "Beej's Gu...
[8 replies] Last: Maybe I am not phrasing my question correctly. ipv4 gets the memory l... (by MaxT)
seperate functions file
 
my professor has reassigned an old lad, but has told us to place all of our functions in a separate file. I would love some help. I can't seem to get the calcul...
[3 replies] Last: 1. What is each function supposed to do. Specifically, what is the i... (by jRaskell)
Generating combinations using next_permutation
 
I was told that it was possible to generate combinations of a set of elements using next_permutation. Does somebody know anything about that?
[3 replies] Last: There isn't a way that I can think of that doesn't require a lot of ex... (by jsmith)
Need advice with Functions returning a value.
 
Ok so heres my homework assignment: "Rewrite a the findMax() function in Program 6.5 so that the variable max, declared in main(), is used to store the maxim...
[10 replies] Last: When I do that i get this output: Enter a six-digit integer (not di... (by ljrobison)
Problem with assure(out, "macro.out");
 
I am using C++ Builder to study C++. When I apply the code listed below, sometimes the macro is created with results. Other times the macro file is empty and th...
[7 replies] Last: I have compiled the unaltered code outside Borland Builder without pro... (by Peter1234)
c++ goes flowcharting
 
i have a hard time to convert my c++ program into flowchart... any idea on how to convert my c++ program into flowchart? heres my source code and problem...
[10 replies] Last: Ya, that was stupid. I was thinking about not dividing by zero. (by turbozedd)
Putting a C-string into a struct
 
Hi. I have some code to get the vendor string from a CPU, but I don't want the function (see below) to print anything. I want to put the string in my struct (al...
[8 replies] Last: Oh, wait no it wasn't that code; my mistake. (by chrisname)
im trying to use "if and esle" to solve this problem.
 
hii everyone, im trying to figure out how to do this assignment but i dont know to continue. im not sure how to convert hours to min, the formula to find parkin...
[2 replies] Last: promt for start and finish times as (hr,min) then you get: cin>>hr1... (by buffbill)
Yet another poker game
 
This code loops when alpha letters are inputted into an int variable. The problem I am having is in cin >> bet;(line 52), bet is an int variable and I dont k...
[1 reply] : Check out: http://www.cplusplus.com/forum/articles/6046/ (by firedraco)
by r3n311
how to program game not using windows?
 
how to program game not using windows libraries, can i make my own GUI on my own?
[8 replies] Last: thank you very very much guys,. \m/, (by r3n311)
by JRevor
argv and argc ?
 
I'm creating a program that reads from the command line two integer vectors, and transforms them into polinoms, allowing us to sum, multiply, and subtract them...
[6 replies] Last: yeah, as you said, i thought of int* as a type. That would imply repet... (by JRevor)
3d picking
 
Hi all I am making an rts, and I've just made it 3d. I know how to make a single guy picking function, but what should I do with selecting multiple guys? Shoul...
[3 replies] Last: I don't believe there's any D3DX utility to handle multi-picking. I wo... (by jRaskell)
by wincry
Qt Vs wxWidgets Vs VCL
 
1)Qt 2)wxWidgets 3)VCL So which one is the best ?? i am completely new to c++ gui programming , any suggestion and comment will be greatly appreciat...
[7 replies] Last: Qt is (quasi)dead on european market. (slow, expensive, etc...) ht... (by Bazzy)
2nd largest
 
Can some1 plz tell me d statement 4 2nd largest no. In a given list
[1 reply] : http://www.cplusplus.com/articles/how_to_ask/ You can sort the list... (by Bazzy)
template and operator =
 
Hi, I've a problem with my template class and I don't understand why. I've this base class template template <typename T> class TBase { public: ...
[4 replies] Last: The assignment operator really should return something so that it work... (by jsmith)
Timer Implementation In C++
 
can anyone please help me out on the timer issue? I know that we have WM_Timer in the MFC which is good enough to use for the timer applications . But how to...
[1 reply] : Something like the following? #include <windows.h> #include <iost... (by closed account z05DSL3A)
how to test if user has entered valid integer
 
isdigit takes char as parameter so how would i test that user has entered integer not any garbage ..
[2 replies] Last: how would i test that user has entered integer not any garbage .. ... (by Bazzy)
having some problems
 
This is the program that i need to write....... This program produces a table that tracks the fate of a free-falling balloon. Dropped from height you speci...
[2 replies] Last: You provided the velocity, but you dont provide its computation. (by Gilmar)
program which yelds no output
 
The assignment is: Write a program that asks the user how many numbers will be entered and then has the user enter those numbers. When this is done, report t...
[2 replies] Last: Awesome! Thank you very much Bazzy. i had a feeling i was using count ... (by Soujirou)
October 2009 Pages: 1... 910111213... 17
  Archived months: [sep2009] [nov2009]

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