15,555 Topics

Member Avatar for
Member Avatar for blue3hree

hi.another post by me.ehehe pls check this code.i wonder how this would work: this program asks for the last and first name of the user.and at the same time it must separate the first names of the user.for example, the name of the user is juan miguel bautista. it will …

Member Avatar for Ancient Dragon
0
191
Member Avatar for D_switch

please help im really out of ideas. this program is a phonebook that can store unlimeted mobile numbers, landline numbers and email addresses, this program also deletes, edits,inserts and sorts and display all the records. this is what i've got so far: [CODE]# include <stdio.h> # include <conio.h> # include …

Member Avatar for WaltP
0
4K
Member Avatar for qtdinesh

[B]i need c program for [/B] [B]1.[/B] "[B]menu driven in c program using pointers[/B]. [COLOR="Red"]1.comparition of two strin , 2.length of two string, 3.reverse, 4.palindrome all without using string function" [/COLOR] [B]2.[/B] "[B]menu driven program using pointer with array[/B]. [COLOR="Red"]1.addition of two matrix, 2.subtracion of two matrix, 3.multiplication of matrix, …

Member Avatar for Ancient Dragon
-4
177
Member Avatar for Gaiety

i am clear with the concept of Array of pointers & pointer to an Array. but i wonder what is the advantage of creating a pointer to an array though the same can be done just by using twod array with row and col indexes. please some let provide me …

Member Avatar for Ancient Dragon
0
73
Member Avatar for mitesh rao

heah pls can u send me some progmmes to my email id ie...[I]<<snip>>[/I] pls

-5
72
Member Avatar for me_roy

Hi all, I am stuck here after several hours tried. Here the thing. I have txt file that contain float data (1 column and many row) such like this (4 float data): 0.799 0.851 0.926 1.000 Then i want to read it as array. My code is work until this …

Member Avatar for me_roy
0
309
Member Avatar for Conqueror07

1. When we create a text file by C by program copying it from other file the how can we change the path (by default its saved in BIN folder)? 2. How do we run other applications using C language (suppose Windows Media Player or HTML)? Thank You

Member Avatar for Ancient Dragon
-4
257
Member Avatar for abhimanipal

Hello, [code= c] main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); } [/code] The answer to this question is 4 1 and the reasoning is that the compiler finds j to be true and hence does not need to check the remaining …

Member Avatar for Ancient Dragon
0
104
Member Avatar for ithelp

Hello C experts, [code=c] main() { int i=0; int x; fork(); fork(); fork(); i++; x=&i; printf("%d %x\n",i,x); } [/code] Each child process gets its own copy of i , but why does x not print different address ?

Member Avatar for Conqueror07
0
81
Member Avatar for infrapt

I have an [B]char[/B] array i.e array={2.3,5.5,8.9} how can I typecast them so I can put them to an array of type double

Member Avatar for Ancient Dragon
0
53
Member Avatar for techno_weenie

Hello i need some help with parsing a string as i'm very new to C and only started learning it a few days ago. I wish to parse the string "Jan 15 05:46:07 gateway kernel: IN=eth0 OUT= MAC=00:80:c7:c3:c7:be:08:00:03:23:2a:a8:08:00 SRC=80.232.253.76 DST=80.234.144.54 LEN=48 TOS=0x00 PREC=0x00 TTL=108 ID=43600 DF PROTO=TCP SPT=3329 DPT=135 WINDOW=16384 …

Member Avatar for techno_weenie
0
150
Member Avatar for shaider6192
Member Avatar for shaider6192
0
82
Member Avatar for shaider6192

hello! Im making a program that makes the numbers you input be divided into diffrent denominations which is in peso. example: i input: 1500 so the output will be BILL QTY 1000 1 500 1 my problem is, after it displays the output, I want the program to ask you …

Member Avatar for Narue
0
307
Member Avatar for vidyabhat
Member Avatar for Narue
-2
70
Member Avatar for shaider6192

HI! can someone help me get the codes for this program.. Im still new to TC.. heres the criteria: 1. This program is for selling bread 2.There are 4 types of bread namely a b c d and each cost 1 2 3 4 respectively 3.each bread has a stock …

Member Avatar for shaider6192
0
136
Member Avatar for InnocentVamp

Hello folks, I have some doubt regarding the creation of header files and libraries using C. Suppose I am defining all the functionalities related to the Stack and I wan to create it as library, for eg. stack.C which will get me the object file, Stack.o in Linux OS and …

Member Avatar for Narue
0
170
Member Avatar for infrapt

Hi I am trying to read a text file which has a few lines of double values I need to go line by line and put them in several arrays ex 4.2,3.4,5.7,8.7 2.5,6.4,4.4 How can I do this in C I also need to save the values in an arrays …

