Register for your free account! | Forgot your password?

You last visited: Today at 07:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



help

Discussion on help within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2009
Posts: 92
Received Thanks: 7
Smile help

I'm with a doubt! how to make an argument in C + + you guys can get me out of this doubt: Confuso:
oiakrap is offline  
Old 02/17/2013, 14:41   #2
 
elite*gold: 5
Join Date: Sep 2006
Posts: 385
Received Thanks: 218
Hey,

check this out:

Code:
#include <humans>

int main()
{
      Man me;
      Women wife;

      try
      {
            wife.AskCatchyQuestion(CatchyQuestions::PICK_ANY, me);
            me.Answer(Answers::DOESNT_MATTER); //this will always throw, no matter how hard you try
      }
      catch(Argument& argument)
      {
            //The argument starts here
      }
}
Output:

Quote:
Wife asks: "Do I look fat in this dress?"
Me answers: "You sure do!";
Wife kicks me in my *****, it's super effective!
Me faints!
Nah, just kidding. What exactly do you mean? Would you care do elaborate?
Nightblizard is offline  
Thanks
5 Users
Old 02/17/2013, 19:37   #3
 
elite*gold: 0
Join Date: Oct 2009
Posts: 92
Received Thanks: 7
I did look more or less I'll have to add this part of the argument =[ "catch (" Argument "& argument)" ]= here?
oiakrap is offline  
Old 02/17/2013, 23:11   #4
 
elite*gold: 0
Join Date: Feb 2013
Posts: 139
Received Thanks: 15
Something like that the 2nd post is good
FinestBoosterNA is offline  
Old 02/20/2013, 23:55   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 92
Received Thanks: 7
plz close ^^
oiakrap is offline  
Reply




All times are GMT +1. The time now is 07:01.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.