Tagged Questions

C is a general-purpose computer programming language used for operating systems, games and other high performance work.

learn more… | top users | synonyms

2
votes
1answer
120 views

Effective handling of variables in non-object oriented programming

What is the best method to use and share variables between functions in non object-oriented program languages? Let's say that I use 10 parameters from DB, ID and 9 other values linked to it. I need ...
1
vote
3answers
234 views

good literature for teaching object oriented thinking in C [closed]

Quite often C is the primary platform for the development. And when things are large scale, I have seen partitioning of the system as different objects is quite a natural thing. Some or many of the ...
3
votes
0answers
106 views

Best Creational Pattern for loggers in a multi-threaded system?

This is a follow up question on my past questions : Concurrency pattern of logger in multithreaded application As suggested by others, I am putting this question separately. As the learning from ...
3
votes
2answers
211 views

Books on Artificial Intelligence in C or C++?

I have been looking to learn Artificial Intelligence but I can't seem to find a book that teaches concepts of AI in C/C++. I have searched long and hard. Most books are written for Lisp hackers/Prolog ...
2
votes
3answers
118 views

Serializing Data Structures in C

I've recently read three separate books on algorithms and data structures, tcp/ip socket programming, and programming with memory. The book about memory briefly discussed the topic of serializing data ...
-3
votes
1answer
73 views

C# Linq Lambda Where then Contains? [closed]

The Description field looks like this "SOME NAME ID". I want to NOT include where the description contains the userId at the end of description. is that possible with linq? const int ...
0
votes
3answers
96 views

Please recommend some open-source well-written c/c++ network related projects to learn? [closed]

I am now struggling with network communication part of my first client/server solo-project. I have to keep searching the internet to figure out how to write correct code, because I haven't do ...
0
votes
2answers
136 views

GPLv2 - Multiple AI chess engines to bypass GPL

I have gone through a number of GPL-related questions, the most recent being this one: http://stackoverflow.com/questions/3248823/legal-question-about-the-gpl-license-net-dlls/3249001#3249001 I'm ...
6
votes
2answers
185 views

Questions about linking libraries in C

I am learning C (still very much a beginner) on Linux using the GCC compiler. I have noticed that some libraries, such as the library used with the math.h header, need to be linked in manually when ...
2
votes
2answers
333 views

Functions returning pointers

C++ noob here. I have a very basic question about a construct I found in the C++ book I am reading. // class declaration class CStr { char sData[256]; public: char* get(void); }; // ...
0
votes
0answers
18 views

Problem in udp socket programing in c [migrated]

I complile the following C code of UDP client after I run './udpclient localhost 9191' in terminal.I put "Enter Text= " as Hello, but it is showing error in sendto as below: Enter text: hello ...
2
votes
4answers
249 views

What should and what shouldn't be in a header file?

What things should absolutely never be included in a header file? If for example I'm working with a documented industry standard format that has a lot of constants, is it a good practice to define ...
-3
votes
0answers
65 views

how to insert multiple characters into a string in C [closed]

I wish to insert some characters into a string in C: Example: char string[20] = "20120910T090000"; I want to make it something like "2012-09-10-T-0900-00" My code so far: void append(char ...
-2
votes
1answer
60 views

How to split part of a string in C [closed]

I need to write an program that splits a string like "20120910T090000" into 2012,09,10,0900, and 00 I have just started C and I am not sure how to do this, so any help is appreciated.
0
votes
1answer
129 views

Finding the displacment of a robot [closed]

I'm building a quadruped (4 legs 3 DOF) for my major work in electronics at high school. I need to know the displacement of the robot and I can't use an encoding wheel. I've done my research and I ...

1 2 3 4 5 29
15 30 50 per page