General C++ Programming - January 2013 (Page 2)

by Sucho
Replacementr Of getch()
 
Well I've been using Turbo C++ for quite a while. Then after finding out its quite obsolete, i switc...
[8 replies] Last: Thanks, It worked! (by Sucho)
Sorting array
 
I want to implement a function into the code below that sorts the user defined amount of random numb...
[5 replies] Last: You should have told that before dude. Selection sort is easier but in... (by Sucho)
by Sucho
str.length() is always giving 0
 
In this code- #include <iostream> #include<cstdlib> #include<cstring> #include<conio.h> int ...
[8 replies] Last: Yup, just found out that strcmp() returns 0 when the strings are same.... (by Sucho)
by Smac89
How to class
 
So I have this code that is supposed to read from a file. The file depicts a city (sort of) with eac...
[1 reply] : Are you sure you're not supposed to use the std::map to store your ins... (by ajh32)
Accessing value of map when it's a vector
 
I have the following map: myMap<string,vector<int>> . I now want to look through my map to see if a...
[2 replies] Last: The solution to this was posted by JLBorges in a later post - anothe... (by TheIdeasMan)
Looking for tree string search program
 
This is not a homework assignment. Would like this for my own use. I have 80,675 Files, 8,213 Su...
[2 replies] Last: Thx, I think you put me on the right path. Will read on that more tom... (by SamuelAdams)
by Skynet
Binary Search Trees
 
So I have this code that I wrote that pretty much makes a binary search tree with one node per eleme...
[6 replies] Last: it will work. my algorithm pretty obviously does exactly the same thi... (by theranga)
Starry Window
 
Hello everybody, I am making a program where words on individual lines are read from a .txt file and...
[3 replies] Last: on line 43, it says cout << length . I think you meant cout << sta... (by theranga)
regex help
 
Hello forum, I am having an issue with the regular expressions in the C++11 extension. Below is a s...
[9 replies] Last: The "other way" is to use boost library, it is cross platform and one ... (by modoran)
Adding strings of integers
 
I'm trying to write an algorithm for a larger project that will take two strings which are both larg...
[6 replies] Last: if the OP really wanted to, they could create a struct of indefinitely... (by theranga)
by LB
Order of class members matters? Since when?
 
struct x { y *GetY(); //error: what is "y"? struct y { }; }; Why does GetY have to ...
[6 replies] Last: Well, forward declaration is usually when you have some sort of circul... (by LB)
by Smac89
C++ why you no work???
 
trying to read from this input and print it out to stdout: . . * . . . . . . . . . . . . . . . . ....
[4 replies] Last: BOOM! Everyone who answered. You guys are awesome! Thank you much muc... (by Smac89)
Adding additional functions to the STL vector class
 
How would I add my own function to the vector class?
[3 replies] Last: You could make an inherited child of the vector class, like so: tem... (by theranga)
Euclidean Algorithm
 
Hello C++ forum! I am working on a math research project and wanted to write a program in C++. My ...
[2 replies] Last: To post code, use the code tags please, they are the ones to the right... (by Smac89)
c++
 
how can c++ play an important role as a base language in order to understand the modern language suc...
[2 replies] Last: It's all over the internet if you just search for the phrase. Looks l... (by cnoeval)
Please help
 
i'm new to this program C++. write a program that reads an integer and breaks it into a sequence ...
[19 replies] Last: [quote=Turtle]Make sure that when you are creating a new project that ... (by LB)
by proggy
File writing
 
Hello, I'm trying to make a program that you input your login info and it writes that info to a text...
[3 replies] Last: Ok thank you Smac! It works great. (by proggy)
Does not show the result on screen
 
Hi, I am totally new to C++ so bare with me. I was reading some of the threads here and saw this ...
[4 replies] Last: Make sure that you are clicking on compile and run not just compile al... (by Turtle)
View movement while sprites warp boundaries causes bug
 
Using SFML. I'm setting up a sort of 'fake' parallax background by using sprites of stars, they war...
[no replies]
by jaded7
static code analysis & debuggers
 
Any recommendations of good programs which can do either or both of the above? Free is good, but ...
[6 replies] Last: @helios: About Valgrind: maybe soon there will be a Windows version: h... (by closed account D4S8vCM9)
January 2013 Pages: 1234... 36
  Archived months: [dec2012] [feb2013]

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