General C++ Programming - June 2012 (Page 14)

C++ question on Classes/ objects
 
For some reason they thought it will be a smart to exams online and not the answers. I'm stuck on this question What is a Class C++ I'm stuck between A...
[no replies]
Problem with random shuffle
 
I used to be using a vector as my card pack which would use a random shuffle function fine, but I recently changed it to an array which has brought up a few pro...
[6 replies] Last: Awesome, thanks Disch for the info on structs. Looks a lot easier and ... (by garanon)
by dthkai
delete and delete[]
 
Hi Everybody. I'm having a question about these operands if we have a declaration, let's say ClassA* a = new ClassA ; which of these we should use to dele...
[3 replies] Last: yes, there is a reason. The new operator allocates a pointer, which ... (by viliml)
by ocdjg
encryption/decryption program
 
Hello, I'm new to these boards, and to C++ so I look forward to learning something new. Anyhow I've been working on this coding for a rudementry encryption/...
[7 replies] Last: Also, you need to read the file to encrypt or decrypt it's data. (by pchahar)
by dthkai
Code Optimization.
 
Could this code be more optimized? I mean, using maps, I've just started used maps, will a map make the code smaller and having the same search-n-compare funct...
[2 replies] Last: Also if you want the search to be case insensitive then first convert ... (by awsdert)
by aj3423
any good design for thread function
 
Hi, I'm trying to write a common thread class, and found it hard to design well for killing the thread instantly. void thread_func() { for(int try_=0; ...
[2 replies] Last: Thanks, my case is quite simple, not necessary for synchronization yet... (by aj3423)
How to force a derived class comparison
 
Hello, I have a virtual class Element that forces its derived classes to have a == operator: class Element { virtual int operator==(Element *)=0; } So, I h...
[3 replies] Last: > the base function for comparison uses pointer to element, > I have ... (by JLBorges)
by rucafe
problem using ifstream
 
Inside one of my functions I am using ifstream and then the getline function to read lines from a data file. My function takes a string from my main program and...
[1 reply] : In the code you posted, ifstream is trying to open a file named "data_... (by AbstractionAnon)
by flank
Structures
 
Can someone explain the following code. I need to include a structure in my program that would add a way to represent the worker's name as first name, last name...
[6 replies] Last: Thanks to all who contributed. I was able to refine my code based on y... (by flank)
double dimentional array
 
Hello; dears How r u? I want to allow user to insert number in double array 2-D during the excution of program(output) by using c++ language without using p...
[3 replies] Last: //simplistically you could set up and declare the array: int rows=0,c... (by buffbill)
by sanyam
Separate console or a area of console for taking input.
 
hi. I'm building a chat program. I want it to look like this. ------------------------------ friend: Hello how are you? | you: fine. TY | yo...
[3 replies] Last: Thanks. (by sanyam)
HELP PLEASE :) C++ i am a novice at this ... so use simple terms ... :)
 
Im writing a multiple choice test and i have the questions down but i cant get the grading done. i need to use a switch and loop still. how will i incorporate t...
[9 replies] Last: I need something like this but the questions and choices are supposed ... (by gabber4227)
Game Engines-Engines,Libraries,2D,3D
 
Hey guys, I am getting a good grasp of the basics and semi-advanced parts of c++, and I have a project I have planned and want to begin working on. Now it would...
[9 replies] Last: Thanks, guys and don't worry i don't underestimate anything! I know ho... (by curscascis)
Template Project in VC++ 2010
 
Hello Everyone, I'm newish to C++ and am trying to make my first jump into video game programming, but the thing is that I want to make a sort of template proje...
[4 replies] Last: Thanks that really helps! (by theNewb1e)
Passing string array to function
 
Hi, I have some problems with passing an array of string type to a function. I want to store some names in the array which I then want to return back to the fu...
[2 replies] Last: Thanks for reply but it still does not work. I tried to do as you told... (by dolle39)
.dll Injection
 
Hi! I've been attempting to learn to make .dlls, to inject into other processes. My question is, how does the .dll load things? Doesn't the .dll's functiona...
[1 reply] : Have you tried Wikipedia: http://en.wikipedia.org/wiki/Dynamic-link_li... (by closed account zb0S216C)
is there some E-journal about C++
 
"C/C++ Users Journal" has been shut down for many years, is there some E-journal about C++ which could be recommended?thank you.
[2 replies] Last: I thought Dr Dobbs Journal was shut down too? I signed up for C/C++ Us... (by BHX)
DECIMAL to BINARY conversion
 
I am trying to convert a decimal number to a binary number through the following code, but its returning junk values. #include<iostream.h> #include<con...
[10 replies] Last: Everyone seems to have missed the actual problems. The first is that ... (by Duthomhas)
LINKED LIST PROBLEM
 
Hi everyone, the program below is suppose to double the contents of a five-node pre-defined linked list using the function dbl_List_Contents(). the problem here...
[no replies]
WHERE CAN I GET A C++ SDK FOR ANDROID APPS
 
Hi everyone, I'm looking for a good C++ SDK for android apps. Any suggestions will be appreciated.
[1 reply] : There's always Marmalade which I think works on both Android and iPhon... (by Disch)
June 2012 Pages: 1... 1213141516... 33
  Archived months: [may2012] [jul2012]

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