15,551 Topics
| |
hi frnd i m new in Programming so please help me out how can i link or open .exe file in c program i m using turbo c how can i link 1 exe file in my program so i can run it in my main program | |
Hi, every one know that scanf statement should use "&" ambers ion symbol, but why it is not used while getting a string. eg: main() { int a; char str[10]; scanf("%d",[COLOR="Red"]&[/COLOR]a); scanf("%s",str); -->why "&" sybbol is not used in getting string? } | |
I need to create a frame rate independent timer system, I haven't tried anything yet but that's because I need ideas because I am confused as to how you would do it in code(which is run regardless of how fast) and having it frame rate independant. | |
hello guys, i need help, on how to output odd and even numbers at the end of the loop... not the way my program does, which prints the number every time i input numbers, and it needs indicated whether it's an odd or an even number. guys give me an … | |
hii i have a server client prog in which server is my 'agent' and client is 'manager' following is the code for both agent and manager. i want my agent to send what manager is requesting. but it is not working the way i want. the paramters which manager is … | |
I want to reach linked list like an array. I write a code like that but i get unexpected result. Main problem is, when i check sizeof(myrecord) value, i get 27 bytes, but actually difference between the records is 32 bytes. Do you know where is the error? [CODE]#include <stdio.h> … | |
Following this text book, i need to take this card dealing program and turn it into dealing 5 cards, and identifying pairs(and various other hands). The 5 cards was easy, now im just experimenting on how to identify pairs when i came into the error: missing ; before const. The … | |
i am a beginner, but im interested to know wat about programing... plz help me... tanx... can i get the basic code? send me pls... tanx.. | |
I need help with the code. It otherwise works fine. But whenever i enter 'Y' to play the game once again it automatically keeps entering character as input to scanf every time i press enter. So, the program never, ends what to do??[code]#include<stdio.h> #include<stdlib.h> #include<ctype.h> #define SEED 12345 void play(void); … | |
Hello, I need to implement a lightweight transport layer protocol in Linux-Kernel as part of my project. Could you please suggest some books or references that explains about implementation of TCP in linux? Thank you.. Thanks, Bala | |
hey guys i m finding it difficult to link the different files together in c.. here is my code... [code=c] //main.c #include <stdio.h> #include "other.h" int main (void) { printf("%d\n", getfavorite()); return 0; } //other.h #ifndef _OTHER_H #define _OTHER_H int getfavorite(void); #endif //other.c #include "other.h" int getfavorite (void) { return … | |
hiii... i running a program of C heres one function in which i am getting an error. [CODE]void snmp() { int count; char switch_val; printf(" start sending requests\n"); printf(" select '1' to send get request\n"); printf(" select '2' to send get next request"); scanf( "%d", switch_val); switch(switch_val) { case '1': … | |
[QUOTE]Armstrong numbers are the sum of their own digits to the power of the number of digits For example, 153 = 1³ + 5³ + 3³[/QUOTE] Here is my attempt [CODE]#include <stdio.h> #include <conio.h> void main() { clrscr(); int i,r,h,t,o,s,n; printf("Please enter any integer.(Not more than four-digits) "); scanf("%d" , … | |
How to calculate space complexity of any algorithm or program .... | |
Hi guys How do I search a file ".txt" which contains three lists side by side for a word , then print the line that the word I searched for is in? NOTE: -The lists are lists of names . it would be beter if you show how to do … | |
Hi Folks, I got some problems and need your help. In school, my codes are writeen under UNIX system (Solaris10/SUN), now I need to transfer those codes to Linux (Redhat5). But after I directly copy to Linux, it shows many errors and warnings. Does anyone know which codes I need … | |
Hi Guys, So I have the functiom find_index_of_max and I need to use main as a driver to print the index of the the max value in the array. However, mine isn't functioning correctly. So, I was wondering if anyone can tell me what I need to do. Thanks! [code]#include … | |
Hi everyone, I'm new to c-programming. I'm currently trying to write a program using function call but end up in a mess. Can anyone help me please? I've been trying this for a few days. I wanted to write a program with "factorial" and "power" I'm refering to this example. … | |
[code]#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <string.h> typedef struct msgbuf { long mtype; FILE *mtext; } message_buf; main(){ int msqid; int msgflg = IPC_CREAT | 0666; key_t key; message_buf sbuf; size_t buf_length; key = 1234; if ((msqid = msgget(key, msgflg )) < 0){ perror("msgget"); exit(1); … | |
I want to create a structure comprising of an integer and a pointer to it. However it doesnt seem to work and devC++ gives the following error [CODE]struct loha { int i; int *p = &i; ...7 } *pp; ...8[/CODE] Error : 7 I:\G\My CPP\structures.c [Warning] no semicolon at end … | |
Hi guys: I got a program from a developer. My main problem is that the code is in C and I been trying to compile it, but it keeps me giving errors, well mainly warning, but some of them I am not sure what they mean and/or how to fix … | |
hii how can we send messages periodically to client from server... in C i am running a client server program in C on linux.... in which my server has to ask some parameters (like system Up Time, no of processes ) from client.... i want this function to work periodically … | |
hi! I have a program, and I have 2 threads. in the first I lock a semaphore, and in the second I have to run some code, but only after the first locked the semaphore. right now I do it with busy-waiting: [CODE] void *thread_proxy_stub(void *arg) { int x; // … | |
Hiieee...der I am writin a somethin where I require to get string from the user anr then tokenise it.Can some1 give me some ideas on how to get started.I need the string to be in a loop as well. | |
hi, int i=1; printf("%x",-1<<1); what is an output? how is it works? please any one explain it. | |
Hi! I just want to know, how can I open an image file using C in Console mode... Yes... I don't want it to open in MSPaint or anywhere like that. I want to open a 16-color bmp image with VGA Graphics Driver using C in console mode. Actually this … | |
Hi, I am developing a large scale code. In order to save the space, when I declare any pointer, I allocate it in another subroutine. Now it seems that it does not work when I use an array of pointers. I can summarize the code as: [CODE] #include "headers.h" /** … | |
Hello everyone. The functions will be in the global scope right? So, returning a pointer from a function, where the pointer is a function pointer, must not be illegal right? Also, what address is held by the function pointer? Is it the first instruction's(in the function) address from the text … | |
If i have a 2D matrix of characters or integer or whatever!How do i check if another matrix is a sub-matrix of The 2D one ...Please!! help with simple code that work for any size of the matrices Thanks in advance to all . |
The End.