Forum: C Sep 8th, 2009 |
| Replies: 7 Views: 323 Java is derived from C. You can use dynamic memory allocation. |
Forum: C Nov 28th, 2008 |
| Replies: 3 Views: 380 #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 #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 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 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 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 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 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 http://www.cprogramming.com/tutorial/cfileio.html
Read It .It will clear every thing. |
Forum: C Apr 2nd, 2008 |
| Replies: 6 Views: 805 printf("%c%c",s[0],s[1]);
It will print only first two characters. |
Forum: C Apr 2nd, 2008 |
| Replies: 5 Views: 3,898 |
Forum: C Apr 2nd, 2008 |
| Replies: 5 Views: 3,898 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 Only help No homeworks doing forum. |
Forum: C Apr 2nd, 2008 |
| Replies: 5 Views: 1,153 Thanks for a great help waltp . |
Forum: C Mar 31st, 2008 |
| Replies: 2 Views: 412 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 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 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 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 |
Forum: C Mar 12th, 2008 |
| Replies: 4 Views: 1,711 Instead of intilaizing to zero use static before int.
LIKE
static int g[2]; |
Forum: C Mar 12th, 2008 |
| Replies: 4 Views: 1,505 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 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 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 #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 Views: 496 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 How can i Configure Mouse in C:-/ |