General C++ Programming - July 2013 (Page 23)

program runs slower and slower as time goes on
 
Hey guys,I'm using the hyperNEAT genetic algorithm library to evolve a neural network that approximates the xor function. I'm using codeblocks. When I click "...
[2 replies] Last: Kerfin: I thought that too, but the evaluate function is only called ... (by cottagecheese125)
camera calibration with occlusion
 
Hey Anyone knows much about camera calibration and its implementation. I have implemented it but am trying to find a workaround to calibrating a camera by...
[no replies]
Understanding how struct works
 
Hello! The following excerpt is from http://www.cplusplus.com/reference/algorithm/sort/ struct myclass { bool operator() (int i,int j) { return (i<j);} ...
[3 replies] Last: Not quite. If you don't give a functor, sort will use the < operator ... (by Disch)
A program that determines how many consonants are in an entered string of 50 characters.
 
Write a program that determines how many consonants are in an entered string of 50 characters or less. Output the entered string and the number of consonants...
[1 reply] : - I would suggest that you go through each character in the string and... (by thejman250)
please can anyone help me with this code.
 
: Write a program that will: 1) read an array of records from the keyboard, 2) store this information to a binary file, 3) read from the binary file back to t...
[2 replies] Last: i used the std::getchar(); function and it worked for me. this was rea... (by greacon01)
memory leak
 
Hi, I have some code defined as below const std::wstring test = L"something"; const char LOG = "LOGFILE.txt"; these lines of code are defined in a .h...
[no replies]
by Tomhet
False system time
 
Ey, I want to give fake time date for a 32bit application (outside)... is it possible easily? the application crash when I have the current system time but if...
[3 replies] Last: grr nvm I'm lazy and just wrote this http://puu.sh/3Aeib/f90b91a879.p... (by Tomhet)
Vector iterators incompatible in debug mode
 
I get this error when i try to run this code for an inventory in debug mode in VS. But for some reason it works just fine in release mode. void Push_Back_...
[4 replies] Last: Oh sh*t it wasnt that line that made the error. I know where it is stu... (by Vermacian55)
how to make a protobuf dependent lib avaliable in a non-protobuf enviroment
 
I have a C++ project depending on protobuf, but there's no guarantee that all users have protobuf installed on there own PC(protobuf is only not the only way of...
[3 replies] Last: I think that should be possible. Why not try it out with dummy librari... (by Bourgond Aries)
Accessibility errors
 
Ok Same project new problem. My assignment has me using a bunch of pre-written code and I just need to fill in the blanks. Now after following the instruction...
[14 replies] Last: helpful discussion.... i need this type of info.... So thanks a lots (by Gregoryiem)
Qt Application error in Debug mode, OK in Release Mode
 
I have Qt (i think 4.8.4) 32 bit statically compiled on my Windows 7 64 bit. The compiler I am using is mingw32-make.exe. When I build my project statically in ...
[2 replies] Last: thanks for the reply. So I assume I will have to download and copy an... (by abhishekm71)
Struggling With My Linked List
 
I'm trying to print the objects in the provided list to the user, and then give them the option of adding on a node or not. If they want to, they're able to pic...
[no replies]
by iliya
Need a simple C++ code for VOIP
 
Hi friends, Please guide me I need a simple C++ code for VOIP. I will appreciate you if you introduce me a simple C++ code for VOIP. I look forward for yo...
[7 replies] Last: op has 6 posts, nuff said. (by DeXecipher)
Errors with unresolved token and unresolved external signal
 
My program will not run because of error LNK2028 "unresolved token" and error LNK2019 "unresolved external signal" and I do not know why. My teacher says that I...
[2 replies] Last: I changed a lot of the program, and now I am getting the error "no mat... (by sharpie789)
Metadata extraction
 
Good afternoon. I am currently having a project that I am out of my wits. This project needs me to use C++ coding to come up with a program when run, will open ...
[4 replies] Last: You need to use the Windows API, not any third party library. Try thi... (by LB)
by ZeHgS
How to make a program that works influences another one?
 
Hi guys! I posted this on the Beginners subforum but I got no answers. I am not sure if this is because this topic is more advanced, but in just in case I am...
[11 replies] Last: It's nice that you aren't one of those rude people who seek help. Don... (by closed account N36fSL3A)
Array Copy Help please I'm Confuse
 
int firstarray = {1,2,3,4,5,1,2,3,4,5}; int second array ; i want to copy the first array into the second array but don't want to copy the duplicate va...
[12 replies] Last: Thanks (by Sarmadas)
• Build the min heap with no repeating values.
 
10,11,20,1512,22,24,19,22 i want to write a c++ program to build min heap which gets above values from user. remember this program should not alloduplicate v...
[11 replies] Last: personally i like the bubble sort algorithim (by closed account Dy7SLyTq)
Unexpected behavior of the istream::peek function
 
In the following code: #include <iostream> using namespace std; int main() { cout << "Enter\n"; char s ; cin.get(s, 10); char c =...
[12 replies] Last: @ChosenTorture Are you trying to say that streams never reach an eo... (by Rechard3)
fgets in C Programming
 
fgets(asked_hotel, sizeof(asked_hotel)-1, stdin); asked_hotel[strlen(asked_hotel)-1] = '\0'; //scanf("\n%99s", &asked_ho...
[1 reply] : Could you say above all what is your problem? (by vlad from moscow)
July 2013 Pages: 1... 2122232425... 34
  Archived months: [jun2013] [aug2013]

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