• Welcome to Religious Forums, a friendly forum to discuss all religions in a friendly surrounding.

    Your voice is missing! You will need to register to get access to the following site features:
    • Reply to discussions and create your own threads.
    • Our modern chat room. No add-ons or extensions required, just login and start chatting!
    • Access to private conversations with other members.

    We hope to see you as a part of our community soon!

The last post is the WINNER!

Wu Wei

ursus senum severiorum and ex-Bisy Backson
bear-pool.jpg
 

cambridge79

Active Member
http://www.ksinger.com/wp-content/uploads/2015/05/post14.jpg/IMG]

I think as long as you won't figure this out I could consider myself the winner
 

sun rise

The world is on fire
Premium Member
Seasoned professional
#include <iostream.h>
#include <string.h>
class string
{
private:
int size;
char *ptr;
public:
string() : size(0), ptr(new char('\0')) {}
string(const string &s) : size(s.size)
{
ptr = new char[size + 1];
strcpy(ptr, s.ptr);
}
~string()
{
delete [] ptr;
}
friend ostream &operator <<(ostream &, const string &);
string &operator=(const char *);
};

ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}
string &string::eek:perator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}
int main()
{
string str;
str = "Hello World";
cout << str << endl;
return(0);
}

Hello, world
 

Wu Wei

ursus senum severiorum and ex-Bisy Backson
For some reason I wish I was here
Winter-Road-Scenes-for-Desktop-Wallpapers.jpg


If I was, I would allow you to win...without interference from me......but, alas, I am not....so... without further adieu...I declare that I win
 

Thief

Rogue Theologian
For some reason I wish I was here
Winter-Road-Scenes-for-Desktop-Wallpapers.jpg


If I was, I would allow you to win...without interference from me......but, alas, I am not....so... without further adieu...I declare that I win
I wish you were there too...
while you're gone...I win.
 
Top