15,540 Topics

Member Avatar for
Member Avatar for mk.hashmie

I have to make a project, where the user can see the student's fee records. He can also modify, delete and add a new record. But i am getting problem while running it. Anyone can please help me :( here is my program #include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> int main() { …

Member Avatar for DeanMSands3
0
149
Member Avatar for mk.hashmie

if(strcmp(s.name, stdname)==0) is this statment is correct? i am having an error while executing this statment.. i have givn its headerfile

Member Avatar for jumbowat
0
74
Member Avatar for manojreddy1710

I have to parse different fields of PAT table in this file... the file looks like this in hex editor... 47 40 00 10 00 00 B0 0D 00 00 C3 00 00 00 01 E0 21 63 0D 38 1E ...... ....... my code is [CODE] /*parse1.c*/ [B][COLOR="Green"] #include …

Member Avatar for manojreddy1710
0
568
Member Avatar for vissure

How to delete a node in a Singly Linked List using a pointer that points to the node? (Assume that you cannot traverse the list to find the previous node) -- With Regards Vishnu

Member Avatar for Sandeep Shetty
0
275
Member Avatar for ram619

The output of this code is "lice ice ce e". Seems to be string array is acting like a circular array. But how is it possible ???? [CODE=c]#include<stdio.h> #include<conio.h> void main() { int i,n; char *x="Alice"; clrscr(); n=strlen(x); *x=x[n]; for(i=0;i<n;i++) { printf("%s ",x); x++; } getch(); }[/CODE]

Member Avatar for ram619
0
98
Member Avatar for vedro-compota

Hi there) Guys - if anybody know about a good articles (or something like that - what will be usefull to read) on the topic "[B]file system driver[/B] creation -[B] C language[/B]" - please give link or advice). I need something not too sophisticate for begining. big thanks in advance)

Member Avatar for vedro-compota
0
186
Member Avatar for babydeluxe

I'm a beginner to C and programming in general, so I have a question concerning an issue with my code. I want to be able to add binary numbers (represented as strings) taken from the command line. Currently, if I add the strings '1010' to '1101', my program returns '0111' …

Member Avatar for WaltP
0
1K
Member Avatar for ram619

Why Does this code Leads to Infinite Loop????? [CODE=c]#include<stdio.h> #include<conio.h> int reverse(int); void main() { int no=5; reverse(no); getch(); } int reverse(int no) { if(no==0) { return 0; } else { printf("%d",no); } reverse(no--); }[/CODE]

Member Avatar for ram619
0
94
Member Avatar for ram619

Could anyone please tell me whats happenning in line number 10 and 12. The output of this code is 2 and 0. [CODE=c]#include<stdio.h> #include<conio.h> void main() { int arr[3]={2,3,4}; char *p; clrscr(); p=arr; p=(char*)((int*)(p)); printf("%d\n",*p); p=(int*)(p+1); printf("%d",*p); getch(); }[/CODE]

Member Avatar for ram619
0
103
Member Avatar for lscamaro

I'm a college student learning how to program in C. We recently got an assignment to transpose a list of names. We have to read in from a file a list of names and print them out and write to a file with the names going downwards. I'm not asking …

Member Avatar for WaltP
0
120
Member Avatar for andrew1532

I have written a code to be able to produce an image where i can choose a background colour and then draw a line of chosen colour on top. The problem I am having is that I can't get the program to be able to produce vertical and horizontal lines …

Member Avatar for nezachem
0
183
Member Avatar for ram619

The result of this code is 65535 But I believe that for && both sides must hold true (rather one side being true is enough for ||) so how come the result is 65535 ????? when after 5++ the first condition becomes false ????? Thanks in advance [CODE=c]#include<stdio.h> #include<conio.h> void …

Member Avatar for ram619
0
119
Member Avatar for arunsolo1984

#include<stdio.h> # define SQ(r) r * r main() { int x = 2; int i = SQ(++x); printf("%d\n" ,i); } In the above code, how the result will be 16. If i give r * r * r, the result will be 80. how can it be possible. can anyone …

Member Avatar for deceptikon
0
106
Member Avatar for ryanwebber

Hi i am requiring some assistance on how to create a converter using the xcode, if someone could please provide some suitable material, books, links to relevant websites etc on how this could be done it would be very much appreciated. Warm regards Ryan

Member Avatar for ryanwebber
0
99
Member Avatar for Aphrite

