- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- i like the face new & hard challenges n the programming world.
66 Posted Topics
Re: Thanking you guys,i didnt knew that concept. | |
Re: You are required to check whether the compiler is installed in c drive or not if it is installed in other drive u must specify the program as for eg. it is installed in d drive [code] d:\\tc\\bgi [/code] and also change the path in the compilers directory | |
Re: It is a very nice good looking analog clock with the different colours. | |
Re: If you full code in correct format you can add in the code snippets rather posting on the forum Thanks!! | |
Re: Use code tags to post your code. instead of including myfile.h you must include myfile.c | |
Re: @dileepkumar use the code tags. and avoid the use of goto in the program. | |
Re: >I am all confused, I don't where to start. This is my first programming class and i need some help please. Before writing the code you must make the algorithm of the program you require which includes writing the steps for solving a particular problem.This will help you while writing … | |
my computer sometimes on start shows the blue screen error with some error message as physical memory dump i am not able to understand how to sort out the problem..please help to fix the problem.. thanx in advane.. | |
Re: This isn't the place where you get the ready made programs but for asking the queries. | |
Re: it is used to compare the string letter by letter..if they are same then it return the value zero otherwise the difference in the ascii values in the first letter of the two string which are different. | |
Re: i think u must reinstall with the setup.. if the same problem comes then that might me corrupted.so then try to install with the new setup. | |
Program is of the calculator which the usual thing for the operation. It has been totally implemented in the C language with the graphics and mouse functions included in it. Its not scientific but just a usual one.. | |
Re: the meaning of [CODE] sum+=i; [/CODE] is same as the [CODE] sum=sum+i; [/CODE] | |
I am getting problem to work with the structures..I am works on DBMS project in c languge . I wanted to use multiple structures without the use of the pointers but unable to use it as: [CODE] struct File1 { ----- ----- }f1; struct FILE { --- --- struct File1 … | |
Re: the programming is all about implementing the thoughts you have in your mind..i think u should try first... | |
Re: It will better for the program if the username and password is defined by the user itself.. | |
Re: You can also see directories in the compiler and check the path in which your compiler is stored | |
Re: [QUOTE=CoolAtt;783694]does fgets() gets aware when a file is updated ? will clearerr( fp ) tell fgets() that EOF has not been reached?[/QUOTE] If the above method is not working then you must go for closing and reopening of the file when it gets updated | |
Re: It will good that i yourself generate the problem and try to solve it instead of searching it. | |
| |
Re: I have a small example how linking is to be done. Suppose i have two program named imp.c and imp1.c imp.c contains [code]void arr() { printf("hello ajay"); } [/code] imp1.c contains [code] void art() { printf("My name is ajay"); } [/code] then linking of above two programs with the program … | |
Re: @ sotiris25s You need to go basics throughly. | |
Re: You can enter the first mobile number [code] scanf("%d",&mobileno[0]; [/code] rest all the numbers will be as [code] for(i=0;i<n;i++) mobileno[i+1]=mobile[i]+1; [/code] | |
Re: [QUOTE=Emma1;784696]Hello, Out of fgets() and gets() which function is safe to use and why? Thanks[/QUOTE] It depends where you are using : fgets reads characters from stream into the string s. It stops when it reads either n - 1 characters or a newline character, whichever comes first. gets collects … | |
Re: Some of your header files are missing .h extensions | |
Re: your corrected code id [CODE]#include<stdio.h> #include<conio.h> #define MAXSTUDENTS 15 #define EXAMS 4 int main(void){ char name[20]; int grade[MAXSTUDENTS][EXAMS],total=0,row,col; float ave; clrscr(); for(row=0;row<MAXSTUDENTS;row++){ printf("\nEnter First name : "); scanf("%s",name); for(col=0;col<EXAMS;col++){ printf("\nExam score : "); scanf("%d",&grade); total+=grade[row][col]; } ave=total/EXAMS; } if (ave>91) printf("A"); if (ave>=81 && ave<=90) printf("B"); if (ave>=71 && ave<=80) … | |
Re: Thats the simplest method as stated niek_e And after that it all depends that on tricks you apply to solve. | |
![]() | Re: while the file is being read if in between it is closed then how it will be able to read and perform other functions. I think you should use fread() function to read the files. |
| |
Re: [URL="http://www.velocityreviews.com/forums/t149681-benefits-of-inner-classes.html"]http://www.velocityreviews.com/forums/t149681-benefits-of-inner-classes.html[/URL] | |
Re: [QUOTE=taichou;774272]help me to find out how to make a program about tictactoe game...its really hard..[B].im hoping for an immediate answer[/B]..thanks>>by the way this is only one of my problems to be finished...[/QUOTE] What code or method you tried until now?? | |
Re: You can use FILE structure to store your records by writing in the file. Read the file to print the output . | |
Re: Is it the programming question or mathematical question?? | |
Re: [URL="http://aelinik.free.fr/c/ch01.htm"]http://aelinik.free.fr/c/ch01.htm[/URL] | |
Re: [QUOTE=taichou;774274]how can i arranged the input words alphabetically, like in the dictionary..[B][B][B]please help me....please!!!![/B][/B][/B][/QUOTE] The simple program on alphabetical sorting is: [CODE] #include<stdio.h> #include<conio.h> #include<string.h> void main() { clrscr(); char a[6][7]; int i,j,p; char c[10]; printf("enter the name:"); for(i=0;i<6;i++) scanf("%s",&a[i]); printf("the names entered are:"); for(i=0;i<6;i++) { printf("%s",a[i]); printf("\n"); } for(i=0;i<6;i++) … | |
Re: there are many registers available in the compiler into which you can store directly your numbers. | |
Re: [QUOTE=Somali Rathore;781103]A string is input which is both in uppercase & lowercase letters. How can I arrange the string so that all lowercase letters are in one side and uppercase letters are in another side.[/QUOTE] Upper case characters have the ascii value starting from 65-90 and the lower case characters … | |
Re: good method for swapping the numbers. | |
Re: You can make menu using [CODE] switch(label) { case label1: ....... .... case label2: ....... ..... case... .. .. .. } [/CODE] | |
Re: You only have to take the first step then in between if there is problem you can get solved here. | |
Re: There are three main errors: 1. [QUOTE] (*array_of_strings) = realloc((*array_of_strings), loc_nr_of_strings * sizeof(char*)); [/QUOTE]this cannot convert void into char therefore the modified one is [CODE] (**array_of_strings) = realloc((*array_of_strings), loc_nr_of_strings * sizeof(char*)); [/CODE] 2.similar to first error [QUOTE] char *parse_this_copy = calloc(sizeof(char), strlen(parse_this) + 1); [/QUOTE] should be [CODE] char *parse_this_copy … | |
Re: main() function cannot be called again and again. Instead you can use another function in place of it or use [CODE] goto label; [/CODE] | |
Re: [QUOTE=Luckychap;756654]I have no idea why his algorithm had taken variable 'hold' as double instead of int?[/QUOTE] Instead of float,many times double is used and here hold is the variable of type double. | |
Re: A simple program on random generation of numbers [CODE] #include <stdlib.h> #include <stdio.h> #include <values.h> #include <time.h> int main(void) { int i,j; for(j=0;j<150;j++) { // randomize(); for(i=0;i<200;i++) printf("%d\n", rand() % MAXINT); } return 0; }[/CODE] | |
Re: I think you must try the problem and ask for any query instead of listing the problem in the forum.. | |
Re: In order to delete a file you can use the function [QUOTE] remove("filename");[/QUOTE] instead of writing the whole program. | |
Re: check the format of the fwrite because you have written incorrect format of fwrite() | |
Re: strstr is used to find the occurece of first string into the another string which is already defined in the library function. if "very" is not there in your string you can simply insert in place where you want. | |
Re: clreol : clears all characters from the current position to the end of line within the current text window,without moving the cursor. delline:deletes the line containing the cursor and moves all lines below it one line up. it depends on the compiler you use.. | |
Re: There are lots of materials available on internet for a person to learning the basics in c |
The End.