Search:
Type: Posts; User: Aashi
Search:
Search took 0.01 seconds.
-
November 30th, 2011, 05:24 AM
-
November 30th, 2011, 04:30 AM
oops, ok, sorry. i just woke up did stupid mistake.. :D
-
November 30th, 2011, 03:28 AM
hi,
i've a confusion about this code:
int main()
{
int rear=1%10;
cout<<rear;
return 0;
-
November 30th, 2011, 01:15 AM
i want to make a logic for converting infix expression to postfix expression: for this i need to have stack and string. I can use char array for this, i just want to try with string. So, how can i...
-
November 29th, 2011, 12:50 PM
thanks all, :)
can anyone tell me which member function should i use for this purpose? from this site http://www.cplusplus.com/reference/string/string/
i tried with find, compare..
-
November 29th, 2011, 11:27 AM
hi all,
suppose i've a string that has abc like:
string str;
cin>>str; // user enters abc
for(int i=0; i<str.length(); i++)
{
//compare if str has 'a'
// loop...
-
November 26th, 2011, 08:42 AM
-
November 26th, 2011, 05:55 AM
hi all, i want to something like this:
e.g: a string abb
push chars on stack :
a
b
b
pop chars from stack :
a
b
b
-
November 17th, 2011, 01:33 PM
thanks for replying :)
and what about this one?
template<class T> and
template<typename T>
are both same?
-
November 17th, 2011, 11:07 AM
hi,
What's the difference between using
#include <vector> and
template<typename T> ??
-
November 13th, 2011, 05:54 AM
hi,
is there any way to concatenate characters of char type array in c++ ??
thanks...
-
November 9th, 2011, 01:50 AM
-
November 8th, 2011, 12:15 PM
i just want to do self practice, want to take all object classes and then to show it. if i have three classes, Date, Time and Show.
then an array of type Show class has a date object and time...
-
November 8th, 2011, 11:10 AM
yes, an array that will have an object of Stock class, an object of Date class and e.t.c
just one example, because i'm confused about how this works..
-
November 8th, 2011, 10:15 AM
thanks for replies guys,
can anyone tell me about using array of objects for two classes? i want to operate them as arrays not using vectors for the time now. As i have shown my code where i did...
-
November 8th, 2011, 02:43 AM
yep sure it would be like this:
Stock *s1=new Stock[2];
char n[29];
int num;
double val;
for(int i=0; i<2; i++){
cout<<"Enter name :";
cin>>n;
-
November 8th, 2011, 02:08 AM
hi all,
I do know how the array of objects work, as an example here it is:
Stock *s1=new Stock[2];
char n[29];
int num;
double val;
cout<<"Enter name :";
cin>>n;
-
November 7th, 2011, 12:36 PM
thanks,
i always do silly mistakes :(
-
November 7th, 2011, 11:05 AM
hi all,
I'm trying for one hour and i'm tired of it. I also tried to debug it but don't understand why i'm getting wrong output.
in my program, user enters day, month, year, hour, minute, second,...
-
November 7th, 2011, 10:26 AM
-
November 7th, 2011, 04:53 AM
here's updated code, it's working but is this the right way?
please respond..
#include <iostream>
using namespace std;
class Example
{
private:
char* str;
-
November 7th, 2011, 04:27 AM
alright then, can you please tell me about how can i get input from user in a main using setter function?
i'm not asking for code, here's my code with constructor and destructor where i'm dynamic...
-
November 6th, 2011, 08:15 AM
it complies, takes input and then program crashes.
I know, but i want to use this for learning.
please tell how can i make my program working? it crashes after taking input.
-
November 6th, 2011, 07:45 AM
hi all,
my following program is not working, can anyone please tell me what's wrong with that?
class Example
{
private:
char *name;
public:
-
July 25th, 2011, 10:49 PM
thanks guys, will do it :)
|
Click Here to Expand Forum to Full Width
|