User Profile

Collapse

Profile Sidebar

Collapse
Mack
Mack
Last Activity: Mar 20 '07, 07:00 AM
Joined: Feb 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Mack
    replied to Advantage of Vectors over Arrays
    in C
    Friends,

    thats really nice to hear from you , may i say that Vector is more advanced than Array ,
    may be is it like template . just declare one data type and it would work for all different data types?

    To add an elemet , just use push_back function ,to get size its very easy by size and pop_back etc operations.


    Regards,
    Mack.
    See more | Go to post

    Leave a comment:


  • Mack
    started a topic doubt not going on : operator
    in C

    doubt not going on : operator

    Hi I have the following code:

    Code:
    struct Point
    {
    	double x, y;
    	
    	inline Point(double X = 0, double Y = 0) : x(X), y(Y){ } 	  
    };
    
    can anybody clue WHY after " ) " , the programmer has used  : and in braces { } no code is wriiten.
    does he mean to make abstract class . or abstract structure?
    Consequently he has taken this example carried forward to make segment
    ...
    See more | Go to post

  • Mack
    started a topic structure access with:
    in C

    structure access with:

    Hi friends,

    any reason why structure there i see " : "is used and class there i see " :: "being used.

    can anybody explain me.

    Thanks in advance.

    Regards,
    Mack.
    See more | Go to post

  • Mack
    replied to Menus for a shoes program
    in C
    Its easy buddy.

    design switch case statement make do while loop until option enter is none of above exit loop.
    now getting back to do while loop once u get in 1..add
    2..delete
    3..edit

    take 6as exit
    return(0);
    now if u get in 1 design with case statement and write appropriate function for each.

    its not that diificult.

    Good luck.

    Regards,...
    See more | Go to post

    Leave a comment:


  • Mack
    started a topic Advantage of Vectors over Arrays
    in C

    Advantage of Vectors over Arrays

    Hi Guys,

    In C++ , i was just wondering what is the advantage of Vectors over arrays?
    I saw one sample program doing pretty much same way traditional vectors do then what the use of VECTORS??or what is their advantage??

    Regards,
    Mack
    See more | Go to post

  • Mack
    replied to map,vector,structure
    in C
    Hi,

    you can get some info on
    http://cppreference.co m


    Mack
    See more | Go to post

    Leave a comment:


  • Mack
    replied to factorial program
    in C
    Try using Recursion else simple for loop will work for you , I understand you are beginner same was with me , although i respect all alongwith you.
    something like this will go .
    see
    for (i=0; i<num;i++)
    i=i*(i-1)

    retun(i)

    see this is not way its going to work its just clue to you , so u get enthu to work further on it.

    Regards,
    Mack.
    See more | Go to post

    Leave a comment:


  • Mack
    replied to Distance conversion
    in C
    Hi,

    I am new like you ,
    Your main program will just have variable to take km in numeric figure pass that as parametr to function which does this evaluation and then write detailed function outside main.

    hope it helps.

    Cheers,
    Mack
    See more | Go to post

    Leave a comment:


  • Mack
    replied to main difference between STRUCT AND CLASS
    in C
    Thanks friends
    See more | Go to post

    Leave a comment:


  • Mack
    started a topic main difference between STRUCT AND CLASS
    in C

    main difference between STRUCT AND CLASS

    Hi,

    I want to ask what is basically main difference between struct and class??
    when we should use struct instead of class.??

    Mack.
    See more | Go to post

  • Mack
    started a topic pedantic errors
    in C

    pedantic errors

    Hi Guys,

    I am working on Linux C++ using Gcc3.4.6 to make files and make project run.

    When i make(compile file) it says pedantic errors so what error is this exactly??
    I think this error is related to some strict syntax on linux but not that serious so it excutes.

    May i know if somebody knows more on this pedantic errors.

    Regards,
    Mack
    See more | Go to post
No activity results to display
Show More
Working...