Member Avatar for gerard4143
0
53
Member Avatar for bun

[I]<< Thread split from [URL="http://www.daniweb.com/forums/thread29933.html"]here[/URL] >>[/I] hello.. i did not get it the programs that u wrote it.. for my own.. im looking for the factorial of the number that we entered.. for example.. 12 the factor of this is 2 2 3..that wat i want to mean.. in wat …

Member Avatar for bun
-1
108
Member Avatar for VernonDozier

I have some code to parse POST and GET parameters passed to a CGI program written in C and I'd like to test it out. To parse GET parameters, I need to access the QUERY_STRING environment variable, so I'd like to set that environment variable to different things and see …

Member Avatar for VernonDozier
0
844
Member Avatar for johndoe444

Hi, I have this problem. If the sender sends messages consecutively, like message 1 and message 2 and at the receiver attempt is made to read each message individually, then the receiver gets the both messages as the message 1. Is there any built-in mechanism such that the receiver delivers …

Member Avatar for gerard4143
0
109
Member Avatar for naveenreddy61

the code takes each character and stores where and how many times a roman numeral appears and the assess the integer. this is my first code im posting. anything to make the code better is most welcome. roman numeral refers to M=1000 D=500 C=100 L=50 X=10 V=5 I=1 and uses …

Member Avatar for WaltP
0
962
Member Avatar for katwalatapan

Hello, While compiling my code, I'm receiving a "Data access misaligned address violation" error. I tried to find the reason for the error, but am unable to pin point the location. I am trying to manipulate the amplitude envelope of an audio file, but this error occurs when i'm trying …

Member Avatar for Salem
0
184
Member Avatar for nathanurag

[CODE=c] #include<stdio.h> #include<math.h> main() { int i=0,j,c,s[100]; double t=0; while((c=getchar())!='\n') { s[i]=c; ++i; } for(j=i;j>0;--j) { t=t+(s[i-1]*(pow(16,(4-((double)i))))); --i; } printf("%d",(int)t); return 0; } [/CODE] HI, i need to write a program that converts an hexadecimal number into integer form (for convenience i'm only considering hexadecimal no. without alphabets from a …

Member Avatar for adnan.siddique
0
124
Member Avatar for cmsc

if I have this code : [CODE] # node* search2(node **root, int val){ # # node* temp = *root; # if(temp -> value == val){ # printf("found!\n"); # printf("ang root nfaun ay nasa : %d \n", temp -> value); # printf("dapat tigil na."); # return temp; # } # # …

Member Avatar for Nick Evan
-1
96
Member Avatar for cmsc

i am making a binary search tree, but when i use some functions and return their values, i get an error when i have to print those values. i don't understand why. please help. [CODE] #include<stdio.h> #include<stdlib.h> #define N 10 typedef struct nodetag{ int value; struct nodetag *left; struct nodetag …

Member Avatar for cmsc
0
175
Member Avatar for nathanurag

[CODE=c] #include<stdio.h> void astrcat(char s[], char t[]); //to concatenate two string main() { int i=0,p=0,q=0,c; char s[100],t[100]; while((c=getchar())!='\n') s[p++]=c; while((c=getchar())!='\n') t[q++]=c; astrcat(s,t); while(s[i]!='\0') printf("%c",s[i++]); return 0; } void astrcat(char s[],char t[]) { int i, j; i = j = 0; while (s[i] != '\0') /* find end of s */ …

Member Avatar for nathanurag
0
108
Member Avatar for c0d3x

Hi, I need some assistance in how to count the number of lines in a given file. It is a small part of a homework assignment I have and I am having problems figuring it out. I am to assume that in each line there will be a maximum number …

Member Avatar for mitrmkar
0
2K
Member Avatar for Iam3R

[CODE] #define fst 1 int main() { #if( fst ==1 ) printf("FST\n"); #else printf("Dummy FST\n"); return 0; }[/CODE] if i replace the statement in line 4 with [ICODE] #if fst [/ICODE] also the code is working. can any one tell me what is the correct way , advantages and disadvantages.

Member Avatar for Dave Sinkula
0
102
Member Avatar for smbee

I am new to C programs. I have tried to write the code for game of life. I started with just the first part. But its still not done. There are some errors. could you please point out where I am wrong? [code] #include<stdio.h> #include<stdio.h> #define NUM_ROWS 100 #define NUM_COLS …

Member Avatar for smbee
-1
302
Member Avatar for markfisher

Hello everyone I have been working on generic C data structure (Doubly Linked List) and I have a question: ------ List.c ----- [code] struct node { void *data; struct node *next; struct node *prev; }; struct list { unsigned int length; struct node *head; struct node *tail; }; typedef struct …

Member Avatar for markfisher
0
160

The End.