I got an assignment to create a program to sort 10 students' data by grade (and if they have the same grade sort by name) using selection sort only(can't use any other method) in an ascending order. My problem is I can sort their grades using selection just fine but …

Member Avatar for BobS0327
0
183
Member Avatar for sharathg.satya
Member Avatar for DeanMSands3
0
163
Member Avatar for swissknife007

I am a beginner to computer graphics and I have to add animations to the image of my national flag which look like this. I have designed the flag alright.But I don't know what kinds of animations are possible and how. Could someone please guide me how to add animations …

Member Avatar for DeanMSands3
0
832
Member Avatar for Nikhar

Ok... i ran my quicksort program on my college lab's machine (i dunno its config) and it took 4 seconds on avg to sort 1 million elements. I ran it on my lappy (4 gb RAM, Intel Core i5-2410M Processor (2.3 GHz)) and it took 0.83 seconds to run the …

Member Avatar for deceptikon
0
111
Member Avatar for northrox
Member Avatar for DarkPyros

This code is supposed to take two numbers, and multiply them, divide them and print out the product and quotient. ive checked it over numerous times and cannot figure out where my error is, when i type in a real number and 0, the result screen shuts off prematurely..can anyone …

Member Avatar for Moschops
0
291
Member Avatar for mrprassad

[CODE] main() { char *p="dcis"; while(*p++!='\0'); printf("%s",p); } [/CODE] Why this is printing %s in my unix box with gcc 4.6.1 ?

Member Avatar for Moschops
0
187
Member Avatar for CE90

Hello every one...I have a project in which I must visualize different kinds of sorts in C by using GTK+ library. I mean it must show the numbers moving and getting sorted! I don't have any idea how to start and how to make the numbers move! I`ll really appreciate …

Member Avatar for Mouche
0
164
Member Avatar for gourav1

[CODE]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include<dos.h> #include<math.h> void midline(int,int,int,int); void main(void) { int gdriver = DETECT, gmode, errorcode; int xmax, ymax; initgraph(&gdriver, &gmode, ""); errorcode = graphresult(); if (errorcode != grOk) { printf("Graphics error: %s\n", grapherrormsg(errorcode)); printf("Press any key to halt:"); getch(); exit(1); } setcolor(getmaxcolor()); int x1,y1,x2,y2; …

Member Avatar for swissknife007
0
146
Member Avatar for Lillylionhert

I was just wandering if there was a way to put information in to a string but increment a section of the text when putting it in the string. To put it simply: [CODE]string="to be put in string[this is to be incremented]";[/CODE] I was wandering if there is a way …

Member Avatar for Lillylionhert
0
130
Member Avatar for domatessuyu

Hey, i want to enter a number by user. [CODE]printf("Enter a number: "); scanf("%d",&number);[/CODE] but,user enter text.i mean: [B]Enter a number:[/B] One Now,i want to convert this text to number. [I]I hope,i tell my problem.Sorry my bad english.[/I]

Member Avatar for domatessuyu
0
163
Member Avatar for Lillylionhert
0
114
Member Avatar for gourav1

[CODE]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include<dos.h> #include<math.h> union REGS in,out; void hide_mouse(); void show_mouse(); void detect_mouse(); void detect(int*,int*,int*); void main(void) { int gdriver = DETECT, gmode, errorcode; int xmax, ymax; initgraph(&gdriver, &gmode, ""); errorcode = graphresult(); if (errorcode != grOk) { printf("Graphics error: %s\n", grapherrormsg(errorcode)); printf("Press any …

Member Avatar for DeanMSands3
0
178
Member Avatar for vedro-compota

Hi there)) I know that one of the ways to pass variables values into thread -is to create a special structure which includes all needed parameters/ But what about getting values from thread? Is it any way to get value after modification from the thread ? I know only one …

Member Avatar for vedro-compota
0
219
Member Avatar for history

********* ****s**** ***sss*** **sssss** *sssssss* Where "s" means space.. Need a simple syntax coz I am a new student. Help me fast. I am totally stucked here......... Thanks and best regards, Lost history:)

Member Avatar for peter_budo
-1
79
Member Avatar for mcddewitt

Hello. I am having trouble figuring out how to return the sum. I have 2 files p1.c and p2.c p1.c contains my main which calls createAndCOunt like this: [CODE] printf("The value is %d\n",createAndCount());[/CODE] p1.c also contains count which is called by createAndCOunt count is: [CODE]int count (int* array) { int …

Member Avatar for subith86
0
222

The End.