15,552 Topics

Member Avatar for
Member Avatar for jcmoney1010

I'm able to import the file and read it, but I don't think it's saving to the structure. I want to figure out how to save it within the structure so I can search/ delete the contacts. The unfortunately lengthy code is below: #include <stdio.h> #include <string.h> #include <stdlib.h> #include …

Member Avatar for Ancient Dragon
1
190
Member Avatar for TheSmartOne1

I can't figure out why a gives a value of 0, Can anyone explain? Thanks in advance. The output for this program is 770 include<stdio.h> include<stdlib.h> int a,b; void mystery(){ while(b>0){ int a; a=a+10; b=b-1; } } int main(){ a=7; b=a; printf("%d\n",a); mystery(); printf("%d\n",a); printf("%d\n",b); system("pause") return 0; }

Member Avatar for deceptikon
0
73
Member Avatar for adlinaalbert

please help me choose an title to do a package using **binary tree** or **multiply linked** list data structure....

Member Avatar for deceptikon
1
34
Member Avatar for jcmoney1010

Alright to add the ability to import files into a phonebook app that I created, but my issue im having is when I just add a counter to loop through the function that pulls the data from the file, it prints out names many different times, in different orders. I …

Member Avatar for Ancient Dragon
0
133
Member Avatar for celina1234

I am very new to programming language and need help urgently. I am running a program which gives me one output file for every 5 min simulation. i have to copy and rename the output file in each step so that they can be used in another program . Any …

Member Avatar for Adak
0
298
Member Avatar for alaa sam

Hi everyone I'm using stat() function to get the file's attributes , but I don't know how to get the permission of it . So can anyone tell me how to find the permission of the file?? Thanks in advance

Member Avatar for alaa sam
0
822
Member Avatar for leesin

#include <stdio.h> #include <stdlib.h> int main(void) { double a = 0.0; double b = 0.0; scanf("%lf", &a); printf("\nThe first number is %f", a); getchar(); return EXIT_SUCCESS; } The question is : how can the program continually re-prompt I mean when i enter the number, and then the number i entered …

Member Avatar for Ancient Dragon
0
93
Member Avatar for noahjonesnoah
Member Avatar for Ancient Dragon
0
58
Member Avatar for Jenniferting

Credit card numbers follow certain patterns. A credit card number must have between 13 and 19 digits. It must start with for example: 4 for Visa cards 5 for Master cards 37 for American Express cards 6 for Discover cards So, this here is the code thats identify either a …

Member Avatar for Ancient Dragon
0
250
Member Avatar for syeda amna

Hi I need some good study material related to it. How can i eject my DVD ROM drive using C coding. similarly, how can i change fan speed, how can i shut down my PC using C coding. I need urgently.

Member Avatar for BobS0327
0
4K
Member Avatar for Some Dude

Alright. I am making some decent progress here. I am trying to add a toolbar to my basic text editor that I am making using an internet tutorial. Anyways the problem is that I can get the bitmaps to display but they appear to be just that... bitmaps. When I …

Member Avatar for Some Dude
0
450
Member Avatar for sujan.dasmahapa

I apologize for the inconvenience this not a Qt question. I am using a library in my Qt application which is built and generated by lex and yacc compiler. When I am calling first time the function itā€™s working fine, a good file. Next time running a bad file from …

0
61
Member Avatar for Musa_Jutt

Guys I installed "windows Vituual PC" with xp vesion in windows 7 ultimate 64 bit. Now I am not able to install c++ software in it so please tell me how to install turbo c++ in VMplayer plzzzzzzzz full detail .

Member Avatar for Ancient Dragon
0
44
Member Avatar for Fuzzies

Hello! I have an output problem with a program that I'm writing that takes a user inputed sentence and reverses the words within it. Right now the program compiles and runs without problem, but my output is different than what is intended. specifically, there is an extra newline placed after …

Member Avatar for Ancient Dragon
0
221
Member Avatar for Jenniferting

Credit card numbers follow certain patterns. A credit card number must have between 13 and 16 digits. It must start with: 4 for Visa cards 5 for Master cards 37 for American Express cards 6 for Discover cards In 1954, Hans Luhn of IBM proposed an algorithm for validating credit …

Member Avatar for pritaeas
0
654
Member Avatar for blindislands

