| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Code Style CheckCode style violations detected in the following files:
Execute one of the following actions and commit again:
hello_world.cpp--- hello_world.cpp
+++ hello_world.cpp
@@ -4,13 +4,11 @@
std::vector<int> myVector();
-std::string message() {
- return "Hello, Danger world!";
-}
+std::string message() { return "Hello, Danger world!"; }
int main() {
std::cout << message() << std::endl;
- std::vector< int > v = myVector();
- return EXIT_SUCCESS;
+ std::vector<int> v = myVector();
+ return EXIT_SUCCESS;
}
vector.cpp--- vector.cpp
+++ vector.cpp
@@ -1,13 +1,13 @@
#include <vector>
std::vector<int> myVector() {
-int arr[] = {16, 2, 77, 29};
-// Create a vector containing integers
-std::vector<int> v (arr, arr + sizeof(arr) /sizeof(arr[0]) );
+ int arr[] = {16, 2, 77, 29};
+ // Create a vector containing integers
+ std::vector<int> v(arr, arr + sizeof(arr) / sizeof(arr[0]));
-// Add two more integers to vector
-v.push_back(25);
-v.push_back(13);
+ // Add two more integers to vector
+ v.push_back(25);
+ v.push_back(13);
-return v;
+ return v;
}
Generated by 🚫 Danger |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.