mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-12-18 21:23:29 +00:00
스킵 구현
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* @brief This is a function that does some cool stuff.
|
||||
* More stuff here will still go in brief!
|
||||
* @warning This does nothing!
|
||||
*/
|
||||
func_name();
|
||||
|
||||
/*
|
||||
* @brief This turns a name into a meme name!
|
||||
*
|
||||
* @param name The name of the user that you want to meme-ify.
|
||||
* @return a meme name!
|
||||
*/
|
||||
std::string name_to_meme(const std::string& name) const;
|
||||
|
||||
/* -------------------- .cpp file -------------------- */
|
||||
|
||||
int main() {
|
||||
/* We are now going to do some cool stuff. */
|
||||
func_name();
|
||||
|
||||
/* Going to turn brain into a meme name.
|
||||
* Why?
|
||||
* Because why not. That's why.
|
||||
*/
|
||||
std::cout << name_to_meme("Brain") << "\n";
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
void foo() {
|
||||
if (a == b) {
|
||||
c();
|
||||
} else {
|
||||
d();
|
||||
}
|
||||
|
||||
while (true) {
|
||||
// ...
|
||||
}
|
||||
|
||||
switch (a) {
|
||||
case 1:
|
||||
c();
|
||||
break;
|
||||
case 2:
|
||||
d();
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
stuff{}
|
||||
.add_stuff()
|
||||
.add_stuff();
|
||||
|
||||
event.reply("This reply function isn't indented!");
|
||||
@@ -0,0 +1,18 @@
|
||||
class DPP_EXPORT my_new_class {
|
||||
public:
|
||||
int hats;
|
||||
int clowns;
|
||||
|
||||
my_new_class& set_hats(int new_hats);
|
||||
my_new_class& set_clowns(int new_clowns);
|
||||
};
|
||||
|
||||
my_new_class& my_new_class::set_hats(int new_hats) {
|
||||
hats = new_hats;
|
||||
return *this;
|
||||
}
|
||||
|
||||
my_new_class& my_new_class::set_clowns(int new_clowns) {
|
||||
clowns = new_clowns;
|
||||
return *this;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
dpp::my_new_class nc;
|
||||
nc.set_hats(3).set_clowns(9001);
|
||||
@@ -0,0 +1,3 @@
|
||||
std::vector<std::string> clowns = { "pennywise", "bobo" };
|
||||
|
||||
evaluate_clown(clowns[0], evilness(2.5, factor));
|
||||
@@ -0,0 +1,5 @@
|
||||
class DPP_EXPORT my_new_class {
|
||||
public:
|
||||
int hats;
|
||||
int clowns;
|
||||
};
|
||||
Reference in New Issue
Block a user