General C++ Programming - March 2012 (Page 44)

by won212
Pig Latin for help
 
Hi, I was just playing around with Pig Latin & I came across this codes somewhere. I was trying to debug it, there was no error but I got weird error like this....
[5 replies] Last: http://www.cplusplus.com/forum/beginner/63556/ Don't make duplicate p... (by cire)
by dkdude
Text based RPG game
 
Ok, so for fun in my spare time, I am creating a text based rpg of King Arthur and his knights of the round table (A book we read at school). Here is my code so...
[no replies]
Making a line of text at the upper left corner of a console window not scrollable.
 
I'm writing a program that generates random arithmetic questions, the user has 10 lifelines, I want my program to display the lifelines (no of chances left) ...
[2 replies] Last: this could also help: http://www.cplusplus.com/forum/general/63080/ (by SIK)
Cant see whats wrong
 
#include <iostream> //multiple feature calculator using namespace std; int main( ) { float a =0; float b =0; int c=0; int result =1; char q...
[7 replies] Last: Then you'd be screwed again because here: if (c==b) { cout << 1/... (by roberts)
Converting std::function to a c-style function pointer?
 
I've been banging my head against the wall for a good long while on this one... void dummy(void* (*f)(void*)) { // Use f to start some threads, start a ti...
[7 replies] Last: Ahh... Horrible mistake on my part, GCC is right and I was wrong. Drea... (by JLBorges)
Error in a loop ) plz help =X
 
aux=word ; for(i=0;i<155;i++) { word =word[i+1]; word[i+1]=aux; } Im running this loop but i cant seem too change the values in the ar...
[8 replies] Last: thanks (by Izzy Me)
Does "erase" function from "set/map" STL container rebalance the tree after calling?
 
Hello, I have a "set" or "map" container and it contains many elements. Please see following code: std::set<int>::iterator it = myset.begin(); ...
[15 replies] Last: > With balanced tree, when an element is removed, the tree will be reb... (by JLBorges)
If not working in one instance - assistance required
 
" cout << endl << "Press X to Exit" << endl ; cin >> r ; if (r == !'X' or !'x' ) goto loop ; return 0; } " is never g...
[7 replies] Last: stupid me forgetting double == 's (by astrojg1)
**NEED help with program!!!!!!!!
 
My school forced me to take this class because I'm getting an Associate in science (im going for physical therapy) and they said i need at least one computer cl...
[1 reply] : Here your reading program: #include <conio.h> #include <iostream> #in... (by AcarX)
C++ Linker
 
Hey all I started learning c++ today i use Dev C++ as my compiler Matter is how do i use the linker Haven't seen an option for linker in it Or do i dowload i...
[2 replies] Last: Project-->Project Options-->Parameters-->Linker You can add here.Goo... (by AcarX)
by wtf
Why would this cause a memory leak?
 
Any ideas as to why the following code would cause A memory leak? bool function(); int main() { while(1) function(); } bool function() { retur...
[6 replies] Last: @Everybody I meant this post as a half tongue-in-cheek joke, although... (by wtf)
by minlow
Test questions
 
Hi, I can't find some of answers to the questions and I hope the forum can help: 1.Programs written in low-level languages usually execute ___(more accuratel...
[5 replies] Last: Thanks hanst99, ans is faster. (by minlow)
Newbie: Where to start
 
Hi all. just starting to learn c++ as a result of the assignment my younger sister game me to do for her and i was not really happy i couldn't. I have a knowle...
[8 replies] Last: Probably the setup is missing. http://wiki.codeblocks.org/index.php?t... (by ne555)
Problem while executing Tinyxml
 
Hi all, I have to write a program in VC++6.0 to read a XML file then parse it and display its contents. For this I am using TinyXML. I had included tinyxml....
[3 replies] Last: Should do. The version I have came with a VC6 workspace (.dsw) plus pr... (by andywestken)
by Tier
Help w/ Binary Tree Traversal (prefix / postfix)
 
Hi everyone I'm working on this BTree Class and I can't seem to figure out how to make the traversal functions ( prefix or pre-order and the postfix or pos...
[2 replies] Last: oh, dang LOL I must be blind! thx for the help! the problem was that w... (by Tier)
hi..admin..pls help me
 
hi admin..can help ? teach do Data Base ...For Game Online Chinese Version./....like this game....www.chaosmso.com HElp TQ :)
[3 replies] Last: Web site wasn't up. if you want to learn C++ start here: http://www... (by Azagaros)
fatal error C1004: unexpected end of file found
 
#include <iostream> #include <string> #include <cmath> #include <iomanip> using namespace std; int main() { int x, y, temp, remainder, n, a=0, b=1, c=0, ...
[1 reply] : Count open and closed braces. Ir seems they do not correspond each oth... (by vlad from moscow)
Cricket Score Card Generator
 
#include<iostream.h> #include<conio.h> #include<stdio.h> #include<process.h> #include<stdlib.h> #include<dos.h> #include<iomanip.h> void header () { ...
[no replies]
by dkdude
Text based RPG game
 
Ok, so for fun in my spare time, I am creating a text based rpg of King Arthur and his knights of the round table (A book we read at school). Here is my code s...
[no replies]
Help with recursive function!
 
Write a recursive function that does the following. Given a number, add all the digits and display the sum. Example The sum of the number 5432 would be 14....
[8 replies] Last: results is in the local scope of recur() so it doesn't exist outside o... (by closed account o1vk4iN6)
March 2012 Pages: 1... 4243444546... 49
  Archived months: [feb2012] [apr2012]

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