My teacher wants me to write a function called double cos(float); to compute the cos of an angle (given in radians) using the Taylor series shown. Your function should find the value of the cos for ANY angle (preferred) or at least angles up to 2 PI (Hint: if you …

Member Avatar for blindislands
0
551
Member Avatar for VergilDevil123

typedef struct zoz { int age; int mag; int suly; } nevsor_t; int olvas(nevsor_t * pnevsor) { return scanf("%d %d %d", &pnevsor->age, &pnevsor->mag, &pnevsor->suly); } int kiir(nevsor_t nevsor) { return printf("%d year\t%d cm\t%d kg\n", nevsor.age, nevsor.mag, nevsor.suly); } int sort_age(const void *a, const void *b) { struct nevsor_t *ia = …

Member Avatar for Ancient Dragon
0
469
Member Avatar for wmarquez

Hello! I have a question that I think might be simple to answer but I haven't found any documentation anywhere to confirm my suspicions. I pasted only the relevant portions of my code below to the question that I'm asking. My program is supposed to multiply two square matrices. The …

Member Avatar for deceptikon
0
204
Member Avatar for mmathew

I need to do the following: input First and Last name Output initials. Output however many letters Input Middle name Output Full initials. then redo the process. input First and Last name Output initials. Output however many letters Input Middle name. Output Full initials. Example: Enter your first and last …

Member Avatar for Ancient Dragon
0
5K
Member Avatar for prakhs

#include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> int compare(const void * a, const void * b) { return strcmp(a, b); } struct node { char name[51]; int index; }; /* 1.Sort the Array cities (which was copy of A) and Array B2 (which was copy of B). 2.Do binary …

Member Avatar for prakhs
0
162
Member Avatar for shujat132

**My academic assignmentt ** **Please help me in coding for this assignment** In Linux Ubuntu flavor, write a program in C language to do the following tasks. 1) Use fork ( ) system call to create a child process. 2) Child process should first take student name as input and …

Member Avatar for khudayar
0
2K
Member Avatar for Asotop

Hello. I'm currently trying to split a char in MPLAB IDE, with a C compiler. We're working on a project and the only thing im missing is to split a char on the form: $GPGGA,071112.995,6023.0717,N,00520.1325,E,1,03,08.0,00110.1,M,43.8,M,,*6C Where i need to get out 071112.995,6023.0717 etc. But since I haven't had C before …

Member Avatar for deceptikon
0
82
Member Avatar for coding101

Im starting kernel programming and need info on the read and writing function to a /proc file. When a program writes to my /proc module, I need to store the contents. When I read the contents of the /proc file, it only return the most recent entry, and not the …

Member Avatar for Ancient Dragon
0
294
Member Avatar for rithish

i have a doubt in graphs whelther incident matrix and adjacency matrix r they same?????

Member Avatar for deceptikon
0
178
Member Avatar for hust921

I am trying to solve a problem 3 on project euler. For thoes who donĀ“t know the site, here is the question I am trying to solve: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? ---------------------------------------- …

Member Avatar for Adak
0
158
Member Avatar for angelo.uknown

I am new to this but i have downloaded and installed GMP library. The problem is that i have no clue on how to use it! Want to get a number larger than 18*10^18 (unsigned long long) but i dont know how! I am confused with all the mpz and …

Member Avatar for deceptikon
0
243
Member Avatar for Fuzzies

Hello! I just started learning C a few weeks ago and I'm having a problem with a program I'm writing The program has to prompt the user for a certain number of values defined as NUM_VALUES, and then calculate the mean and standard deviation of the numbers. Here's what I …

Member Avatar for Fuzzies
0
266
Member Avatar for Priya.87

can anybody plz help me with this assignment plzz plzzzz plzzzzz The purpose of this assignment is to give you practice using loop statements, if ... and if ... else statements, practice writing functions, and program planning and development. You are to write a dice game for 3 players. The …

Member Avatar for Adak
-2
108
Member Avatar for revelator

How can i extract information inside the switch statemnt to outside in c langauge.... for eg. i want the information of case 3 to display out the switch statement, then how can i do ? plz respond,,,

Member Avatar for DavidB
0
180
Member Avatar for DarkPyros

hey, this is an assignment for school, the total task of the program was to accept a string, print the an uppercase version ofthe same string, count the number of vowels in the string and finally copy the identified vowels to a seconday stringto be printed. i have pretty much …

Member Avatar for Adak
0
118

The End.