Difference: CodeDay2 (1 vs. 6)

Revision 62016-08-29 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Day 2 Sample code

Hello world

Line: 9 to 9
 int main() { cout << "Hello, world." << endl;
Added:
>
>
return 0;
 } %ENDCODE%

Revision 52015-09-03 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Day 2 Sample code

Hello world

Line: 8 to 8
 using namespace std; int main() {
Changed:
<
<
std::cout << "Hello, world." << std::endl;
>
>
cout << "Hello, world." << endl;
 } %ENDCODE%

Revision 42015-09-01 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Day 2 Sample code

Hello world

Line: 55 to 55
  return 0; } %ENDCODE%
Changed:
<
<
>
>
*
 
META FILEATTACHMENT attachment="Day2.pptx" attr="" comment="Day2" date="1440956328" name="Day2.pptx" path="Day2.pptx" size="6228453" user="JimSkon" version="1"
META TOPICMOVED by="JimSkon" date="1440943282" from="KenyonCpp.CodeDay1" to="KenyonCpp.CodeDay2"

Revision 32015-08-30 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
Changed:
<
<

Day 1 Sample code

>
>

Day 2 Sample code

 

Hello world

%CODE{"c++"}%
Line: 56 to 56
 } %ENDCODE%
Added:
>
>

META FILEATTACHMENT attachment="Day2.pptx" attr="" comment="Day2" date="1440956328" name="Day2.pptx" path="Day2.pptx" size="6228453" user="JimSkon" version="1"
 
META TOPICMOVED by="JimSkon" date="1440943282" from="KenyonCpp.CodeDay1" to="KenyonCpp.CodeDay2"

Revision 22015-08-30 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Day 1 Sample code

Hello world

%CODE{"c++"}% #include
Added:
>
>
using namespace std;
 int main() { std::cout << "Hello, world." << std::endl;
Line: 45 to 46
 

08-10.cpp

%CODE{"c++"}%
Changed:
<
<
#include using namespace std;
>
>
#include using namespace std;
  int main( ) {
Line: 53 to 55
  return 0; } %ENDCODE%
Added:
>
>
META TOPICMOVED by="JimSkon" date="1440943282" from="KenyonCpp.CodeDay1" to="KenyonCpp.CodeDay2"

Revision 12015-08-25 - JimSkon

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

Day 1 Sample code

Hello world

<-- SyntaxHighlightingPlugin -->
#include <iostream>
int main()
{
  std::cout << "Hello, world." << std::endl;
}
<-- end SyntaxHighlightingPlugin -->

01-08.cpp

<-- SyntaxHighlightingPlugin -->
#include <iostream>
using namespace std;

int main( )
{
    int number_of_pods, peas_per_pod, total_peas;
    cout << "Press return after entering a number.\n";
    cout << "Enter the number of pods:\n";
    cin >> number_of_pods;
    cout << "Enter the number of peas in a pod:\n";
    cin >> peas_per_pod;

    total_peas = number_of_pods * peas_per_pod;
    //number_of_pods * peas_per_pod = total_peas;
    cout << "If you have ";
    cout << number_of_pods;
    cout << " pea pods\n";
    cout << "and ";
    cout << peas_per_pod;
    cout << " peas in each pod, then\n";
    cout << "you have ";
    cout << total_peas;
    cout << " peas in all the pods.\n";
    
    return 0;
}
<-- end SyntaxHighlightingPlugin -->

08-10.cpp

<-- SyntaxHighlightingPlugin -->
#include <iostream> using namespace std;

int main( )
{
    cout << "Testing 1, 2, 3\n";
    return 0;
}
<-- end SyntaxHighlightingPlugin -->
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback