Latest Tracked Programming Questions Of C Language

C Language : Encoding error in GIF LZW compressed stream   (Views   2088)

Posted On: Friday 7th of December 2012 08:41:30 PM
I'm writing a C library to export SDL_Surfaces to various image formats as an exercise. Now I'm working on the GIF format and I feel I'm very close to getting it working, but I've been at this for a while with no luck. I've already re-read all the specs, wiki entries, various other internet articles...Show More

C Language : How to make screen blink in MS-DOS with TSR program   (Views   220)

Posted On: Friday 7th of December 2012 08:41:28 PM
Hi . I have written an MS-DOS based screensaver program by hooking timer and keyboard interrupt. After 10 seconds the screen is cleared and on clicking any button from the keyboard the contents of dos screen are shown. I want to know how can I make this screen to blink i.e. alternate between cleared...Show More

C Language : use of undefined type   (Views   225)

Posted On: Monday 26th of November 2012 12:50:27 AM
I have two classes(class A, class main). class main uses a pointer to class A and class A uses a global pointer to main. My problem is I keep getting these errors: a.h(12) : error C2027: use of undefined type ...Show More

C Language : Re: obfuscation   (Views   228)

Posted On: Monday 26th of November 2012 12:50:25 AM
"James Kanze" wrote in message news:1180528868.407325.193550@q75g2000hsh.googlegroups.com... "The real question, of course, is why you'd want to obfuscate to begin with." To protect intellectual property: trade secrets, patents, copyrights... John...Show More

C Language : Casting from pointer types to non-pointer types   (Views   213)

Posted On: Monday 26th of November 2012 12:50:07 AM
I am interfacing with a third party API (written in C, if that matters) that has an "event handler" function with the following definition: void event_handler(int event_code, unsigned long user_data); The function takes an event code along with the user ...Show More

C Language : Defect Report: Unclear which members of match_results should beused in comparison [re] (N2284).   (Views   253)

Posted On: Monday 26th of November 2012 12:50:05 AM
Dear C++ committee, In "28.4 Header synopsis [re.syn]" of N2284, two template functions are declared here: // 28.10, class template match_results: // match_results comparisons template bool operator== (const...Show More

C Language : ** VIDEO SPEECH OF PAKISTANIAN CHIEF JUSTICE REQUESTED ***   (Views   150)

Posted On: Monday 26th of November 2012 12:49:48 AM
The nexus between 911 truth movement and its success is closely related to the democratic victory in Pakistan. The Pakistanian Military Dictator, a foolish patsy of Bush-Neocon- Crime Syndicate, provided critical validation to the 911 LIE by implicitly buckling under ...Show More

C Language : Invalidating iterators after insertion/removal   (Views   205)

Posted On: Monday 26th of November 2012 12:49:45 AM
If I insert/remove an element in a set, will an iterator to this set automatically become invalid Does the position of the iterator before the insertion/removal matter How are vectors and lists affected...Show More

C Language : How can I get rid of "Warning C4307: integral constant overflow"   (Views   209)

Posted On: Monday 26th of November 2012 12:49:26 AM
Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) How do I get rid of "Warning C4307: '-' : integral constant overflow" from the following macro #define d_ReturnMax(I_iTypeSize)\ ( (int64(1)Show More

C Language : Converting double (or float) to int   (Views   191)

Posted On: Monday 26th of November 2012 12:49:24 AM
After a little experimentation I see that with the g++ compiler on x86, when a double is converted to an int, the fractional part is discarded. Examples: int(0.7) == 0 int(1.3) == 1 int(-1.3) == -1 Is this behaviour consistent ...Show More

C Language : JOB ID : BE 3001 >>> Our client needs a PeopleSoft Performance Tester   (Views   202)

Posted On: Monday 26th of November 2012 12:49:07 AM
JOB ID: BE 3001 Please refer to the Job ID in all your communication both in subject line of your email and in the body text. Hi Friends, Good Morning ,...Hope you doing good! Our client needs a PeopleSoft Performance ...Show More

C Language : c++   (Views   133)

Posted On: Monday 26th of November 2012 12:49:06 AM
c++ is an object-oriented programming language. it was heveloped by Bjarne Stroustrup at AT&Bell laboratories in Murry Hill,New jersey,USA,in the early 1980's.stroustrup,an admirer of simula67and a strong supporter of c....Show More

C Language : How to use typedef in nesting class   (Views   182)

Posted On: Monday 26th of November 2012 12:48:48 AM
,please look at this code. /////////////////////////////////////////////////// #include using namespace std; class A{ private: class B;// public: int out(int x){ return outB(x)->a; } B * outB(int x); private: B* root; class B{ int a; B(int init_a) :a(init_a){} friend class A; ...Show More

C Language : Error when using std::less   (Views   153)

Posted On: Monday 26th of November 2012 12:48:46 AM
I get this error when I run my program: red_black_tree.cpp:188: error: no matching function for call to std::less::less(MyObj&, MyObj&) /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_function.h:224: note: candidates are: std::lessShow More

C Language : std::set constructor taking a sorted sequence   (Views   142)

