15,551 Topics

Member Avatar for
Member Avatar for vicpdfl117

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

Member Avatar for nbaztec
0
179
Member Avatar for shankarz

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? }

Member Avatar for mehrab
0
259
Member Avatar for tomtetlaw

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.

0
47
Member Avatar for kevinyu

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 …

Member Avatar for kevinyu
0
102
Member Avatar for iqra123

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 …

Member Avatar for nbaztec
0
126
Member Avatar for eslmz

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> …

Member Avatar for UncleLeroy
0
128
Member Avatar for ryan461

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 …

Member Avatar for ryan461
0
394
Member Avatar for dhondie87

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..

Member Avatar for nbaztec
-3
130
Member Avatar for Ror1

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); …

Member Avatar for Ror1
0
83
Member Avatar for bala1486

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

Member Avatar for lionaneesh
0
61
Member Avatar for ankyG

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 …

Member Avatar for Ancient Dragon
0
159
Member Avatar for iqra123

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': …

Member Avatar for iqra123
0
66
Member Avatar for eshabajaj
Member Avatar for xaop

[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" , …

Member Avatar for Banfa
0
140
Member Avatar for pmishra
Member Avatar for thehelios
0
143
Member Avatar for aliyami90

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 …

Member Avatar for Adak
0
84
Member Avatar for fishwater00

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 …

Member Avatar for JOAT
0
99
Member Avatar for tam13

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 …

Member Avatar for JOAT
0
130
Member Avatar for stanleyz

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. …

Member Avatar for oieronle
0
274
Member Avatar for kubatur0

[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); …

Member Avatar for oieronle
0
102
Member Avatar for Anex

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 …

Member Avatar for oieronle
0
135
Member Avatar for gcardonav

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 …

Member Avatar for gcardonav
0
144
Member Avatar for iqra123

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 …

Member Avatar for iqra123
0
80
Member Avatar for neti1987

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; // …

Member Avatar for nbaztec
0
1K
Member Avatar for ZeRo 00

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.

Member Avatar for ALi Nuces
0
94
Member Avatar for karthi_selva

hi, int i=1; printf("%x",-1<<1); what is an output? how is it works? please any one explain it.

Member Avatar for karthi_selva
0
95
Member Avatar for Kartik_shashank

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 …

Member Avatar for gowthamsettu
0
1K
Member Avatar for parisa_bala

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" /** …

Member Avatar for Banfa
0
171
Member Avatar for mukundyk

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 …

Member Avatar for Banfa
0
139
Member Avatar for Alerwiali

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 .

Member Avatar for cupofdenial
-3
68

The End.