Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF C Language


some casting questions  

Hello, It seems both static_cast and dynamic_cast can cast a base class pointer/reference to a derived class pointer/reference. If so, is there any difference between them? In addition, if I have a derived class object and then upcast it to ... Continue Reading
Views : 113
Monday 26th of November 2012

print IP number from received UDP packet  

hi there, I have a working UDP server in c++, how to I print the IP of the received packet???... Continue Reading
Views : 158
Monday 26th of November 2012

Discover As Beginning Successful Business In Internet.  

Discover As Beginning Successful Business In Internet. If you believed that to begin business in internet single era for experts........ This very mistaken one! Discover our system proven to begin business in Internet. Entering RIGHT NOW http://www.freedom.ws/pacovegavilla Alone to visit ... Continue Reading
Views : 57
Monday 26th of November 2012

vtd-xml 2.1  

VTD-XML 2.1 is released. This version contains a number of features and bug fixes. * The BookMark class is introduced into all available plaforms of VTD-XML. * C# and Java port of VTD-XML fix the bug of unicode chars in ... Continue Reading
Views : 76
Monday 26th of November 2012

Function Overloading  

I have one question. Can I catch exception in function overloading.In my programm i want to create two function with same signature and same return type. I know its not possible...can i use try.catch .block to hand this exception.... Continue Reading
Views : 62
Monday 26th of November 2012

difference...  

HI...This may sound offtrack to this groups..but his is related to this group only.. Can anyone tell me the difference between C and C++... besides object oriented and all that.. In indian companies this question is asked several times..but I ... Continue Reading
Views : 166
Monday 26th of November 2012

difference...  

HI...This may sound offtrack to this groups..but his is related to this group only.. Can anyone tell me the difference between C and C++... besides object oriented and all that.. In indian companies this question is asked several times..but I ... Continue Reading
Views : 178
Monday 26th of November 2012

Openings for C++ on Linux professionals  

Greetings from Pivot Systems, Inc.!!! Pivot Systems, Inc. established in 1997 is a global software services company, California corporation with several customers in the Silicon Valley, dedicated in providing expert software development services and solutions for major corporations. We offer... Continue Reading
Views : 42
Monday 26th of November 2012

3D Programming  

Hi I'm a beginner in C++ Programming i had some questions about open gl programming to create a 3d application 1. how do we create its basic engine?... Continue Reading
Views : 93
Monday 26th of November 2012

Declare and initialize a vector on one line  

Is there a way to declare and initialize an stl vector on one line? Right now the best I can come up with is //... vector$PHXLESSint$PHXGREAT vec; vec.push_back(1); vec.push_back(2); vec.push_back(3); //... -Thx... Continue Reading
Views : 175
Monday 26th of November 2012

reverse_iterator and const_reverse_iterator  

Hello, I think the two reverse_iterators are the same, except that the const_ version doesn't allow me to change the value pointed to by the iterators. However, I have a program that works for reverse_iterator but not const_reverse_iterator: for(vector$PHXLESSint$PHXGREAT::const_reverse_iterator... Continue Reading
Views : 183
Monday 26th of November 2012

question on vector  

Consider the following program: #include $PHXLESSiostream$PHXGREAT #include $PHXLESSvector$PHXGREAT using namespace std; class Test { public: Test(); friend ostream &operator $PHXLESS$PHXLESS(ostream &os, const Test &t); private: static int counter; int value; }; int Test::counter =... Continue Reading
Views : 109
Monday 26th of November 2012

How to block member overridable  

