Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 37bced4

Browse filesBrowse files
committed
removed static function for dynamic function
1 parent 3239e00 commit 37bced4
Copy full SHA for 37bced4

File tree

Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed

‎main.cpp

Copy file name to clipboardExpand all lines: main.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int main(int argc, char* argv[]) {
2121
std::cout << cool->doit() << std::endl;
2222

2323
std::cout << bold("hello") << std::endl;
24-
std::cout << red("world") << std::endl;
24+
std::cout << red(underline("world")) << std::endl;
2525
std::cout << underline("world") << std::endl;
2626

2727
return 0;

‎utils/types.cpp

Copy file name to clipboardExpand all lines: utils/types.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ File :: File (
3131
}
3232

3333
std::string File :: doit() {
34-
return "hello";
34+
return this->user;
3535
}

‎utils/types.h

Copy file name to clipboardExpand all lines: utils/types.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct File {
5353

5454
~File() = default;
5555

56-
static std::string doit();
56+
std::string doit();
5757
};
5858

5959
struct Directory {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.