General C++ Programming - November 2011 (Page 14)

by zepher
read lines from text file
 
Hi All, I have learnt how to read lines out of a text file by doing the following: #define MAX_LINE_LEN 512 void main() { string fname("my...
[5 replies] Last: Thanks Cubbi, this works very well. I didn't realize that these ve... (by zepher)
Trouble with openGL
 
Hey guys I was doing some work and got stuck on a certain question, can anyone help me? I'm trying to analyze a piece of code and just got stumped on the last q...
[11 replies] Last: ok can you answer this question please? i figured the rest out: Also,... (by Tiffanyxx)
Need help adding pointer to member class
 
I need help to add an m_pTail pointer data member to the Lobby class that always points to the last player node in the line and use it to more efficiently add a...
[3 replies] Last: Thank you very much for your assistance. I was able to add the m_pTail... (by Sagar7777)
by Wigen
GUI application framework
 
Hi all, What application framework (based on C++) you would recommend in developing GUI applications for pricing financial derivatives. Thanks.
[2 replies] Last: +1 Qt (by codekiddy)
by drew99
write to files a linked list of structures
 
My problem is as follows: write to files a linked list of structures to save a database and then later you can open that file, read the structures, recreating t...
[7 replies] Last: I solved. Here is the complete code: struct comp { int cod... (by drew99)
expected unqualified-id before ' { ' token
 
this error keeps appearing : expected unqualified-id before ' { ' token #include<iostream.h> { int x ,n; void switch (int &a, int &b) {int aux=a;a=b;b...
[4 replies] Last: thank you ahoysailor and chriscpp. I combined the program one of you g... (by anadunid)
program crashes
 
so i made a program that will automatically go through log files and clean out any major repeating lines. the problem is that SOMETIMES it works and SOMETIMES i...
[7 replies] Last: i'll probably just remake it, i agree it does look overly complicated,... (by Alex Davidson)
difference btw two type of declaration
 
Class Base { }; main() { Base b; // First type Base b(); // Second type } What is the difference in above two type of ...
[13 replies] Last: Thanks!! (by kunalnandi)
parent and sub class usage
 
I have a need for two very similar object classes. One will have an additional private member, and some of its routines will be a bit different. I'm pretty i...
[1 reply] : You can only achieve polymorphism if you use pointers or references, s... (by webJose)
Virtual Function
 
hi, vtable is an overhead in all base/derived classes when a base class has a virtual function..vtable is supposed to contain and array of function pointers to ...
[6 replies] Last: Thanks you cubbi .. this helps .. (by bluecoder)
c++ problem
 
hello, well am a little confused here and I need help to un-stuck my brain :P :::: //====================================================================...
[2 replies] Last: bool convertToint(const char *str1, int&Num) { int i=0; while(str1 ... (by bluecoder)
how to send and receive a image using c++ socket?
 
I want to send a image ,this image is a grab by my pc screen, My program's ui is using Qt,so this image through the QPixmap::grabWindow got. I would try using Q...
[no replies]
How could I reduce the redundancy codes?
 
class robot_generic { public : template<typename Request, typename Response> bool const queryDriver(Request const &req, Response &res) { //s...
[1 reply] : struct query_food { template<typename Request, typename Response> ... (by stereoMatching)
permutation program
 
Hi readers, if someone could pass me in the right direction on how to accomplish this please don't reply a search engine lol...... What is needed is to have ...
[6 replies] Last: thankyou i will ponder on this for now (by amberleef)
Pascal triangle with pattern
 
how am i able to use for loops in order to create diamond shape: * * * * * * * *
[4 replies] Last: well...thanks for your help !! (by lanceTCT)
remove item from an array
 
I want to remove a file from array how do i do this
[6 replies] Last: Use an STL Vector instead? [quote=BLACKHULK]if you have an array but ... (by Mooncabbage)
How to program API...go from where ?
 
I gotta design an API to serve some tool that could help me best...I use API from a website...but since I got basic C++ where should I go to before API ? Could ...
[1 reply] : I'm not sure I fully understand your request but look at: API Design... (by closed account 1vRz3TCk)
Display all data from text file
 
Hi guys. im kinda stuck with a problem here. Just had a code created (thanks to cplusplus +1) Im trying to create a sort of membersystem. So i have all th...
[4 replies] Last: You need to show how you've called it. (by kbw)
Array/ Rows and column program confused
 
Hey guys I have to do this Write a program to input the following values into an array named prices: 10.95, 16.32, 12.15,8.22,15.98,26.22,13.54, 6.45, 17.59...
[1 reply] : float prices ; for (int i=0; i<9; i++) cin >> prices ; ... (by SIK)
by iPlus
Why wont this compile? (1,2)
 
Template: #ifndef MATHLIBRARY_H_INCLUDED #define MATHLIBRARY_H_INCLUDED #include <iostream> #include <cmath> using namespace std; namespace MyName...
[23 replies] Last: Given that you're not trying to make a static library, that was a mist... (by Moschops)
November 2011 Pages: 1... 1213141516... 47
  Archived months: [oct2011] [dec2011]

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