15,551 Topics

Member Avatar for
Member Avatar for engineer61

Hi friends I need urgent help. now three variables we printed to a file received from the user. This variable to another file, the user wants to take that file and the value of the variable is a variable, you need to do. And this event is the first change …

Member Avatar for zeroliken
0
136
Member Avatar for Alvi89

Im currently trying to delete a record from a file The structure ive used is this: [code]struct studentRecord { char rollnumber[12]; char name[32]; int attendancePercentage; float quiz; float assignment; int classpart; float mid1; float mid2; float final; float semesterPerformance; float overallPerformance; }; [/code] Now I have 2 problems: 1.I cant …

Member Avatar for Adak
0
226
Member Avatar for randolph.gamo

Write a program that converts upper case to lower or lower case to upper, depending on the name it is invoked with, as found in argv[0].

Member Avatar for zeroliken
0
44
Member Avatar for randolph.gamo

hi guys, sorry to disturb but I'm looking for the instructor's manual to 'C by a modern approach' written by KN king.

Member Avatar for N1GHTS
0
110
Member Avatar for coding101

How would I hide keystokes when I use the keyboard? When you use scanf fgets and gets, they show they print the keys to the screen.. I want to hide them.

Member Avatar for N1GHTS
0
97
Member Avatar for Elmey

Hi, first of all: the answer to my question is NOT atof()! I have a char-array that may contain something like "1.2345". I want to convert the contained values to float/doubles but unfortunately atof() depends on the current locale. So whenever a user executes the application on a system where …

Member Avatar for Narue
0
286
Member Avatar for SpyrosMet

I need to create a simple http client to a web server and my code is the following: [CODE]#include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <errno.h> #include <arpa/inet.h> struct sockaddr_in wserver, cl; struct hostent *rem; int fd, newfd, len, l; int main(int argc, char …

Member Avatar for SpyrosMet
0
376
Member Avatar for MaSSaSLaYeR

Hello! I'm making an IRC Client with DCC Capabilities. The DCC Specifications say this about receiving files: [b] The recipient should acknowledge each packet by transmitting the total number of bytes received as an unsigned, 4 byte integer in network byte order.[/b] In do this with the following code: [code]typedef …

Member Avatar for MaSSaSLaYeR
0
166
Member Avatar for amit_as
Member Avatar for theCompiler

i dont have idea what string function must be used to find consecutive characters . example is the word commit it will output the letter m . tnx for th help :D

Member Avatar for nHulk
0
5K
Member Avatar for crysoberil

Say, i want to create a file compressor-extractor(using C programming language). When the file is compressed, it has the extension ".jisan" ... is there any way that when i double click on the compressed file(example: file.jisan), it will extract itself automatically?

Member Avatar for Ancient Dragon
0
112
Member Avatar for terence193

I am currently trying to write a program to simply output roman numerals (not convert-as on many previous threads) from 1-99.. This is the logic/code I have tried so far, but I am certain that it isn't correct apart from the fact that it isnt compiling. [CODE]#include<stdio.h> int main(void) { …

Member Avatar for terence193
0
225
Member Avatar for coding101

The 'who' command lists the "console" associated with the user. Im trying to find all open "tty's or whatever that users' device console is called". The only open source for the tty command i found, which was written by apple, was not followable. Question is is their a function call …

Member Avatar for TrustyTony
0
43
Member Avatar for TrueCoding

Hi the aim of my program is to allow a user to enter the size of an array and then allows the user to enter the values into an array. The bit im having a problem with is I want to count how many odd and even numbers there are …

Member Avatar for Rushirl Quiño
0
2K
Member Avatar for vivosmith

Hello, I am trying to use the allegro game library (5.05) and I came across an error. It involved not being able to find -lgcc_eh so I switched it to static-lgcc_eh and it worked fine, that is until I got an error for not finding allegro-5.0.5-mt.dll . I looked in …

Member Avatar for N1GHTS
0
236
Member Avatar for ramki*89

int a=320; char *p; p=(char *)&a; printf("%d",*p); gives 64\\\not sureif p or *p in pf wat in the world does (char *)&a does ?? sum1 help plzzzz

