15,539 Topics

Member Avatar for
Member Avatar for bittu1028

hello i m doing c project on digital clock. i dont where do i start from i m not so confident

Member Avatar for Ancient Dragon
-1
91
Member Avatar for d34dw4rd

Hi I'm writing a menu driven array with 50 randomly generated integers. In the program I am suppose to search for numbers in the array and print the number and location of the number in the array. I have most of the program finished, however when I input an incorrect …

Member Avatar for abhimanipal
0
110
Member Avatar for ruigrandaorocha

Hi, so i was told that i could use the scanf() function, validating it with a space, instead of an "ENTER". [CODE] scanf ( "% [^] d", & a); [/CODE] The person told me to use that. I couldn't get it working. Do you know what is wrong? Extra info: …

Member Avatar for ruigrandaorocha
0
187
Member Avatar for HiHe
Member Avatar for tskellyfla

Hi, I'm a student just learning c. I have an assignment that is killing me. I have to write a code that will produce the angle of a clocks hands. This is my third assignment I have done the 'hello' and calculated miles to feet and converted fahrenheit to celsius …

Member Avatar for jonsca
0
189
Member Avatar for ahmed hefnawy

[CODE]#include"stdio.h" #include"string.h" #include"math.h" #include"stdlib.h" void convlute(char s1[20],char s2[20]) { int i,p=0,t=0; char s3[20]; for(i=0;i<20;i++) { if(s1[i]!='+'&&s1[i]!='-'&&s1[i]!='*'&&s1[i]!='/'&&s1[i]!='('&&s1[i]!=')') { s2[p]=s1[i]; p++; } else if(s1[i]='(') { t++; } else if(s1[i]=='+'||s1[i]=='-') { if(s3[t]=='*'||s3[t]=='/') { s2[p]=s3[t]; s3[t]=s1[i]; t++; p++; } else { s3[t]=s1[i]; t++; } } else if(s1[i]=='*'||s1[i]=='/') { s2[p]=s1[i]; p++; } else if(s1[i]==')') { …

Member Avatar for abhimanipal
0
189
Member Avatar for tomtetlaw
0
51
Member Avatar for mariosbikos

