General C++ Programming - May 2011 (Page 13)

PLEASE, i need some instructions!
 
Hello guys. I'm quite new here, and also i'm begginer in C++ learning. I have some dificulties in solving some tasks, and i need your help, please. I hope i'll ...
[9 replies] Last: Anyone??? i get this when i tried to compile BFD 2.15.91 20040904 ... (by angel16mk)
Search data from an existing binary file
 
Can someone tell me a function to search for data from an existing binary file having a structure student and members roll no., name,class etc. and search for t...
[no replies]
by namcs
malloc(2048) failied.
 
Hi everyone, I am trying to debug a very simple code: double* anArray= (double*) malloc(16*16*sizeof(double)); The above statement seems to be perfectly fin...
[8 replies] Last: Firstly, if the OS runs out of memory, it will automatically start pag... (by closed account zb0S216C)
by Ronen
Problem with overloading >> with template and istream
 
Thanks ,It's working now . you're the best , thank you indeed !!
[1 reply] : Just to be sure on line 17 void Matrix<T>::getInput(istream &ins) y... (by Mathhead200)
Find SMTP Address
 
Hi All, I am using a Win 2k8 box and trying to find the Default SMTP address of the machine. I cant find anything in the registry that can give me the SMT...
[1 reply] : This is not a C++ question. It's a network admin question. Default S... (by kbw)
sum subset
 
Hi..I'm an electrical engineering student.I am building up a program for optimal load prediction and shedding. If there are 5 nos.supposing [ 2,8,12,15,20] i w...
[no replies]
Local class as template parameter - still impossible?
 
Hello! I'm trying to build a method which integrates a function which is given as a functor. Here is my minimal code: #include <iostream> using namespa...
[2 replies] Last: Ok, Thank You very much! Unfortunately MSVC is no option to me. But ... (by metalrobsolid)
the parameters of a linear equation
 
Hi guys, i have to solve the parameters of a linear equation as y=a*x+b my problem is: i have to define x between [0;1000] and i must take for every x differe...
[4 replies] Last: @coder777 - I think the OP wants the C++ code to make coffee with two ... (by kfmfe04)
Errors in Compiling MEX-Files with the Microsoft® Visual C++® IDE
 
Hi I am a beginner in C++. In an attempt to compile MEX-files with VS2008, I followed instructions given in http://coachk.cs.ucf.edu/GPGPU/Compiling_a_MEX_fi...
[no replies]
What is ugly in this C++ function?
 
Assuming the following function's logic always works: void f(double* xa, double* xb, double a, double b) { assert( xa && xb); *xa = *xb + a - b; ...
[6 replies] Last: The code is still obfuscated void f(double& xa, double& xb, const dou... (by ne555)
initializing static (shared) array?
 
Hi - I have a class whose objects should share an array of coefficients. Normally, I'd make the shared element(s) static, but...I initialize their value from...
[19 replies] Last: So, to summarize...if I remove the static qualifier from the class def... (by mzimmers)
Help programming code problem TIC TAC TOE
 
Hello i was improvinsing a person's c++ program to make it have a single player option and a save function but after created the program it has some error that ...
[no replies]
String parsing ideas
 
Afternoon everybody! It's been quite a while since I visited this forum. I kind of lost interest in coding in C++ for a while, ran out of interesting things to ...
[3 replies] Last: I'd just use an XML lib for this. There's probably XML for any program... (by firedraco)
exact math
 
Hello - I am trying to make a program that will calculate some flat sheet metal layouts for me, and am running into trouble because the "double" numbers I am ...
[6 replies] Last: #include <iostream> #include <iomanip> #include <sstream> using name... (by mackabee)
Index
 
Hello! I just need some help with showing me why I sometimes get the same card over again. When I have declared them and also done a if statement if the vari...
[3 replies] Last: The algorithm to check whether a card has been played, is not vary sim... (by hamsterman)
Doubly linked list
 
Hi! Been working on a doubly linked sorted list,kinda new with it.. having trouble writing the code that will switch order of the elements in the list,for e...
[4 replies] Last: First is first. It has no prev. ie: first->prev = NULL; so you may be... (by closed account D80DSL3A)
HELP WITH ERROR PLEASE!!!
 
Alright, so I only have one error and I'm having some trouble tracking down why. Its where I declare the 3-dimensional vector. Take a look please: #inc...
[7 replies] Last: Okay then... Be careful with casting. You should most likely avoid C s... (by anonymous23323124)
Errors in release mode in VS2008
 
Hi, when i run my VC++ project in debug mode there is no error but when i build the same project in "release mode" it gives lot of error of missing files lik...
[1 reply] : I believe release configuration has a separate "Additional include dir... (by hamsterman)
mesh structure
 
I am trying to create a mesh topology. I feel like the code I wrote is not what I was hoping to create. It's more of a logical mesh, its too linear with linke...
[4 replies] Last: that link was useful! I appreciate your help! (by da beast)
A few questions about numeric data types
 
Hello all. Please see the following code: https://ideone.com/U39eK The code basically outputs several properties of the different numeric data types I ch...
[5 replies] Last: I think you are getting the error in Visual Studio. Visual Studio has... (by webJose)
May 2011 Pages: 1... 1112131415... 32
  Archived months: [apr2011] [jun2011]

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