General C++ Programming - December 2012 (Page 5)

c.str(), a concatenated string, and ofstream
string person; string message; string date = "11/23/12"; string time = "11:45 PM"; cout << "Wh...
[4 replies] Last: >Beware what "date" or "time" strings contains, a slash or drive separ... (by kind3rgarten)
Need help with opengl moving ball c++
Basically I placed my textures and everything on the window and now I want my sphere or the ball to ...
[3 replies] Last: Anybody? It's been a week and I still haven't solved this problem i a... (by Tezelia)
Global variables! Where do i use them
I understand the concept of global variables and how to create one, but the programmers philosophy t...
[4 replies] Last: softwaretime: Thank you for your effort, but you didnt answer the ques... (by SuperStinger)
by xzbit
about dll dependency
Hi, i have a project that has msvcr90.dll dependency. is there a way that i can embed msvcr90.dl...
[2 replies] Last: Why are you not willing to compile with /MT ? Is there any particular ... (by modoran)
Got confused with const_cast
Sample_Program-1 #include<iostream> using namespace std ; int main(){ const int i = 9; in...
[3 replies] Last: const_cast works only for pointers and reference That pretty much su... (by Cubbi)
Help my tic tac toe codes aren't working
//Tic tac toe, by penis // Include the iostream library #include <iostream> #include <str...
[6 replies] Last: FredFlinstone Im really really thank you! i didn't know that (by TananTanTananTanToink)
Qt linking
So I made a simple qt app and it runed fine when it compiled it, but when I dbclicked executable fil...
[9 replies] Last: Yes, but that requires that Qt itself to be compiled the same way. ... (by modoran)
by caplin
how to test points inside/outside the polygon(homework)
i have a list a test point(x,y coordinate), and i store them into array(testpt & testpt ) how c...
[3 replies] Last: > i try to write the code but there are some special cases Let us hav... (by JLBorges)
by Tazzy
C++ Problem (1,2)
Hello people I have only a little problem with this task. I think I have solved the rask right but ...
[25 replies] Last: HAs somebody an idea? (by Tazzy)
Parsing string -> value
Hello everybody... I'm now making a group of code which can allow the parser to read the value insid...
[4 replies] Last: Wow my idea... Here is my solution : The find function now is modified... (by Imadatobanisa)
by vidhem
Binary file handling
I m working on a small library management project (console) which has binary file i/o. When i sav...
[4 replies] Last: Ohh!! My bad... i declared tempBook as pointer... i m nw using tem... (by vidhem)
modify a function and call it in the main function
I want to implement the border tracing algorithm
[1 reply] : Your URLs aren't complete, but yes we can help: Take a look at this t... (by Stewbond)
by Octav
Dynamic memory pointer instance used as function paramater?
Let's say I have a class pointer which I use for dynamic memory somewhere in a header file. gameS...
[10 replies] Last: I Found the problem, you were right, I did have the setGamestate funct... (by Octav)
Like ACM web-cite
Hello guys do you guys know some good web cite like ACM? (ACM is not allow to see other peop...
[no replies]
Binary files
Can someone explain to me what is the difference in using binary and text files? I mean I already kn...
[1 reply] : Here's a good article on binary files: (by fun2code)
Functions to add, subtract and multiply
I'm a beginner with C program, I'm confused when it comes up to functions I tried to understand all ...
[15 replies] Last: You declared mulTwoNumbers , and then defined multiplyTwoNumbers . ... (by htirwin)
Needed solved errors
Hai the following program is executed some errors are display. Kindly solve this #include<iostr...
[9 replies] Last: Oh.. I see that now. Sorry, I just didn't see that before. Well, thank... (by jumper007)
Open Source vs Closed Source
I have been thinking about open and closed source and which is best for making a program. I know tha...
[2 replies] Last: If you want to give your software away for free, make it open source. ... (by closed account 1yR4jE8b)
Array Help
I was wondering if there was a way to transfer the values of an array created in a function to an ar...
[5 replies] Last: If you could use vectors or at least the C++ arrays cire mentioned, it... (by Cubbi)
programming speed question
Hello guys these days im big concerning about the speed issue this is my code #include <iost...
[2 replies] Last: Or sync_with_stdio(false) By the way, you are doing if( condition ... (by ne555)
December 2012 Pages: 1... 34567... 43
  Archived months: [nov2012] [jan2013]

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