General C++ Programming - November 2012 (Page 17)

classes and arrays.
 
I have to create a header file and immplement a class called Quiz that manages an array of up to 25 ...
[2 replies] Last: What error are you getting? You need to help us to help you! (by MikeyBoy)
I need help regarding fraction to string
 
double b=0.34;int c=0; for(;b>0;b*=10,c=b){ cout<<b<<"-"<<c<<"="<<b-c<<endl; b=b-c; } I...
[17 replies] Last: Thank you for explaining. I think this is all the information needed. (by closed account 9y8C5Di1)
Need immediate help on storing a pointer in a char array
 
Following is the pseudo code I have created. #include<iostream> using namespace std; class...
[2 replies] Last: memcpy(time.arr,&ptr,sizeof(ptr)); should work (by theranga)
Applying random numbers to array
 
Hi! I'm having some trouble with creating an array with random numbers... How am I to write it? #...
[8 replies] Last: however you're right that it should be a 2D array if you wanted to sto... (by theranga)
by kampi
How to get a handle to a JobObject without knowing its name, or how to get a JobObject's name?
 
Hi! My application is running in a job. I want to get a Handle to this Jobobject using OpenJobObj...
[1 reply] : This is Windows-specific stuff, so you should post in the Windows Prog... (by MikeyBoy)
Template operator in template class
 
Hi all, I've looked around to try and understand this problem, but I can't figure it out; a little h...
[4 replies] Last: Thank you so much again for taking the time to give me these explanati... (by Terminux)
by Ryuuji
array of typedef struct declared inside class
 
Hi everyone! I'm encountering problem about typedef struct. The case was i declared a struct in...
[3 replies] Last: typedef here generates an error. In general, typedef creates a type a... (by Cubbi)
LNK2019 error
 
Now I know what this error means but I am having the strangest problem with it and someone else on h...
[3 replies] Last: Thanks for your help guys, what I had done was defined one of the func... (by closed account GL1Rko23)
Recursive Brute Force String Generation
 
[Yes, I've looked at all the other examples!] Trying to make a non-encrypted brute force for the fun...
[no replies]
Extraction operator >>
 
I am working on how to extract the real and imaginary component of a complex number (example 67 - 23...
[3 replies] Last: I ... was surprise to see that they have these many choices And ther... (by andywestken)
Calling base class's method from Main
 
Hi, I have this base class: Class Base { public: virtual uchar ReadByte(uchar addr) {//...
[no replies]
by Petq
Caesar Cipher Using Voids
 
I'm very new to C++, and I need some help. I'm currently having trouble trying to write a Caesar cip...
[1 reply] : What you display as "Most frequent letter" is in fact your shift. (by toum)
Manipulating 2D arrays and C-string?
 
I'm writing a program that output a string to the string a certain way. The string: Once upon a tim...
[1 reply] : Without the complete code it's hard to tell. Why not simply replace e... (by toum)
Problem with queues with a parking garage
 
Okay so I am having trouble with my depart function. When I output I keep getting 0 for the license ...
[1 reply] : The problem is that your queue and your depart function don't do what ... (by toum)
Strange String problem
 
I've been programming in C++ for about a year now, and I've run into a strange issue. I've found a ...
[10 replies] Last: Don't quote me on this, but I think the performance of stringstream is... (by ResidentBiscuit)
by Owe
URGENT HELP
 
I am doing a project for my class, and these are the requirements of the project. -----------------...
[2 replies] Last: Double post: http://www.cplusplus.com/forum/general/85452/ (by cnoeval)
Program crashes - probably on type conversion
 
Hey everybody! My program crashes... and I have no real Idea why. The basic task here is to implemen...
[1 reply] : The problem was not the type conversion. Since I did not pop the uppe... (by redpaperlantern)
by Balrog
Visibility of objects across files
 
I've been stuck for some time on an error regarding the visibility of objects declared in one file i...
[2 replies] Last: You also don't need to have header guards in the source files. (by Peter87)
OpenCV faceRecognizer predited label
 
Hello, I am using the facerecognizer EigenFaceRecognizer. And I am using these instructions to...
[no replies]
Construction leak ??
 
Hi All, Dumb C++ question, I wanted your view on Suppose class A { public: // constructor /...
[1 reply] : he can virtually copy all the elements from a given object of A into ... (by Cubbi)
November 2012 Pages: 1... 1516171819... 51
  Archived months: [oct2012] [dec2012]

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