General C++ Programming - September 2012 (Page 4)

Testing out my Reverse Polish stack...
 
Hi all. Just trying to get through this addition portion before moving on with the rest. Can't seem to figure out this pop,pop,push sequence. I know I'm heading...
[1 reply] : #include <iostream> using namespace std; class polishnode { publi... (by TheJJJunk)
Calling parent function from child class
 
Hello, I have a class called 'VideoPlayer', in which I create an object of another class called 'MenuBar'. In the 'MenuBar' class I handle mouse events. I...
[4 replies] Last: You are my hero. Works like a charm! Thanks a lot. (by harryvermeulen)
Sum Of Number
 
// Includes #include "stdafx.h" #include <iostream> #include <conio.h> #include <stdio.h> using namespace std; // Main Function int main() { int n = 0; //c...
[3 replies] Last: Or you can just do sum = n * (n + 1) / 2; (by closed account o1vk4iN6)
HELP, For Loop
 
How would you do a for loop for the eyes in this code ________________________________ #include "DarkGDK.h" void DarkGDK ( void ) { int x; for(...
[no replies]
distance traveled
 
// Includes #include "stdafx.h" #include <iostream> #include <conio.h> using namespace std; // Main Function int main() { int speed; int hours; ...
[2 replies] Last: interesting coding List... (by Arturoem)
how to use <fstream>
 
Hi, I am using <fstream> in my code and using it to accept string inputs from a text file. My code is as follows: string instruction; infile.open("word...
[1 reply] : infile >> instruction; reads a word from a file (a sequence of non-... (by Cubbi)
My latest creation
 
Hey c++ forums, I have been recently working on an toolkit which may or may not come in handy depending on what kind of person you are this tool kit is design...
[4 replies] Last: You've posted your code in a public forum, and you're asking people ... (by closed account 3hM2Nwbp)
by Gomboo
It;s my homework and i need help
 
This is my homework and i need help pls write this ================================================= MENU ================================================...
[1 reply] : Step 1: Create your student structure, then report back. (by clanmjc)
by QIZI94
Problem with sockets
 
Hi guys, I am trying a TCP/IP protocol and I have this errors in all methods, what i try: 1>socket.obj : error LNK2001: unresolved external symbol _accept@...
[3 replies] Last: I added #pragma comment(lib,"Ws2_32.lib") to my code and it's works... (by QIZI94)
by coobs
calculating halves (.5)
 
Hi, Working on a program where I need to calculate halves... example: A parent says they will stay for 4.5 hours. If they stayed for 3 hours, they would pay $1...
[1 reply] : division operator / with floats or doubles (by soranz)
Online shopping
 
This is a part of my project. And I don't know why the "name" and the "namefind" don't match if I run it. Is the loop correct? void ShopMoreTopsJackets() { ...
[3 replies] Last: Sure, if it's not too long. Don't forget code tags thankx XD (by soranz)
i m new to C++ programming. i just want to print the prime numbers on screen.
 
number is given by the user. error show when i compile the code "18 syntax error before `<<' token " plz suggest where is fault.below is my code #includ...
[3 replies] Last: i did some modification in the code but still have some problem plz gu... (by tajamul)
by lala
problem with assigment.
 
hi..im newbie here.im still confused on how to start to write the programming.anyone here can guide me with my assigment?
[1 reply] : the programming What program? (by kbw)
Rational Numbers Class
 
I need to create a RationalNumber class to implement the storage and manipulation of rational numbers.I need to implement the following actions:  A constr...
[3 replies] Last: as well as my .cc file.... #include "Rational.h" RationalNumber::Rat... (by tjmohney)
Help with my basic programming homework
 
assignment: A college coffee shop allows students to charge coffee drinks and then bills them at the end of each month. Write a C++ program to determine the m...
[3 replies] Last: In line 71 you forgot an if (has to be else if too). The sourcecod... (by AleaIactaEst)
passing parameters from one executable program to another
 
Hello, I have to write two program on a dictionary and another the definition. the dictionary will pass a word to the definition program and the definition ...
[6 replies] Last: Yeah, I really need to stop posting when I drink. If I find time later... (by Computergeek01)
Searching a string is broken?
 
Hello, I'm building a driver that communicate with machines using a socket. I get the data from those machines in XML formats ... The Data is received in chu...
[1 reply] : Can you post the implementation of the find method? To me it looks lik... (by AleaIactaEst)
Serial Port Manager Class
 
Hi, I'm trying to implement a serialport manager class as part of a very large project. The idea is the this manager class would be a controller for the Serial ...
[2 replies] Last: I figure out that the best way to do this is to windows.h to pass a HA... (by rubxcubedude)
Sin Cos Tan table chart
 
hi guys i need help with this program. i need to produce a table chart of sin cos and tan from angle 1-20 using do-while loop. currently, i have this code but...
[4 replies] Last: thanks! it worked now (by fiotengko)
Need to know what is problem type ?
 
I want to find an algorithm for this problem which i dont know but i cant even figure out which type of program it is called (like dynamic prog. ,etc) .Here's p...
[1 reply] : I think you can use the minimax algorithm to solve this. (by Peter87)
September 2012 Pages: 123456... 32
  Archived months: [aug2012] [oct2012]

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