float

  1. A

    [C++] Need help in calculation of more than 2 numbers

    I've made this Calculator which can only calculate for 2 inputs only. How should I write the program, so that, the user can give multiple inputs and the calculation is performed? /* Work of Ashrith Babu Rao, XII Email: a5hr1th.mb@gmail.com (c) 2008 */ #include <iostream.h>...
  2. S

    C language programming

    Hello I made the following program with C language - but I do not know how to fix the error when the user enters characters instead of numbers; For Example: the values entered by the user must be numbers only not characters - and if he type character the program should give him error message...
  3. VINSTAR

    C programing DOUBT

    i write a C program to perform the functions of a calculator, as this #include<stdio.h> #include<conio.h> int sum(int,int); int dif(int,int); int pro(int,int); float div(int,int); void main() { int a,b; char o; clrscr(); printf("enter the numbers "); scanf("%d%d",&a,&b); printf("enter the...
  4. blackleopard92

    insane C program needing explanation

    does anybody have any idea what's going on here? #include <stdio.h> int main() { float a = 65.375; char *p; int i; p = (char*)&a; printf("%c\n",*p); for(i=0;i<=3;i++) printf("%02x",(unsigned char)p); printf("\n"); printf("\n"); return 0; }
  5. abhi_10_20

    Doubt in C

    Dunno whether its right to post it here.... Anyway, this is my doubt: i couldn't find this in Google....... ---> if we declare a float, like: float a=2.7; it gets stored in the memory as 2.700000 with specifically 6 digits only, after the decimal...
  6. paragkalra

    GCC vs VISUAL STUDIO

    I need your help very urgently....... Actually my HOD (head of department) is doing PHD.... He has a .c file which can be successfully compiled on LINUX using gcc.... I myself have successfully compiled it on REDHAT Now he wants to compile the same program on Windows using VISUAL...
  7. tweety_bird_bunny

    plz see the "C" coding.tel watz wrong?

    i did following coding in devc++ ver4..... it is taken from kanetkar's Let Us See book....... but it doesn't seem to work....it should recieve a float value & return its square.... no matter what i enter it gives its square as 0.000000..... whats going wrong any suggestions....... if it works...
  8. rohan

    Scripting QuickLaunch

    Well, this tutorial I've made will be updated by me regularly. Recently I got addicted to Scripting thanks to MAKI, the kool scripting language and Vb. Then I thought there were many things that could very well, confuse new scripters and hence I thought this tutorial would help. Please add...
Top Bottom