hi i want to know how exactly can i use time.h and rand() if i want to print every time a pair of numbers but the same pair will be printed only once for example: 2 2 2 3 1 4 3 5 2 2<----- not to happen(instead get a …

Member Avatar for Adak
0
99
Member Avatar for Griff0527

I'm new to C Programming ( 6th week of an 8 week course ) and I am working on user defined structures. I have created a structure to store data received from a file and three of the four sub functions planned: open the file, store the data in the …

Member Avatar for Griff0527
0
8K
Member Avatar for rlhh

I'm trying to print an array of 3x3 and placing random numbers within them that has no repetition. I think what I did was right but there just isn't any output. I know I can easily get the answer somewhere but I would like to know what is wrong with …

Member Avatar for abhimanipal
0
129
Member Avatar for manutd4life

here's my question: write a program that asks the user to type the value of N and writes this picture : N=1 * N=2 ** * N=3 *** ** * here's my work: [code=c]#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int numOfStars = 0; int count = …

Member Avatar for manutd4life
0
167
Member Avatar for lionaneesh

Sir/Maam, I am a newbie programmer in C and learning C since 6 months and am looking forward to learn Socket programming in C . I have some knowledge about TCP/IP and OSI model. Please suggest me some simple links and ebooks . Thanks.

Member Avatar for jephthah
0
141
Member Avatar for idlackage

The number I'm looking for is valid when it's positive, and nine digits. I used ( (value >= 100000000) && (value <= 999999999) ) first, which worked okay, but did not account for leading zeroes. How do I validate a nine digit number, using only math and no functions, with …

Member Avatar for jephthah
0
126
Member Avatar for mtech91

/*Hello, I am to create a program that gets a character and if it is uppercase, convert it to lowercase, if it is numeric print an error. I wrote the following code but my problem is that when I ask the user if he/she would like to quit, and I …

Member Avatar for Fbody
0
257
Member Avatar for arvin2006

hello there everyone!! is there anyone who can help me to start creating an operating system. i don't have any idea on to start. i understand c language, but i dont have enough knowledge for such process. all i need is the simple concept or the simple/basic code for creating …

Member Avatar for maddy10988
1
247
Member Avatar for yunmin

for the zigbee in c language, after i sent the data to router, what coding can i use to get the node id or node address of end device? anyone know the answer?? pls sent to my hotmail.. thk [I]<<snip>>[/I]

Member Avatar for min467200
-1
52
Member Avatar for mariosbikos

[CODE]#include <stdlib.h> #include <stdio.h> #include <time.h> #define MAX_ROWS 10 #define MAX_COLS 10 void sin1(char *map); int main(void) { system("chcp 1253 >nul "); FILE *fileptr; char myColchar,apantisi,map[MAX_ROWS][MAX_COLS]; int apotelesma,myColnum=1,myrow=1,k,a,l,c,row, col; char r,fileRow[MAX_COLS + 2]; // account for newline and NULL printf("dose tin diataksi me ton arithmo pou epithymeis(1/2): \n"); scanf("%d",&k);//edo tha …

Member Avatar for mariosbikos
0
266
Member Avatar for SHENGTON

Good day DaniWeb experts. This is my first post here and hope you can help me with my problem. I'm a noob with Borand C++. I see a tutorial here "[url=http://www.dreamincode.net/forums/showtopic37428.htm]Converting and Evaluating Infix, Postfix and Prefix Expressions in C[/url]". I copied the code and run it in my Borland …

Member Avatar for vsiddharthv
0
899
Member Avatar for Gordon209816

Im having a few problems with completeing a adress book program in c (not c++ jus regular c), it requires a minimun of 5 functions so i have decided to use add, search, veiw now in order to complete i wud like to keep the add function but make a …

Member Avatar for Adak
0
116
Member Avatar for Xufyan

how to print the min value from an array ? i just understand the logic of printing max value, i tried so much to print the min but didn't find any clue... here is the program for max value: [CODE] int main(void) { int num[5]; int i,max=0; for (i=0;i<5;i++) { …

Member Avatar for jephthah
0
136
Member Avatar for tcstom

I have some data in the memory which is pointed to by a pointer (ptr2data), how do i pass this data to a function which accepts unsigned long/DWORD data types? [code] unsigned long* ptr2data; DWORD temp; ptr2data = (unsigned long*)&SomeArrayOfData[4]; temp = (DWORD) tempSerNum; AddDevice(7, temp); [/code] The above code …

Member Avatar for tcstom
0
137
Member Avatar for mystb

Hi everyone, I'm trying to code a program that uses RSA to encrypt your message. I assume you know it but if you don't know let me explain simply: [QUOTE]Your enter a word (actually it is a sentence but for now a word) then program will convert letters to numbers …

Member Avatar for mystb
0
270
Member Avatar for Xufyan

Please see this program: [CODE]float area(float); void main(void) { float radius; printf ("Enter Radius"); scanf ("%d",&radius); printf ("Area is %f",area(radius)); } float area (float rad) { return (4*3.142*rad*rad); }[/CODE] please explain the above program, there no value has been assigned for [iCODE]rad[/iCODE] then what does it mean ? why it …

Member Avatar for Sodabread
0
100
Member Avatar for bperiod

[Linker error] undefined reference to `__cpu_features_init' comes to [CODE]#include <stdio.h> int main(){ char c; printf("Hello World!"); scanf("%c", &c); } [/CODE] I don't think that it's code problem. What can I do? (Dev C++ newest version) (I tried reinstalling DEV C++)

Member Avatar for Fbody
0
807
Member Avatar for ilkeamasya

As you see at below I used "-1" as my sentinel value but my program wants the other 6 values i asked for in scanf too. How can i solve this problem? I just want the user to enter -1 and exit my loop. I would greatly appreciate for your …

Member Avatar for ilkeamasya
0
245
Member Avatar for ilkeamasya

Hello, there. I'm trying to write a program which reads student information from keyboard and does some calculations. I've just started it and I dont know much about this "Struct" topic. As far as I know, I've tried to do something and here is the result. [CODE]#include <stdio.h> #define N …

Member Avatar for ilkeamasya
0
246
Member Avatar for vinians

Hi Im new to this comunity and Im in throuble with C heheh. My problem is that: Im using LUA to create scripting capabilities do my software in C. So, I ve created a file called script.c to suport all script code of my project. See: [B]script.c [/B](some lines) [code] …

Member Avatar for vinians
0
97
Member Avatar for Paulo Julio

Need help for simple program, don't have a clue about C. Please, can you help me? I have 3 errors - Undefined symbol i - Undefined symbol y and - Compound statement missing See the program bellow: [CODE]#include<stdio.h> #include<conio.h> #include <math.h> void main( ) { float a, b, c,x3; float …

Member Avatar for jephthah
-3
114
Member Avatar for COKEDUDE

I have 3 files. variables.h, variables.c, and dictionary_test.c. How would I use my variables.c to get information from variables.h and dictionary_test.c? I'm not supposed to touch the variables.h and dictionary_test.c. I gotta do all the work in variables.c. This is the variables.h. [CODE]#define MAX_VARIABLE_LENGTH 15 /* Set the variable with …

Member Avatar for COKEDUDE
0
135
Member Avatar for coconauts

how do i get the child id without calling wait? is there a way to put wait information back so another waitpid can get it...? [CODE] void sigchld_handler(int signo) { pid_t p = wait(NULL); ... } [/CODE]

Member Avatar for Salem
0
105

The End.