Member Avatar for N1GHTS
0
87
Member Avatar for amgad habeeb

hello guys grade book *write a program that will calculate the average of an unknown number of students. *your program should validate the grades to be between 0 and 100. *there are 5 grades to be entered and averaged . *the program should enter the grades using a for loop …

Member Avatar for thines01
0
172
Member Avatar for Mohit Malhotra

[CODE]#include<stdio.h> #include<conio.h> #include<stdlib.h> void Board(); void PlayerX(); void PlayerO(); void Player_win(); void check(); int win=0,wrong_X=0,wrong_O=0,chk=0; char name_X[30]; char name_O[30]; int pos_for_X[3][3]; int pos_for_O[3][3]; int pos_marked[3][3]; void exit(int status); void main() { int i,ch,j; char ans; /* clrscr(); printf("\n\t\t\t\tTIC TAC TOE"); printf("\n\t\t\t\t"); for(i=1;i<=11;i++) { delay(10000); printf("*"); }*/ do { clrscr(); printf("\n\t\t\t\tTIC …

Member Avatar for Ancient Dragon
0
6K
Member Avatar for carlucho

Hi, This is the first time ever I post something about any programming language. Im just starting this semester with C language, so Im really new on this. This C code is a project we have for the class. We have to supply definitions for different functions. I have gone …

Member Avatar for thines01
0
306
Member Avatar for ooops.789

i am trying to send a file between a client and a server using sockets in C....well i see that there is a function sendfile(), but i donno its usage, can someone guide me with an example how to send a file and receive it.....

Member Avatar for aShu5tosh
0
133
Member Avatar for faami

can anyone give me the program for pointer as function arguments.... thanks in advance

Member Avatar for Narue
0
46
Member Avatar for Kinneranand
Member Avatar for Santi1986
Member Avatar for Narue
0
348
Member Avatar for amnakhan786

hi, i am working on a code it has two parts: for the first part i have 1500-4000 text files which have strings in them.some files are same and some have different strings and i have to find amongst those a subset of files which are 10-20 n number and …

Member Avatar for Adak
0
218
Member Avatar for Master Mascus

anyone can tell me what this line does? [CODE]return ('A' + c1 - 'a'); [/CODE] its in this function.. [CODE]char LToU(char c1) { if ((c1 >= 'a') && (c1 <= 'z')) return ('A' + c1 - 'a'); return(c1); } [/CODE]

Member Avatar for D33wakar
0
117
Member Avatar for Ich bin würdig

I've been working on a program that inverts a word and changes the vowels in the word into an asterisk.. I'm confused on where to put the strset in my code.. can someone teach me how to? thanks.. Here's my code.. I know it's simple but I'm just a beginner …

Member Avatar for Ich bin würdig
0
153
Member Avatar for Santi1986
Member Avatar for N1GHTS
0
94
Member Avatar for TheOnlyRoss

I need to write a quiz program that generates random questions. My group and I determined that we would probably need to make use of the random function, so we did our research and were able to write the following program [CODE] #include<stdio.h> #include<stdlib.h> int main() { int i; int …

Member Avatar for TheOnlyRoss
0
2K
Member Avatar for Liuhh00

hey everyone on Daniweb, I'm liuhh00 in need of some dire suggestions for my program. I can't seem to solve why my program is not working right after i select my choice for case. The program is suppose to accept any 20 random integers, store them and allow the user …

Member Avatar for D33wakar
0
126
Member Avatar for neveragn

[CODE]#include<stdio.h> #include<string.h> #define SIZE 100 int main(void) { int array[SIZE], i, n, j, sum=0; printf("Enter some integers:"); for (n=0;n<100;++n) { scanf("%d", &array[n]); if(array[n] == -1) { j=n; break; } j=100; } for(j<=100;i>j;++i){ printf("%d", array[n]); } for(j=0;j<n;++j){ sum=sum+array[n]; printf("The sum is %d\n", sum); } return (0); }[/CODE] [I]Im trying to output …

Member Avatar for neveragn
0
287

The End.