Hello group,
In a C/C++ code such as:
extern void anotherglobalfunc(int param1);
Does the compiler searches for the function in current directory only? or it has wider...
I'm trying to start programming in C, and I have some sample source code that I know should be good. It is in the code section below.
When I try to compile it using MinGW, using the command...
the man routine is provided by the tutor and the node was written by the students....the main routine cannot be touched by me or any other student.....but whenever the program exectues.....it ...
hi everyone,
I am trying to convert some C program to MIPS for education purposes. Is there a compiler that does this?
Thanks
In a practice Q, I am give a function prototype: int decode2 (int x, int y, int z)
and the function in assembly is:
1 movl 16(%ebp) , %eax
2 movl 12(%ebp), %edx
3 sub1 %eax, %edx
4 m...
Hello,
could you advise me how to return a pointer to struct from function? I have a function where is the struct created and the struct should exist after it is returned (in the main funct...
I have written a file copy program that is giving me segmentation fault. The intention of program is to generate any random string of 10 characters and update it to file text.new by truncati...
what would the recurrence relation be for the following pseudo code algorithm?
void Height(T)
{
if (T is not empty)
{
lefttreeht = Height(left subtree of T);
rig...
Hey,
I'm coding in C, looking to copy the param into a variable, like so:
int main(int argc, char * argv[])
{
if(argv != 2) return -1;
printf("%u", sizeof(argv[1]));
}
...
Hello,
I am working on creating a Huffman Code (tree). I currently read all symbols and frequencies from a file into Nodes, stored in an array of node *'s, then I sort the array based on f...
Hi all,
Is there a way to implement two stacks within a single array without stack overflow?
Thanks.
struct opcodeTable
{
char name[10];
char code[3];
};
opcode_table[0].name="add"; // error on this line
When doing the above, i got the error msg saying "error: incom...
I need a function that takes as input 2 strings 1 is divident and 2 is the divisor i need this function to return me the remainder of this division string represent binary numbers with regular...
Hi,
I am looking for a way to resolve all IP addresses on a local Unix/Linux system without using gethostbyname, since it has proven unable. For me, gethostbyname returns only one IP while ...
what is the use of asm("nop")??
I'm trying to compile a rather simple C program under Borlan'd C++ Builder 4 but it's not working. It can't find some libraries, mostly socket related ones. How can I fix this? (Yes, I want to...
Hi,
Does anyone know if "pthread.h" library is included with MS Visual C++ Studio?
where can I get it?
Thanks,
Trung
Hi ,
Can you please tell me how to write a simple Tcp-Socket programming using C.
lets suppose i have to communicate to xx.xx.xx.xx:5000.
--i as a client should send a packet to the serv...
Hello There,
I would like to validate the user input as numerical only. Range between 1 and 1000 inclusif. I need to use a loop to validate this input.
As long as the user has entered a...
I'm trying to write coding to take in a matrix and return it's inverse. So far I've got all the reading in and output coded and an Identity matrix of the same size as the other matrix and I c...
I want to use a Progress bar in my app. I know I need to add the comctl32.lib.
How do I add this to my linker options in Visual Studio 2005?
Thanks.
I am writing a little program to learn about socket programming. So far, it listens on a specific port, and I am able to telnet in and send a message. It then recieves the message and displa...
Dear Sir/Madam,
I am working in reducing the memory space while storing the fingerprint. For that I used some logic and reproduced the fingerprint. I implemented the logic in C a...
From what I can tell, incrementing an integer variable is not atomic, and usually translates to 3 assembly instructions. (move variable into register, increment variable, write variable back ...
How do I write a very simple unix like shell in C ?
Thanks!