Search Results

Showing results 1 to 26 of 26
Search took 0.01 seconds.
Search: Posts Made By: Majestics ; Forum: C and child forums
Forum: C Sep 8th, 2009
Replies: 7
Views: 323
Posted By Majestics
Java is derived from C. You can use dynamic memory allocation.
Forum: C Nov 28th, 2008
Replies: 3
Views: 380
Posted By Majestics
#include <stdio.h>

int main(void)
{

int N = 0 ;
char x[100] ;
int i=0;
FILE * input ;
input = fopen("weights.txt", "r") ;
Forum: C Sep 19th, 2008
Replies: 2
Views: 1,717
Posted By Majestics
#include <alloc.h>
#include <conio.h>
#include <graphics.h>
#include <stdio.h>
#include <stdlib.h>


struct BMP
{
char Type[2]; //File type. Set to "BM".
Forum: C Sep 10th, 2008
Replies: 3
Views: 431
Posted By Majestics
void name(int a,int b,int c,int &sum,int &avg){ }

"&" mean referring a variable , this is a way by which function return more than one value.
Forum: C May 4th, 2008
Replies: 10
Views: 1,114
Posted By Majestics
Example is this

char arr[100],i=0;

while((arr[i]=getchar())!='\n')
i++;

so it will take any number of character from 0 to max size until enter is not encountered

but in integer i...
Forum: C May 4th, 2008
Replies: 10
Views: 1,114
Posted By Majestics
Actually the question is that i want to get a int array but dont specify how much i need in programme , like in getchar function can takes 0 to max size of an array , can i do it with int .
Forum: C May 1st, 2008
Replies: 10
Views: 1,114
Posted By Majestics
Is there is any function through which i can get specific number of integer like we do through getchar() funtion .I AM USING TURBO C 3.0.HELP WILL BE APPRECIATED.
Forum: C Apr 2nd, 2008
Replies: 4
Views: 508
Posted By Majestics
For calling print input and print area you need one int and two double .

Syntax will be like this

printarea(i,j,k); //Where i is taken as int j and k are taken as double
Forum: C Apr 2nd, 2008
Replies: 5
Views: 639
Posted By Majestics
http://www.cprogramming.com/tutorial/cfileio.html

Read It .It will clear every thing.
Forum: C Apr 2nd, 2008
Replies: 6
Views: 805
Posted By Majestics
printf("%c%c",s[0],s[1]);

It will print only first two characters.
Forum: C Apr 2nd, 2008
Replies: 5
Views: 3,898
Posted By Majestics
sorry it is if(check>19)
Forum: C Apr 2nd, 2008
Replies: 5
Views: 3,898
Posted By Majestics
for(i=0; i<arry_size; i++)
{
int check=rand()4%20;
if(check!=19)
nums[i] = check;
}
I dont got your point clearly. May be it is helpful to you.
Forum: C Apr 2nd, 2008
Replies: 12
Views: 2,341
Posted By Majestics
Only help No homeworks doing forum.
Forum: C Apr 2nd, 2008
Replies: 5
Views: 1,153
Posted By Majestics
Forum: C Mar 31st, 2008
Replies: 2
Views: 412
Posted By Majestics
No main function , If you don't write main function then how can you use your program.Complete your main function then this program will start working.
Forum: C Mar 31st, 2008
Replies: 5
Views: 1,153
Posted By Majestics
Is there is any way to copy out put in graphics into a paint file(bmp)?:)
Forum: C Mar 14th, 2008
Replies: 3
Views: 563
Posted By Majestics
first Open your comments , because you prototype file name char name all these are closed in the comments symbol , don't use void inside main for calling a function just write the name of function...
Forum: C Mar 14th, 2008
Replies: 3
Views: 563
Posted By Majestics
One of the main problem is you are using constant more than int range , use float or long for it

float matric;

Or

long matric;
Forum: C Mar 12th, 2008
Replies: 4
Views: 1,711
Posted By Majestics
Forum: C Mar 12th, 2008
Replies: 4
Views: 1,711
Posted By Majestics
Instead of intilaizing to zero use static before int.

LIKE

static int g[2];
Forum: C Mar 12th, 2008
Replies: 4
Solved: Blinking words
Views: 1,505
Posted By Majestics
I have a string , i want to give it a blink effect ... is there any specific function for it .
Forum: C Mar 11th, 2008
Replies: 9
Views: 913
Posted By Majestics
Well......... I know its a mistake but i want her to study these things , every time u cannot write what is going on and what is not , and if a person use 1% of his/her brain he/she can know what...
Forum: C Mar 11th, 2008
Replies: 9
Views: 913
Posted By Majestics
I have given this program only to develop your logic ,it is not a standard form .
Forum: C Mar 10th, 2008
Replies: 9
Views: 913
Posted By Majestics
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#define n 4

void main()
{
//variables

float table[n];
Forum: C Nov 9th, 2007
Replies: 1
Solved: How......
Views: 496
Posted By Majestics
Can Any One Tell Me How To Handle Registers In C ,while We Are Dealing With Mouse Handling ... Can Any One Explain With Some Example.
Forum: C Aug 26th, 2007
Replies: 1
Views: 991
Posted By Majestics
How can i Configure Mouse in C:-/
Showing results 1 to 26 of 26

 


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

©2003 - 2009 DaniWeb® LLC