Hi,
Am new in Qt Programming and i would like to develop a program which i want to run in Windows, Linux(ubuntu), and Mac.
I heard that Qt support mutli-platform application development,
but my Question is that,
would any Qt library need to run these appilication in Ubuntu after i depolyed or compiled. Or
...
I've read various sites and tutorials online but I am still confused. If the message is bigger than IP MTU, then send() returns the byte sent. What happens to the rest of the message? Am I to call send() again and attempt to send rest of the message? Or is that something IP layer should take care of automatically?
...
This is my warning.
Missing sentinel in function call
How i can remove it.
i am using linux & gcc compiler.
...
i have to write a program that sniffs network packets (part1-the simple part).
and i have to update the program (part2) so that it will be able to terminate connections.
the specific requirements are:
construct raw packets by specifying data link layer and network layer information including appropriate source and destination MAC and IP ...
Hi,
What would be the general structure of a App/Project based in C Programming language.
libs,
includes,
header files.
etc etc.
What would be the class structure. (in OOps) need to be scalable and other features.
Something like main.cpp
main.h
does any one have any good links or images or pdf?
...
I am currently starting using doxygen to document my source code. I have notice that the syntax is very heavy, every time I modify the source code, I also need to change the comment and I really have the impression to pass too much time modifying the comment for every change I make in the source code.
Do you have some tips to document m...
I am confused about getchar()'s role in the following code. I mean I know it's helping me see the output window which will only be closed when I press the Enter key.
So getchar() is basically waiting for me to press enter and then reads a single character.
What is that single character this function is reading? I did not press any key ...
Hi
I'm working on a device which primarily serves as a VoIP terminal. Currently I wrote an application whose main purpose is to record sound from the enlightened sound daemon v0.2.38 ( and to do some magic with it ).
The problem is, that writing of the recorded data to disk ( or even calling rename to move a file ) causes kupdated daem...
Hello,
I am developing a library in C++ where users/programmer will extend a class BaseClass that has a method initArray. This method should be implemented by the user/programmer and it should normally initialize all elements of the array m_arr.
Here is a snipplet, modified to this example:
class BaseClass {
public:
BaseCla...
Purely for interest, I am re-learning C after ... I don't know ... 15 - 20 years.
I seem to recall that variable arguments were implemented as simple macros.
Can anyone remember what they were?
Edit: To clarify my question, I know they had the same name as va_list etc. but can you remember the actual macro definition?
Will they st...
Possible Duplicate:
Good book on Programming C in Unix environment?
Can you suggest me some books for C programming on linux...
...
The following code works fine
#define open {
#define close }
#include<stdio.h>
#define int char
main()
open
int a ;
printf("This is testing code" );
close
But If I exchange the lines
#define<stdio.h>
#define int char
as
#define int char
#define<stdio.h>
it throws lot of errors like this
In file included from /usr/in...
I have a RefTables.pc file.
when i type make command.
This is my warning.
RefTables.c:109: warning: type defaults to `int' in declaration of `sqlcxt'
RefTables.c:111: warning: type defaults to `int' in declaration of `sqlcx2t'
RefTables.c:113: warning: type defaults to `int' in declaration of `sqlbuft'
RefTables.c:114: warning: type d...
Could you please help me how to format a struct timeval instance to human readable format like "2010-01-01 15:35:10.0001"?
...
void main ()
{
if ( fork () )
{
printf ( "PID1 %d\n", getpid () );
}
else
{
printf ( "PID2 %d\n", getpid () );
}
}
What does this code do? I know it has something to do with process IDs but shouldn't fork return something into the condition to determine whether it's a child/parent process?
...
I have to create a binary tree using the struct as follows:
struct treenode;
typedef struct treenode* TreeNode;
struct treenode {
void* data;
TreeNode left, right;
};
using void* as the type for the data to be stored at each leaf, so that an object of any type can be inserted into the tree.
When I am inserting a new leaf, I have to...
Is it possible for me to accept a connection and have it die withouit my knowing, then accept another connection on the same socket number?
I've got a thread to do protocol parsing and response creation. I've got another thread to handle all my network IO and one more thread to handle new incomcing connection requests. That makes three ...
this one is not homework, it just the fact that i've been out of school for more than 20 years and I NEVER had to use linked lists for anything at all. So i'm out of my element here.
anyway, I have
struct Data_Struct {
char *Name;
char *Task;
char *Pos;
struct Data_Struct *Next;
};
typedef struct Data_Struct MyData;
Wh...
Starting a new big C multiplatform project, what rules should one follow to avoid difficulties later? For example, as a new developer, I can have difficulties to navigate myself around Linux Kernel source code - which is a good example of highly evolvable but hard-to-step-in software structure with incosistent directory structure (e.g. s...
I got the task to rewrite the library lwIP to OOP style, taking as an object stream, I began to understand, to climb into this library, but that's the problem:
src\include\lwip\arch.h include file cc.h (line 43) which can not find neither I nor the compiler
...