Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

External (extra) files when using Inline::CPP

by cavac (Parson)
on Apr 16, 2024 at 09:52 UTC ( [id://11158886]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Inline CPP;
    
    for(1..3) {
    ...
        int rolled = xkcd_dice_roll();
        return rolled;
    }
    
  2. or download this
    #ifndef XKCD_DICE
    #define XKCD_DICE
    
    ...
    int xkcd_dice_roll();
    
    #endif
    
  3. or download this
    #include "xkcd.h"
    
    int xkcd_dice_roll() {
        return FAIRLY_GENERATED_RANDOM_NUMBER;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11158886]
Approved by marto
Front-paged by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-06-19 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.