Search Results

Showing results 1 to 40 of 82
Search took 0.01 seconds.
Search: Posts Made By: ajay.krish123 ; Forum: C and child forums
Forum: C Sep 22nd, 2009
Replies: 6
Views: 10,516
Posted By ajay.krish123
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

d:\\tc\\bgi
...
Forum: C Sep 22nd, 2009
Replies: 5
Views: 728
Posted By ajay.krish123
All the new members must read the instructions before posting your queries.
This is the place where people get technical assistance.
Forum: C Sep 10th, 2009
Replies: 2
Views: 555
Posted By ajay.krish123
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.
Forum: C Sep 10th, 2009
Replies: 20
Views: 902
Posted By ajay.krish123
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...
Forum: C Jul 3rd, 2009
Replies: 11
Views: 618
Posted By ajay.krish123
the meaning of

sum+=i;

is same as the

sum=sum+i;
Forum: C Jul 3rd, 2009
Replies: 1
Views: 220
Posted By ajay.krish123
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:

struct...
Forum: C Apr 10th, 2009
Replies: 2
Views: 301
Posted By ajay.krish123
the programming is all about implementing the thoughts you have in your mind..i think u should try first...
Forum: C Feb 3rd, 2009
Replies: 23
Views: 1,083
Posted By ajay.krish123
It will good that i yourself generate the problem and try to solve it instead of searching it.
Forum: C Jan 24th, 2009
Replies: 7
Views: 958
Posted By ajay.krish123
>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...
Forum: C Jan 24th, 2009
Replies: 3
Views: 347
Posted By ajay.krish123
see read the the link:
http://www.daniweb.com/forums/thread170561.html
Forum: C Jan 23rd, 2009
Replies: 9
Views: 446
Posted By ajay.krish123
@ sotiris25s
You need to go basics throughly.
Forum: C Jan 23rd, 2009
Replies: 5
Views: 762
Posted By ajay.krish123
Use code tags to post your code.
instead of including myfile.h you must include myfile.c
Forum: C Jan 23rd, 2009
Replies: 3
Views: 347
Posted By ajay.krish123
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
void arr()
{
printf("hello ajay");
}

imp1.c contains
Forum: C Jan 22nd, 2009
Replies: 3
Views: 344
Posted By ajay.krish123
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...
Forum: C Jan 22nd, 2009
Replies: 11
Views: 735
Posted By ajay.krish123
Forum: C Jan 21st, 2009
Replies: 20
Views: 1,180
Posted By ajay.krish123
i also had the same problem
now i was wrong ok. Code should include

for(col=0;col<EXAMS;col++){
printf("\nExam score : ");
scanf("%d",&grade[row][col]);

Thanks Murtan for correcting me.
Forum: C Jan 21st, 2009
Replies: 20
Views: 1,180
Posted By ajay.krish123
I think i have only corrected the code which was posted .I didn't post the code required which includes the storing the names and numbers of the students so you need not worry about that.
Forum: C Jan 21st, 2009
Replies: 20
Views: 1,180
Posted By ajay.krish123
The later code posted had some changes to that posted before.The output had 15 grades as required.
Please feel free to check the code.
Forum: C Jan 21st, 2009
Replies: 20
Views: 1,180
Posted By ajay.krish123
The above code was executed succesfully.
Forum: C Jan 21st, 2009
Replies: 20
Views: 1,180
Posted By ajay.krish123
Just one mistake i forgot to correct was there after removal of the code is

#include<stdio.h>
#include<conio.h>
#define MAXSTUDENTS 15
#define EXAMS 4

int main(void){
char name[20];
int...
Forum: C Jan 21st, 2009
Replies: 20
Views: 1,180
Posted By ajay.krish123
for(row=0;row<MAXSTUDENTS;row++){
printf("\nEnter First name : ");
scanf("%s",name);

As this works in single dimension similarly the below code will work in the two...
Forum: C Jan 21st, 2009
Replies: 4
Views: 516
Posted By ajay.krish123
Thats the simplest method as stated niek_e
And after that it all depends that on tricks you apply to solve.
Forum: C Jan 21st, 2009
Replies: 20
Views: 1,180
Posted By ajay.krish123
I have made some corrections in the beginning
int grade[MAXSTUDENTS][EXAMS],total=0,row,col;
Forum: C Jan 21st, 2009
Replies: 10
Views: 803
Posted By ajay.krish123
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.
Forum: C Jan 21st, 2009
Replies: 20
Views: 1,180
Posted By ajay.krish123
I have stated it already in my code
Forum: C Jan 21st, 2009
Replies: 11
Views: 735
Posted By ajay.krish123
You can enter the first mobile number

scanf("%d",&mobileno[0];

rest all the numbers will be as

for(i=0;i<n;i++)
mobileno[i+1]=mobile[i]+1;
Forum: C Jan 21st, 2009
Replies: 20
Views: 1,180
Posted By ajay.krish123
your corrected code id
#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;
Forum: C Jan 21st, 2009
Replies: 3
Views: 484
Posted By ajay.krish123
What code or method you tried until now??
Forum: C Jan 21st, 2009
Replies: 4
Views: 397
Posted By ajay.krish123
Yes Syntax error in if statement.
Forum: C Jan 21st, 2009
Replies: 14
Views: 1,224
Posted By ajay.krish123
If the above method is not working then you must go for closing and reopening of the file when it gets updated
Forum: C Jan 19th, 2009
Replies: 3
Views: 1,010
Posted By ajay.krish123
You can use FILE structure to store your records by writing in the file.
Read the file to print the output .
Forum: C Jan 19th, 2009
Replies: 5
Views: 817
Posted By ajay.krish123
Is it the programming question or mathematical question??
Forum: C Jan 19th, 2009
Replies: 2
Views: 353
Posted By ajay.krish123
http://aelinik.free.fr/c/ch01.htm
Forum: C Jan 19th, 2009
Replies: 13
Views: 12,474
Posted By ajay.krish123
@dileepkumar
use the code tags.
and avoid the use of goto in the program.
Forum: C Jan 19th, 2009
Replies: 9
Views: 630
Posted By ajay.krish123
thank you for correcting me.
we can use

int main()
{
----
----
return(0);
}
Forum: C Jan 18th, 2009
Replies: 7
Views: 438
Posted By ajay.krish123
yes it is possible to arrange in one array .
Forum: C Jan 18th, 2009
Replies: 6
Views: 1,323
Posted By ajay.krish123
good method for swapping the numbers.
Forum: C Jan 18th, 2009
Replies: 7
Views: 438
Posted By ajay.krish123
Upper case characters have the ascii value starting from 65-90 and the lower case characters have the ascii value starting from 97-122.

So i can compare the characters using ascii value and...
Forum: C Jan 18th, 2009
Replies: 9
Views: 630
Posted By ajay.krish123
The simple program on alphabetical sorting is:

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
clrscr();
char a[6][7];
int i,j,p;
Forum: C Jan 18th, 2009
Replies: 6
Views: 572
Posted By ajay.krish123
there are many registers available in the compiler into which you can store directly your numbers.
Showing results 1 to 40 of 82

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC