General C++ Programming - August 2014 (Page 10)

SNMP Library
 
Hi, I need to write SNMP Management Station in C++, which is the best library to use: SNMP++ OpenSNMP or any-other choice thanks
[3 replies] Last: Net-SNMP comes with snmptrapd which handles receiving and decoding of ... (by ResidentBiscuit)
header file and ifstream
 
hello this is my header file const unsigned short int numbersAdd=100; const unsigned short int chr_len=30; struct address{ char name ; char stre...
[11 replies] Last: thanks its working in codeblocks...crap Geany...btw if u could tell me... (by csstudent123)
Program built with clang++.exe crashes
 
I have dual-boot Windows 7 and Ubuntu Trusty. I used clang/clang++ and it works fine when I installed it on Ubuntu with sudo apt-get install clang . I am now ...
[3 replies] Last: Have you looked at what libraries are being linked in each case? (by LB)
confused about static function vs static variable
 
Please anyone help me understand static function and static variable in an implementation file for example include "calculator.h" static int result static ...
[4 replies] Last: thanks..btw can u pls look at this? http://www.cplusplus.com/forum/ge... (by csstudent123)
by tmason
Best Practices for Having a "Generic" function...
 
Hello, I know the title is rather ambiguous so let me explain. Let's first take the following class prototype: #include <ctime> #include <iostream>...
[4 replies] Last: If the only difference is the return type then somewhere, somehow, th... (by helios)
by clxye
How to distinguish between std:: function
 
I want to realize C# style delegate. class Object{}; class EventArgs{}; #define delegate typedef #define event_global(glob...
[3 replies] Last: You mentioned the signal I was also considered, but I want to achieve ... (by clxye)
how to output from a .txt file
 
So I have a .txt file with, Name >> Username >> password >> adminstatus. It is filled with various names. for e.g. Bob bobby bob123 1 tim timmy tim123 1 ...
[2 replies] Last: Is there a simpler way of doing it? I know your method is fairly short... (by wakamoe)
operator overloading
 
type operator * (int x) const; now the const word here is telling about whom???? x is const OR the driving object is const ????
[1 reply] : The member variables of the object where the operator is overloaded ar... (by asus1575)
by sha
Converting the matrix to vector
 
Write your question here. Hi I want to convert the matrix to vector and vice verse.Is there anyone can help me or post the sample thanks
[1 reply] : Need more information, not all matrices can be converted to a "vector"... (by closed account 10X9216C)
hassle with operator overloading
 
++ operator --------------1----------------- void operator ++ (){ this->num = (* this).num + 1; //calling object is incremented by 1 } --------------2-----...
[3 replies] Last: what's the logic behind these restrictions ??? That allows for th... (by firedraco)
Help with downloading OpenGL?
 
So, I am trying to learn OpenGL for game development, and I cannot find a download anywhere. I know that Windows SDK comes with gl/GL.h and gl/GLU.h, but I am p...
[9 replies] Last: I got it (I am pretty sure)! When I built it last night it worked, alt... (by AceDawg45)
Mutexes vs Atomic Operations
 
Hi everyone Thanks for all your previous help. I am actually looking at writing a float value in thread A and reading it in thread B. I used mutexes and it was...
[14 replies] Last: @ Computergeek01 I am not sure of what kernels and API's are but I am... (by mcprakash)
by Ownie
Error using std::string std::bad_alloc
 
1: Unhandled exception at at 0x75151D4D in Game.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x006BF2AC. 2: Unhandled exception at 0x6E6E5...
[5 replies] Last: > Here is more of the code then http://www.eelis.net/iso-c++/testcase.... (by ne555)
templates to be defined explicitly
 
Do we need to define templates explicitly for each function/class like template<class X> myfun1(X x){} template<class X> myfun2(X x){} template<cl...
[no replies]
Converting floats (1,2)
 
Hello How do you convert a number float in a range of -10.0f to 17.0f to a eqivalent number in the range of 0.0f to 1.0f? The code does not work well. flo...
[22 replies] Last: This requires some further investigation maybe on the compiler/linker ... (by vivienneanthony)
sqlite3 problem?
 
Hi, I have a problem with sqlite3. The database locks its self when in use this is a problem for me as I will need to access it from a http server as well and...
[6 replies] Last: Could you further explain this please? (by danielmccarthy)
by abc1
destructor of class
 
I have typed the program as:- class test { int x; public:test(int a) { x=a; } void print(void) { cout<<x; } ~test() { cout<<"destructor"...
[6 replies] Last: int main() // <- main must return int, not void { { // <- limi... (by Disch)
Am I handling bad allocations well?
 
I've never been taught a specified way of how to handle bad allocations of dynamically allocated variables. I've taken the time to come up with a solution that ...
[11 replies] Last: 4) If you don't know how big an array needs to be until run-time. Tec... (by helios)
Does my code look nice? (1,2)
 
Hey, Just curious if I have coded this nicely. Its a small snippet of some code that works with my inventory in my game. Basically the inventory is just a ho...
[26 replies] Last: > I've seen excellent programmers with more than 10 years of experien... (by JLBorges)
One thing to clear about dynamic binding?
 
For example: If I have the base class class cell_c { public: virtual void calculateStep1(); void calculateStep2(); virtual void calculateS...
[5 replies] Last: Line 12, 19, 28, 37: Needs virtual keyword. virtual ~cell_c(); ... (by AbstractionAnon)
August 2014 Pages: 1... 89101112... 25
  Archived months: [jul2014] [sep2014]

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