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.
User Profile
Collapse
-
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 -
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. -
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,...Leave a comment:
-
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 -
-
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.Leave a comment:
-
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,
MackLeave a comment:
-
-
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. -
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
No activity results to display
Show More
Leave a comment: