User Profile

Collapse

Profile Sidebar

Collapse
shardul316
shardul316
Last Activity: Jul 8 '07, 10:57 AM
Joined: Jan 2 '07
Location: india
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shardul316
    started a topic eagerly waiting for banfas next tutorial
    in C

    eagerly waiting for banfas next tutorial

    TSDN ,
    we would be helped very much if we get the C++ tutorial
    especialy on classes and objects.
    thank
    See more | Go to post

  • shardul316
    started a topic structure problem
    in C

    structure problem

    i have done the following program of student information.
    when we run the program we enter details of all the 10 students
    and get output details of all the 10students.
    now if we come out of the program i.e execution of program is completed and again we come to the sourse code of the program.
    now my question is what should i do if i have to view the details of
    all the 10 students whose information i have entered...
    See more | Go to post

  • shardul316
    replied to folder name con in windows
    don't use dot.just rename it as con
    and check whether it renames?
    any windows folder can accept any name except con
    WHY THIS IS SO?...
    See more | Go to post

    Leave a comment:


  • shardul316
    replied to Need codes/idea in Turbo C
    in C
    hi Ganon,
    that code was not actually the answer.actually it is a c++ code.MAC asked for
    C code.it was not copied from anywhare .actually ,from last 8 hours i was working on that program when i got the result i felt that program would be useful
    for mac's program.if i am wrong then sorry by heart....
    See more | Go to post

    Leave a comment:


  • shardul316
    replied to folder name con in windows
    if you are using windows xp

    do this
    1.goto any folder
    2.by using right click select rename option
    3.rename the folder as con.
    4.you can't rename it
    WHY?
    See more | Go to post

    Leave a comment:


  • shardul316
    replied to Need codes/idea in Turbo C
    in C
    in order to add element to the array you should declare the array of size greater than 10.if you have array of size 10 and still you want to add 11....n elements
    it is not possible .
    if you declare array of size 10 or more then it is possible
    as you mentioned array element will store name and prize both.
    it is not possible for one dimentional array to hold both prize,name .
    for that you should use multidimentiona l...
    See more | Go to post

    Leave a comment:


  • for odd number you have to use
    if(n%2!=0)
    {


    n=3*n+1;

    }

    where n%2!=0 is the condition to check odd number.
    for even number it condition will be n%2==0.
    See more | Go to post

    Leave a comment:


  • shardul316
    started a topic electric bill
    in C

    electric bill

    following program is compiled with zero errors but still i am getting wrong output
    can anybody find where i am wrong so as to get correct output
    [PHP]#include<iostre am>
    using namespace std;
    int main()
    {
    int units;
    char name[20];
    float cost,bill,total bill;
    cout<<"enter the name"<<endl;
    cin>>name;
    cout<<"read units"<<endl;...
    See more | Go to post

  • shardul316
    replied to main problem
    in C
    THANKS FOR THE REPLY.
    you mentioned that main is not declared.
    i agree with you in case of C .
    As in C function declaration is optional but as far as C++ is concerned
    function declaration is must.
    so how it is possible for compiler to compile program without declaration of function in C++.

    --------------------------------------------------------------------------------...
    See more | Go to post

    Leave a comment:


  • shardul316
    started a topic In Strong Need Of Your Help
    in C

    In Strong Need Of Your Help

    friends could anyone guide me for the logic or source code /hint of following three programs
    1.program to find following sine series for possible values of x
    sinx=(x/1!)-(x^3/3!)+........... .......
    2.for cosx=1+(x^2/2!)+(x^4/4!)+........
    3.program to find exponentiation e^x for given values of x.
    guide me friends i have two sleepless nights while attempting these cleashe programs.
    See more | Go to post

  • shardul316
    started a topic inline function
    in C

    inline function

    FOOD FOR THOUGHT:
    by using inline function in c++ program we can increase th speed of
    execution of prog/function.as keyword inline replaces the function call by
    function code.
    if this is true
    then why don't we use keyword "inline" for all the functions to increase the speed of execution.?
    See more | Go to post

  • shardul316
    replied to main problem
    in C
    THANKS FOR THE REPLY.
    you mentioned that main is not declared.
    i agree with you in case of C .
    As in C function declaration is optional but as far as C++ is concerned
    function declaration is must.
    so how it is possible for compiler to compile program without declaration of function in C++....
    See more | Go to post

    Leave a comment:


  • shardul316
    started a topic main problem
    in C

    main problem

    dear friends plz clarify my doubt
    we know that there are three aspects regarding function
    1.function declaration
    2.function call
    3.function definition
    in c,c++ program at the start we write
    main()
    {
    ...;
    ...;
    }
    now my question is
    is this a function declaration or definition or calling?
    if it is a function call why don't we give semicolon after main...
    See more | Go to post
No activity results to display
Show More
Working...