General C++ Programming - October 2012 (Page 47)

by LB
int (&main)() = f;
int f() { return 0; } int (&main)() = f; It compiles fine, but it crashes. Why does it ev...
[13 replies] Last: I know! I first thought he was talking about Forward Kinematics, but h... (by Duthomhas)
Array of different classes with member access.
Is it possible to make an array of classes while still having access to their members? Say I have...
[2 replies] Last: Fasinating. I'll have to look more into that but this should work perf... (by Tyler Hummel)
by leoo
Cannot convert wchar_t
Hey I had a code problem it, this is the error: error C2664: 'CreateFileA' : cannot convert para...
[7 replies] Last: I need to create copypasta out of this or something... WinAPI functio... (by Disch)
Need some help
So, I need to use a mergesort to organize the names by alphabetical order and also the height .. ...
[no replies]
Xcode on mac
Hi All, one question, i am coding c++ on mac's Xcode complier, I can't find the example.txt file t...
[4 replies] Last: Thanks Grey, Now i know:) (by learntogether)
BST/Pointer in function call problem
#include<iostream> using namespace std; class btree { public: struct node ...
[1 reply] : It's your insert function, see my comments void btree::insert(node *&... (by naraku9333)
by Brody
Pthreads and top command
Hi All, -- Simple question/Sanity check -- When running a multithreaded program, with Pthreads, ...
[no replies]
hi friends, i wrote a c++ program, actually it's a game; Robots game ... but i've recieved this erro...
[3 replies] Last: delete r_location_i; delete r_location_j; You only use delete when d... (by pogrady)
Difference between these two sets of codes
1. btree::node* btree::find(node *temp,int item) { if(temp==NULL) return t...
[1 reply] : The temp that is returned by the first one is not NULL when the recu... (by clanmjc)
pass a pointer as call by reference
How to pass a pointer as call by reference?
[5 replies] Last: What exactly is the problem and where is it? What do you mean by non... (by clanmjc)
SDL Application will not open
Every time I try to run my application, it will not open. It complies just fine, but it will not run...
[10 replies] Last: Makes sense. Thank you. :). (by Nathaniel Sheller)
argument of type void* in pthread_create(...)
Why is it necessary to pass argument of type (void*) while creating a thread using pthread_create(.....
[1 reply] : Clearly you'll need to pass some information to the thread function as... (by kbw)
I need to identify the maximum number and also need to have the program identify the row and column ...
[1 reply] : Name Values is not declared. So the compiler shall issue an error for ... (by vlad from moscow)
? with Do While
In my do...while loop I have this below. when I do that and the loop repeats, it ignores one of my v...
[3 replies] Last: try just: cin>>your_name , instead of getline operation. (by learntogether) does not work properly
Hi everybody, here is my simple code. I ask the user for a non-negative number, if it's not a num...
[1 reply] : It is working just fine. It just doesn't require any space to be betwe... (by Duthomhas)
by amir22
The Monthly payment calculation
I am not sure how to do this because I am very new to C++ The Monthly payment on a loan may be calc...
[1 reply] : Get the user to input the information you need. Store it in variables... (by TimBob12)
by TTT
virtual function
Hi, can anyone explain the result of this program??? how the private function called #include<...
[6 replies] Last: I was speaking to the OP, clarifying what you had said... because you ... (by clanmjc)
by jbby78
I need help with the beginer c++ code!
So in intro to c++ class we are writing codes using functions and importing text files to read it an...
[1 reply] : Instead of this inFile >> coeff; double a; I would suggest:... (by Chervil)
Information in map lost after function return
Hi all, I have something going on that I don't quite understand. I have the following code: void...
[7 replies] Last: The Var pointer that the addVar method receives is a pointer to an el... (by clanmjc)
Reading into the array number using pointers
i had try. But if it does not have en error i would not be here. how to write a program that rand...
[1 reply] : int a ; int *p = a; *( p + std::rand() % 10 ) = rand(); ... (by vlad from moscow)
October 2012 Pages: 1... 454647484950
  Archived months: [sep2012] [nov2012]

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