General C++ Programming - December 2011 (Page 34)

by dalawh
Does not name a type error
 
Here is my code(.h): http://screensnapr.com/v/Zvlmg0.png Here is my error: http://screensnapr.com/v/lT5qv8.png I included the string, so why does it not n...
[7 replies] Last: Another (in the middle) solution between the 2 proposed by @L B is: u... (by eypros)
boost
 
i'm trying to compile a c++ source code, using boost... i included boost/signal.hpp , but i couldn't compile it i'm using g++ compiler and i wrote in termin...
[no replies]
C++ flowchart help??
 
Can someone help me draw a flowchart for this C++ program for temperature conversion (this is my first semester of taking programming)...thanks in advance! #...
[5 replies] Last: Here's a flowchart I did in Google Docs' Drawing Editor: http://www.ma... (by benjamin d)
by dalawh
stringstream help
 
If I get an error like "'stringstream' does not name a type, with my code like: #include <sstream> class a{ public: stringstream ss; }; Does that me...
[2 replies] Last: Thanks. Did not know string stream was part of std. (by dalawh)
by dalawh
contructor/variables/objects
 
If I do the below: discard discard; discard.d.playingDeck.createDeck(); I am creating a object of the class discard called discard. Next I am trying to...
[3 replies] Last: Solved it. (by dalawh)
program design issue
 
This is something I've been mildly wrestling with for some time. I'm writing a simulator for an ASIC modem, which of course is composed of many components an...
[3 replies] Last: OK, I just experimented with it, and it seems to work. I created an ob... (by mzimmers)
does anyone know how to make a program for palidromes?
 
I have this but the application level kills me. #include <iostream> #include <string> using namespace std; class Stack { public: Stack( ); ~Stack( ); /...
[1 reply] : Using a stack seems like overkill, but I assume the purpose of the exe... (by Duthomhas)
background music c++ console
 
hi, it is possible to put background music in c++ console, is there's any basic codes for that?if yes how?
[3 replies] Last: Use -lwinmm at the command line, or use your IDE to add libwinmm to ... (by Duthomhas)
Operators (1,2)
 
#include<stdio.h> #include<conio.h> void main() { int x,y,z,b=5; clrscr(); x=b++ + ++b + b++; y=b++ + b++ + ++b; z=++b + b++ + b++; printf("%d %d %d %d...
[25 replies] Last: @L B http://www.cplusplus.com/doc/tutorial/operators/ In the table I ... (by Cubbi)
Output Array Size
 
x-posted Is there a way to output the number of items in an array? I have an array that I'm trying to create, that is being filled with book titles. Its n...
[2 replies] Last: A static array has a static size. So when you print the size of bookF... (by closed account zb0S216C)
Infinite Loop. using while.
 
*************************************************************************** getline(cin,strcharchoice); strcharchoice = strcharchoice ; charchoice = atoi(str...
[3 replies] Last: yes. wow.. didn't even realize that.. fixed the way i attacked the loo... (by Pw0nz3rD)
How do you write a program using "selection sort"?
 
i have to write a program for class and would like to know how to write a program using selection sort to sort names in alphabetical order.
[2 replies] Last: how do i make this work? #include <iostream> using namespace ... (by ryry1010)
by dalawh
Error: expected unqualified-id at end of input
 
Pseudo-code of my name.cpp code: #include... using namespace std ...var ...functions void className::classFunc(){ }//}; //Line 988 //Line 989 ...
[13 replies] Last: Fixed the error. By any chance does anyone know if when declaring an ... (by dalawh)
by LB
Checking for security holes in my webserver
 
I'm using liblacewing (http://lacewing-project.org/ ) to host a relay server for generic use, and I also have a webserver to host a little control panel when I ...
[1 reply] : All right, I fixed the really really bad way to initiate a shutdown on... (by LB)
opengl
 
how do you use opengl with c++ in xcode 4.2?
[no replies]
by bbh84
two-dimensional array
 
Hey I am trying to figure out how to put in a 10% bonus rate to each of the salesperson's amount and to put in two decimal places with it. #include <iostream...
[2 replies] Last: I understand what you are saying but I am not sure where to put it? (by bbh84)
Graph: Adjacency list implementation through Linked list.
 
Hey guys, i have a problem in implementing adjacency list through linked list. my vertex struct has an object of neighbor struct, but an object of vertex cant a...
[5 replies] Last: Thanks guys... and thanks hamsterman that worked. :) (by Ihtisham)
Help with loop
 
I need to repeat this line 3 more times but i'm not sure how to. #include <stdio.h> #include <stdlib.h> #include <math.h> int main () { int rowcou...
[5 replies] Last: Thank you i just kept putting the rowcount++ in the wrong spot (by Sspangler)
comparing strings with space
 
why doesnt this code work if i try to compare two identical strings. If i run it without the cin it works, but with the cin it doesnt. I made the to test this...
[7 replies] Last: I needed to flush the input stream. So i put cin.ignore(1000, '\n'); ... (by harney5791)
rpg code
 
Could you please critique my code //******************************************* //* * //* Mirrors of ELixia ...
[2 replies] Last: could you please explain that more clearer and yes l will change it. (by Aramil of Elixia)
December 2011 Pages: 1... 3233343536... 39
  Archived months: [nov2011] [jan2012]

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