Posted On: Monday 26th of November 2012 12:48:29 AM
In the C++ standard page 472 it says that you can construct a std::set in linear time if the constructor gets a sorted sequence of elements. But how is this possible when insert takes logarithmic time Should the time not ...Show More

C Language : best way to add date and time to a c++ program   (Views   138)

Posted On: Monday 26th of November 2012 12:48:27 AM
Could someone advise me on the best code to use in order to add date and time information into my program. I need the data in the form of either a string or a c_string. The code needs to be ...Show More

C Language : a question about typedef syntax   (Views   212)

Posted On: Monday 26th of November 2012 12:48:10 AM
, I think the syntax of typedef is typedef existing-type new-type However, I've seen a statement typedef string stringarray[42]; >From the programs that use stringarray, I can deduce it represents the type string[42]. If so, why is it not defined ...Show More

C Language : Fight Stopping AIDS, Let's Do it...   (Views   197)

Posted On: Monday 26th of November 2012 12:48:09 AM
Hi Friends, Let's Stop AIDS, it's increasing like a forest fire... See the page below and learn more about it. www.chulbul.com/aids.htm Let's Know more about stopping AIDS today !! ________________________--- Join the Revolution !! http://www.orkut.com/Community.aspxcmm=27495757...Show More

C Language : RTTI basics   (Views   191)

Posted On: Monday 26th of November 2012 12:47:53 AM
Hi all. I would like to use a class hierarchy where one const data field holds a class-specific value. I would like to do something like class base{public; static const int n}; class a : public base{public:}; class b : ...Show More

C Language : Template specialization   (Views   181)

Posted On: Monday 26th of November 2012 12:47:51 AM
I've two modules in my project. One is a dll and another is an exe. The dll contains the following template code in one of its header file. #ifndef __STACK_HEADER__ #define __STACK_HEADER__ template< class T> class Stack { public: ...Show More

C Language : boost serialization : attributes and node ordering   (Views   222)

Posted On: Monday 26th of November 2012 12:47:35 AM
I came across a situation where I wanted to have some flexibility with object serialization. I was thinking about two things: 1. Object attributes, for example, can we have something like this with boost: Show More

C Language : How to populate an array of char* pointer dymanically   (Views   145)

Posted On: Monday 26th of November 2012 12:47:33 AM
In my code, I have an array of char* pointer which is populated statically: void function1() { char *ppsz_argv2[] = { "abc" , "def", "dummy"}; //... } But how can I populated it dynamically void function1(string& str1, string& str2, string& ...Show More

C Language : Re: basic question about "clearing" a string....   (Views   254)

Posted On: Monday 26th of November 2012 12:47:13 AM
Well, I think I can understand Avalon's rant. If someone were to answer with a smart-alec response that Bazarov did, I think I would be pi$$ed off too. A straightforward answer like what Herring said may have averted these quarrels... ...Show More

C Language : Positions still available in the South of France. deadline for applications : 15th of June 2007   (Views   167)

Posted On: Monday 26th of November 2012 12:47:10 AM
- Fluent English (dont need to speak french), any country welcome. - Experience in C, C++, Java, Unix,Oracle and SQL,UML modeling / Rose (school project ok or professional experience) or Experience in PHP, MySQL, C, C++, Linux, Ajax, web 2.0 ...Show More

C Language : hey help plz..c++ project..   (Views   129)

Posted On: Monday 26th of November 2012 12:46:52 AM
hey plz if some body could advise me a gud project in c++..which could be big and yeald my all concepts of c++ best u know... thanx.....Show More

C Language : function declaration with default parameter   (Views   155)

Posted On: Monday 26th of November 2012 12:46:31 AM
, I am trying to declare a function that takes a std::list parameter. I want this function to have an empty list as a default parameter. It's a template function also. Currently i am stuck because my compiler does ...Show More

C Language : explicit copy constructor   (Views   186)

Posted On: Monday 26th of November 2012 12:46:29 AM
, I noticed the following in the "C++ Coding Standards" book. Why should the code on line 30 be in error Transmogrify accepts a (B obj), and we are passing it a B obj. I understand why the other call ...Show More

C Language : Object oriented callbacks and differences in member vs non-member function pointers   (Views   218)

Posted On: Monday 26th of November 2012 12:45:54 AM
I have great respect for the contributors of this newsgroup and have a question that I can't seem to find an answer for, I need to understand if it there is anything in the C++ standard that prevents or ...Show More

C Language : How to Convert a char array to int   (Views   155)

Posted On: Monday 26th of November 2012 12:45:53 AM
all, I'm new to C and I'm having a heck of a time trying to convert a char array element to an integer. Declaration of my char array is: char myarray[80]; ....then I scanf a number from the user ...Show More

C Language : Re: SmartPointer & Inheritance & Explicit Constructors   (Views   173)

Posted On: Monday 26th of November 2012 12:45:33 AM
"Jon Harrop" wrote in message news:465d8c7c$0$8747$ed2619ec@ptn-nntp-reader02.plus.net... > coder_lol@yahoo.com wrote: >> Well, I came across Scott Meyer's SmartPtr example from some 10 years >> ago. I like the template member function for type conversion to...Show More