Skip to content
Snippets Groups Projects

Command line arguments in main to work with SDL

Closed Erling Syversveen Lie requested to merge updateMain into main
162 files
+ 218
188
Compare changes
  • Side-by-side
  • Inline
Files
162
@@ -22,7 +22,7 @@
<button class="copy" title="Copy"><i class="material-icons" style="font-size: 1rem; position: relative; top: .15rem;">content_copy</i></button>
<code class="language-cpp">
#include &ltiostream&gt
int main()
int main(int argv, char **argc)
{
std::string name;
std::cout << "What is your name? ";
@@ -63,7 +63,7 @@ std::cout << "You are " << first_name << " " << sur_name << " (" << age << ").\n
<button class="copy" title="Copy"><i class="material-icons" style="font-size: 1rem; position: relative; top: .15rem;">content_copy</i></button>
<code class='language-cpp'>
#include &ltiostream&gt
int main()
int main(int argv, char **argc)
{
std::string sentence;
std::cout << "Input: ";
Loading