Hi, I have following classes: class A { public: virtual bool foo() = 0; }; class B : public A { protected: int state; public: int GetState() { return state; } virtual bool foo() { // implementation which sets B::state ... Continue Reading
Views : 61
Monday 26th of November 2012

Template and Namespace Ambiguity Issue  

bogus1one@yahoo.com wrote: $PHXGREAT Hi All $PHXGREAT $PHXGREAT Given the following: $PHXGREAT $PHXGREAT // NamespaceTemplate.cpp : Defines the entry point for the console $PHXGREAT application. $PHXGREAT // $PHXGREAT $PHXGREAT #include "stdafx.h" $PHXGREAT $PHXGREAT namespace N1... Continue Reading
Views : 94
Monday 26th of November 2012

SOUND  

usually use the Escape sequence "\a" for producing beep sound during running the program I design its code. Can any person shows other sound in C++ and how ??! Thanks.... Continue Reading
Views : 70
Monday 26th of November 2012

Vectorization of template functions  

Hello all, I am attempting to vectorize few template functions with the Intel compiler, but without much success so far. Ok granted, this question is not 100% c++, but it is related enough that I felt I could post it ... Continue Reading
Views : 91
Monday 26th of November 2012

What's the rationale for the rule of comma operator  

In 5.3.3.4 of the standard, the standard provides that "The lvalue-to- rvalue(4.1), array-to-pointer(4.2),and function-to-pointer(4.3) standard conversions are not applied to the operand of sizeof." I think this rule is easy to understand. Because I can find the contexts of applying... Continue Reading
Views : 112
Monday 26th of November 2012

Storing pointer as a key in std::map  

To the question is storing pointers as key in std::map safe? I got a negative reply in a forum I use. But I am still tempted to use it. What are your suggestions? Am I really looking for trouble? -- ... Continue Reading
Views : 46
Monday 26th of November 2012

very minor typo  

Hi, In 2284.pdf file page 938 [Working Draft, Standard for Programming Language C+], the function basic_istream$PHXLESScharT,traits$PHXGREAT& read(char_type* s , streamsize n ); Is not indented in the same way as all the other member functions .... which made it hard ... Continue Reading
Views : 71
Monday 26th of November 2012

learning c++  

hello all the great minds, please suggest me some good book to start out with c++. and some way to practice programming... Continue Reading
Views : 76
Monday 26th of November 2012

New header leads to name clashes  

The most recent state of http://www.open-std.org/jtc1/sc22/wg...007/n2241.html as well as the current draft N2284 (section [syserr], p.2) proposes a new enumeration type posix_errno immediatly in the namespace std. One of the enumerators has the name invalid_argument, or fully qualified:... Continue Reading
Views : 489
Monday 26th of November 2012

How US tech firms place job ads no-one will apply for -- so they can hire cheap foreign workers.  

Read all about it, here: http://Muvy.org... Continue Reading
Views : 306
Monday 26th of November 2012

Interview questions and answers  

Interview questions and answers We have selected a big collections of interview questions and answers in many technical areas: Java, JSP, ASP, C++,C#,.NET,ORACLE, PL/ SQL,Perl, struts, XML....more ... http://www.techinterviewquestion.blogspot.com... Continue Reading
Views : 121
Monday 26th of November 2012

ANNOUNCE: gnocchi 0.33 "complexity ****yser" released  

GNOCCHI 0.33 - A COMPLEXITY ****YSER FOR C++ Gnocchi calculates cyclomatic and the NPATH complexity measures. It reads the coverage information produced by GCC and determines the complexity of all functions. If code is compiled with -fprofile-arcs or -ftest-coverage (depending ... Continue Reading
Views : 130
Monday 26th of November 2012

what is the word REGS meant...  

Hi, i am vikram Please tell me the usage of REGS key word how it can be used? any kind of suggestions will help me.... Continue Reading
Views : 65
Monday 26th of November 2012

UML  

Hi, I have some questions about UML and C++; I have written a class in C++, what is the best diagramm to represent it ? I will explain the functions from this class...should I use an activity diagramm for each ... Continue Reading
Views : 69
Monday 26th of November 2012

about using pthread in cpp  

i just want to put *pthred_create* , *pthread_join* into one class, but i do not know how to, anyone help me? the code below is mine: ------------------------------ #include $PHXLESSpthread.h$PHXGREAT #include $PHXLESSiostream$PHXGREAT using namespace std; class CppThread{ public:... Continue Reading
Views : 145
Monday 26th of November 2012

specialaizing templates --error  

Hello, I 'm writitng a simple program which contains the following template template $PHXLESSclass T$PHXGREAT int exch(T& t1 ,T& t2){ T tmp ; tmp = t1; t1 = t2; t2 = tmp; return 1; } When i run this for ... Continue Reading
Views : 392
Monday 26th of November 2012

Simple Tree Syntax Error  

I'm creating a real simple tree. No sorting and every node can have infinite children. // TreeNode.h #ifndef TREENODE_H #define TREENODE_H #include $PHXLESSiostream$PHXGREAT #include $PHXLESSiomanip$PHXGREAT using namespace std; // forward declare the tree class template$PHXLESS class NODE_TYPE... Continue Reading
Views : 142
Monday 26th of November 2012

multi dimensional array  

Hi, I need a class, that has a 4 dimensional array (can be 3 dimensional, too) with such an operator: T operator()(int x1, int x2=0, int x3=0, int x4=0); that can be used as: myarray(12); or myarray(12,14); depending on the ... Continue Reading
Views : 114
Monday 26th of November 2012