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

Someone Please take a look And see If you can Help me find whats wrong
 
My code will not compile. How do i get the string to work correctly? I am used exactly what my professer put on the board. This program should be compiling. I ...
[7 replies] Last: I don't see any reason why it wouldn't compile, but there are some pot... (by cire)
Program to plot Trajectory of an electron in a H-2 ion in c++?
 
Hi, I have to write a program to plot the trajectory of the electron in the Hydrogen (H2) ion. I have a list of steps that i need to follow but i absolutely suc...
[2 replies] Last: Nice one. Thank you so much for going through the trouble to do this. ... (by Alan Ing)
Member function pointers to static function pointers?
 
Hi, all! I was trying to take advantage of variadic template arguments introduced in C++11 . Here's my code so far: template<class Return, class... Args> cl...
[1 reply] : [quote=Henri Korpela] typedef Return (*function_t)(Args...); functi... (by closed account zb0S216C)
C++11
 
I'm on a MAC OS X Lion, and I've tried developing via Xcode, NetBeans, and Code::Blocks. They work quite well. But I can't use C++11. I don't know much about...
[no replies]
Returning an array
 
Hello, I am trying to implement a simple function to return an array and I'm not having much luck. The program compiles but I am having trouble calling the ar...
[1 reply] : You're returning a pointer to a float, so you should catch it with a p... (by Gaminic)
file reading
 
Hello ! i can read the file in C++ but don't know how to read it between two points to read the whole file string STRING; ifstream infile; infile.open("fil...
[no replies]
Pass by address
 
I'm confused for the two functions here b/c although both pass by address so implies uses a pointer in the function declaration and in the call in main, the fir...
[4 replies] Last: Indeed, C-style arrays carry several scars of backwards compatibility ... (by Cubbi)
by Mannah
double scripting operator !!!
 
Overload the operator () to perform the double scripting operations. for example, in a 3-by-5 Matrix called a the programmer could write a (1,3) to access the e...
[3 replies] Last: Peter87 is absolutely right; I scanned over the code too quickly. Tha... (by Gaminic)
C++ overloadable operators
 
I'm often confused as to what I can and cannot do with C++ operators. Would anyone care to link me to a well-defined list of each operator and how to overload t...
[2 replies] Last: http://en.wikibooks.org/wiki/C++_Programming/Operators/Operator_Overlo... (by closed account 1yR4jE8b)
C++ programmer needed. £200 for small project
 
i am looking for a C++ programmer who can create something for me for my research. it would need to be created within the next 5 days and i would pay a minimum ...
[no replies]
by Baso
Qt developer
 
For all Qt developer, I wanna ask a questions am I able to develop apps with Qt for all devices that work with Symbian OS even the non Nokia devices like some...
[2 replies] Last: Thank you "TheDestroyer" (by Baso)
2 dimensional dynamic array ascending order
 
Below is this code ive written for an assignment. The program simply takes in data for a variety of students and performs a variety of tasks on the data. For so...
[no replies]
Trouble in code
 
Actually I have to write a program that displays average, highest and lowest temperatures which displays something like: "Enter the number of consecutive days ...
[4 replies] Last: Some of your declarations and prototypes don't match up. Similarly, s... (by MrHutch)
Ambiguous Symbol error in C++
 
I have a method called RL in main class of my Ogre3D project. It gives me an error Error 7 error C2872: 'list' : ambiguous symbol Function prototype o...
[4 replies] Last: I don't think the problem is in your prototype function since you expl... (by codekiddy)
Sorting
 
Can anyone suggest me how to check whether a given linked list is nearly sorted or totally random??? right now what i am doing is checking half the list ...
[no replies]
by nick92
function proplem
 
hi i need help with this exercise max of 5 numbers using function
[6 replies] Last: @Peter87, I like it. (by MrHutch)
help please with program
 
Dont know whats wrong can i get some help? program wont run properly so far. #include <iostream> using namespace std; void printDescription(); void cal...
[1 reply] : line 8 cout << string( 20, '\n' ); should be cout << "20\n"; li... (by codekiddy)
Is this a memory leak? vectors
 
std::vector<Pie> PtrPie; Pie* ptr1 = new Pie; PtrPie.push_back(ptr1); delete *(PtrPie.begin() + index); // deletes Pie, index is the position of the ptr, this...
[2 replies] Last: thanks, I've been using lists for too long, completely forgot I could ... (by Zephilinox)
Program wont sort, or print
 
So most of the components all work on this program, but the sort does not see to work and i can't find a way to fix it. Please help. #include<iostream> ...
[1 reply] : xxx.cpp:23:38: error: no match for ‘operator<<’ in ‘outfile << s... (by Shinigami)
by vasimr
Function Efficiency Question
 
Does anyone happen to know if there is a difference between the following two functions at run time? void Func1() { if( false ); } and void Func2...
[3 replies] Last: Every mainstream C++ compilers has some level of support for dead code... (by JLBorges)
May 2012 Pages: 1... 3536373839... 41
  Archived months: [apr2012] [jun2012]

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