General C++ Programming - February 2012 (Page 19)

by jk5440
percentile of an array
 
need a code to calculate percentile of an array in c++
[4 replies] Last: i checked that code it gives percentile of the array. my requirement i... (by jk5440)
Design choice of the iterator of slist(SGI STL)
 
I am studying the source codes of SGI STL and have many problems with it. I can't figure out the design choice of the iterator of SGI STL as follow t...
[3 replies] Last: template<typename T, typename Alloc = std::allocator<T> > class SList... (by JLBorges)
Fast API for File read/Write
 
I am looking for fastest API to read/write files. Can you please help?
[2 replies] Last: If the file does not grow or shrink in size, memory mapping the file w... (by JLBorges)
Stuck
 
Hey, I'm a beginner and I'm stuck on this one assignment. I've included the instructions and what I have so far but don't worry about the whole thing. The sente...
[2 replies] Last: Bolded: The instructor want you to make a while loop that averages whi... (by Need4Sleep)
by Zapeth
Efficient file content search method
 
Hello, I have a text file that contains about 1000 lines which each have a syntax like this: keyname=value Now I am searching for an efficient/fast method to...
[3 replies] Last: I'm not sure what your question is then, it seemed like you were steer... (by clanmjc)
c++ calculator
 
vvv
[1 reply] : Duplicate from here: http://cplusplus.com/forum/beginner/62151/ -Alba... (by Albatross)
by Go0ber
Quick beginner question
 
Hey everybody, this is my first post here. C/C++ is my first language, and I just started about six months ago. I was playing with character arrays and hit a ...
[2 replies] Last: Thank you, I was wondering how to post code correctly. I changed the ... (by Go0ber)
c++ counting help
 
Hello, I have this assignment and for the life of me I cannot figure it out. well here it is counting-controlled loops write a program that displays the n...
[5 replies] Last: an example of a counting program could look something like: #inclu... (by Warnis)
function convert() not returning calculation
 
I am supposed to write a function convert() that converts polar coordinates to rectangular coordinates; and then use it in a program that reads the polar coordi...
[10 replies] Last: Use a calculator maybe for desk checking. The sin and cos functions i... (by vin)
interface with ingenico eftpos machine
 
Just wondering has a any1 done this through c or c++. Could someone please show me how interface it through tcp/ip.
[2 replies] Last: Wouldn't you be better of contacting the manufacturer or refer to thei... (by guestgulkan)
Comparing to values
 
Well, i got a pretty big program (a world of warcraft server) I dont know really where i should begin. Anyways, im having a problem with a function im trying ...
[2 replies] Last: Just tested that, and its compiling, now im going to test it running ... (by Carl Hjerpe)
Binary Search Tree Help
 
I am trying to make the search function for a binary search tree to determine if a value is in the tree. I then want to output back to the user whether it is in...
[4 replies] Last: Why would you search for it and not return a pointer to the element? Y... (by closed account o1vk4iN6)
by sagarG
2 D Vectors(Vector of Vectors) giving problem
 
class input_for_matrix { private: . . . public: vector <vector <double> > input ; int lenFinder (char *arg1) { ...
[1 reply] : Hi What is the type of fn ? where does obj1 come from ? why do y... (by therockon7throw)
SDL Audio
 
Hi all, In my program, which uses SDL, I have a SFX that runs every 4 seconds (roughly), whenever a ball hits a paddle. However, it is always about 0.5 seconds...
[6 replies] Last: great .. i like that thanks @Disch (by bluecoder)
how do i use vectors in this situation
 
it's outputting fine but i dont know how to only output addresses that are in "Palmdale" i was told to use vectors but i dont know how vectors would apply to...
[2 replies] Last: can we not write ... if( (pos1 = line.find("<name>")) < string::npos... (by bluecoder)
Inheritance cooding
 
How to write this coding. class named Vehicle members  Brand  Model  Price  Color  A default constructor ...
[2 replies] Last: you need two class one vechical one Car .. then do some thing like thi... (by bluecoder)
[MySQL++] same code, no result from second application
 
Hello, about 3 months ago I made simple chat using MySQL++ which is working fine, login function: http://pastebin.com/Mdup4zi6 but today I'm creating Control...
[3 replies] Last: nvm, I just fixed it like 10 mins ago, I was using debug mode with rel... (by mekkatorqu)
grouping from an array
 
I have a program that reads a file and inputs the information into an array. Then from that array I am to seperate the array according to a 10 point grade scale...
[3 replies] Last: Try a linked list (std::list). It's a handy way of adding an unknown a... (by Gaminic)
by cyrilj
unique cpuid not possible?
 
hi, i wanted my program to run only on a system that i intend it to. i tried cpuid() but it does not return any unique values as such. a general google researc...
[3 replies] Last: Win32_Processor class http://msdn.microsoft.com/en-us/library/windows... (by clanmjc)
OUTPUT???
 
#include<stdio.h> #include<conio.h> #include<stdlib.h> const char arr ="ABCD"; fun(){ printf("SIze of arr %lu\n",sizeof((unsigned long)sizeof(arr))); } m...
[7 replies] Last: We're not going to do it for you. If you want the output, just fix yo... (by cnoeval)
February 2012 Pages: 1... 1718192021... 43
  Archived months: [jan2012] [mar2012]

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