General C++ Programming - May 2012 (Page 19)

Asking for advice about interesting diagnostic rules for C/C++ code to implement in our tool
 
Asking for advice about interesting diagnostic rules for C/C++ code to implement in our tool. I am one of the PVS-Studio analyzer’s developers. We constantl...
[2 replies] Last: Probably. I decided to ask this question in different places. It is im... (by Andrew2011)
<Bad PTR> when reading CString from .bin file
 
Hi all, We are programming a project to manage a library using MFC. We use linked list to manage the admins and save the data to a .bin file. In the program, w...
[4 replies] Last: Thanks a lot, especially to Duoas, you guys rock. :D (by franknguyen)
read from file and put in array of one dimenstional and two dimentional matrix
 
int read_file(ifstream& in_file, int &row, int &col, double *array, double **matrix) { //Reads elements of a matrix from a in_file and stores the elements...
[no replies]
in a i/o program are two arguments in the comd line the same as argv ?
 
in a i/o program are two arguments in the command line the same as argv? if not what do you use ? E.G if in the .exe i input 2 and 3 are these argv and arg...
[1 reply] : where the main function is: int main(int argc, char **argv) argc is t... (by Texan40)
Breaking the String into Tokens
 
Hi Guys ! I'm get input from the user and then storing it in "s " and then trying make tokens, but it is not working, and after making tokens i'm counting th...
[6 replies] Last: Hi Guys ! Thanks to Peter and coder helping, your help was very fruit... (by menewbie)
by negus
comparison of permutations
 
Hi, the task I am given is to compare words that the user types in with the censored words. Each word that is not allowed (at least one permutation matches a ...
[4 replies] Last: Right, sorting the words out will make it much simpler, thanks a bunch... (by negus)
How do I test my C++ code for an .exe Better explanation before
 
I wrote a code that takes an input from ATmega32 using an ousb.exe, How do i actually test my code in the cmd line So it gets an input from PORTB
[1 reply] : what exactly is PORTB? (by coder777)
really struggling
 
hi i have been racking my brain for hours and at the best of times i struggle with c++ but have not been able to do a task i was given and have got to my wits e...
[6 replies] Last: Hey Joey, you'll get a lot more help and understanding if you post som... (by Duthomhas)
error C2552: 'MyConfigVariables' : non-aggregates cannot be initialized with initializer list
 
Hi all, i am trying to run one code on Visual studio .NET 2003. And it's givin following error. error C2552: 'MyConfigVariables' : non-aggregates cannot be ...
[9 replies] Last: L B, thanks for the reply. Yes you are right _WIN32 is compiler defi... (by mini20071985)
Proceedural program
 
int ID,hours,pay1,staff,OT,OTH,GP,NP,i,total; char enter,grade,depname ,b,B,a,term; void open() { //Welcoming message cout<<" ------- -- -- ---...
[9 replies] Last: Thanks very much ! It has cleared up that issue and now I've just got ... (by edwardnigma)
A simple question
 
Hello. I am curently learning about private classes and public ones.My question is , when i declare my variables private , should is put my functions private as...
[2 replies] Last: Thank you , i will give a try now. (by LifeFiber)
Super Noob question about c++ initializer
 
i am stuck on how to fix this code, it was my first real attempt at trying to make a program without some sample code. and i got stuck on the darn compiler lol...
[9 replies] Last: > why can't the compiler just say take away the >>endl; It would hane... (by JLBorges)
String matching algorithms
 
Hey can anyone give me a proper explanation of the KMP algo for string matching? (explanation with example would be of greater help).
[2 replies] Last: thank you, i did it in first place, but was not satisfied/couldnt unde... (by SirSmilesaLot)
Error reading in string from file
 
For class I have a project where I am given a file and the first line is a number that indicates how many structures I will need to make to house the data, and ...
[6 replies] Last: Moorecm, You sir are a lifesaver. That was perfect, thanks! (by kfriede)
by Rhys64
Unhandled Exception
 
Hey I'm trying to create a Database program and every time I run the Program it will take in information but when i ask for it to reprint it it comes out with ...
[1 reply] : There is a significant difference between char and char*: char: (%c)T... (by SirSmilesaLot)
C++ Event Handling
 
What is it and what would be an example of how it works?
[no replies]
alternative to nested #define statements
 
Hi - Though this doesn't work, it's what I'd like to do. The LOAD32 macro accepts two 16-bit values and loads them into a 32-bit integer. The LOAD96 is attem...
[6 replies] Last: Agreed. I think I'll just tough it out and manually populate the array... (by mzimmers)
Allocate at specific address
 
I know windows has VirtualAlloc() and was wondering what the unix equivalent is for use with android and iOS?
[2 replies] Last: I'd say mmap() with MAP_ANONYMOUS is a bit closer to VirtualAlloc() th... (by Cubbi)
how to display an image?
 
ok im making a game and idk how to display a .png image on the screen. http://dl.dropbox.com/u/27086729/Capture.PNG
[13 replies] Last: Some advice: Stick to the course requirements and forget the fancy gra... (by Duthomhas)
Multithreading with Cilk
 
Hello Has anyone worked with Cilk before?I have a project that includes multithreading and i have to use Cilk.I have just started reading about it but i cant...
[1 reply] : The manual seems to provide some pretty good examples: http://supertec... (by Duthomhas)
May 2012 Pages: 1... 1718192021... 41
  Archived months: [apr2012] [jun2012]

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