General C++ Programming - August 2012

need help with compiling some simple lines of code
 
code is below. compiling errors and warnings are at the bottom of the page. help is much appreciated...
[2 replies] Last: thanks alot man. that was the only error in the code. compiles fine no... (by james16)
Finding Overlap in Ranged tuples
 
I have a pair of tuples (0,10) & (5, 15). I would like to write a function that will detect an overl...
[2 replies] Last: max(0, min(e1,e2) - max(s1, s2) + 1) Just need to add 1 since I ass... (by ssrun)
Ideas for a game?
 
So I have been working on this game on and off for a while now, and I don't know where to take it. ...
[no replies]
simple for loop question...
 
Is there a way to exit a for loop in c++ before the condition becomes false? Thank you!
[2 replies] Last: OK thanks a lot! (by AeonFlux1212)
Inline Assembly
 
I have been interested in learning it for a while does any one have any tutorials, or (free) books o...
[no replies]
a weird behavior of gets()
 
when I execute it skeeps the name extraction like this way Enter the information of student nbr ...
[11 replies] Last: The program works perfectly well , thanks to you Moschops ,but I have ... (by Techno01)
by ProfN
Re Use Constructor?
 
Ok lets say I create a class and the constructor. Back in the main code a create an instance of the ...
[2 replies] Last: Thanks for the tip :) (by ProfN)
by Cye
Text to Speech Integration for C++ project
 
I have been trying to integrate the Text-to-Speech Tutorial (SAPI 5.3) from Microsoft msdn site http...
[6 replies] Last: This is also possible: cout << Response[rand() % 5] << endl; But, fo... (by soranz)
segmentation error
 
please help me i'm getting segmentation error in my program to convert and print an infix to postfix...
[12 replies] Last: Very very thanks ne555 i sorry for doing such mistakes actually i'm ne... (by ankit2313)
Looking for a better word replacement program in cpp ,than mine
 
Hi all, I have written a word replacement program in c++. Can anyone write a better solution th...
[5 replies] Last: I suppose one shouldn't be just destroying white spaces in the origina... (by JLBorges)
variable datatypes in templating
 
Hi All, it might be a weird question but I wanted to know if I can have a class be templated on va...
[5 replies] Last: Taking it a bit further, this becomes a library: http://louisdx.github... (by Cubbi)
Knight tour problem
 
Say you have an empty chess board, and you have been giving a knight. And you ask, to move the knigh...
[1 reply] : http://en.wikipedia.org/wiki/Knight%27s_tour#Computer_algorithms (by Script Coder)
Got 3 sisters fighting in mind: (function object, function pointer, lambda function)
 
Hi Experts, I got 3 sister concepts playing and colliding in my mind. I know each can be passed...
[3 replies] Last: You guys are brilliant. :) (by softwarelover)
x86 protected mode: Access memory beyond RAM available?
 
Say you have 5MB memory installed and you access memory location 5MB+1 (linear, read or write doesn'...
[4 replies] Last: [quote=helios] Protected mode lets you use the entire 32-bit address s... (by Script Coder)
C++ Toolkit Library for Building Reports?
 
Would anyone know of a C++ Library toolkit which can be used for creating reports. I can find one c...
[5 replies] Last: http://stackoverflow.com/questions/58730/open-source-pdf-library-for-c... (by Moschops)
by nattam
binary search tree operations give me modifications as segmentation fault or no output is coming
 
#include<iostream.h> struct bstnode{int data; bstnode *right; bstnode *left;}*t=NULL; void inser...
[3 replies] Last: yeah,i know (by parthaz)
how to divide a sentence contained in a string into words and push back to a vector.
 
Hello , I have sentence like " I am King" in a string or character array. I want this s...
[6 replies] Last: I have solved this program finally , Thank you very much for your supp... (by srikanth chitturi)
Which data structure to use?
 
Hi I am trying to parse a file with the following hierarchial structure and store the information i...
[3 replies] Last: Which data structure to use? store the information in a tree. I th... (by Script Coder)
by ProfN
Issue with classes
 
I have programmed a couple of command line adventure games before but never used classes to do so. S...
[4 replies] Last: Should health, Attack, ect. not be private? (by Script Coder)
Function to print STL
 
Hi All, everytime I have to print out the vlaues in the STL. I end uup either using BOOST_FOREACH,...
[2 replies] Last: create a template function in a header file that prints elements of ST... (by majidkamali1370)
August 2012 Pages: 123... 31
  Archived months: [jul2012] [sep2012]

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