Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 78e270a

Browse files
authored
Make hello world more visual (#176)
It was noted in the DX studies that users tend to miss hello world run since it is so short. So adding a for loop to make it more noticeable. For now, only making this change to c++. Once we confirm that this idea works in subsequent tests, we can make the change to other samples.
1 parent af24212 commit 78e270a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hello-world/cpp/main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626

2727
int main()
2828
{
29-
std::cout<< "Hello, Internet of Things!" << std::endl;
30-
sleep(1);
29+
for (int i =0; i<5 ; i++) {
30+
std::cout<< "Hello, Internet of Things!" << std::endl;
31+
sleep(1);
32+
}
3133
std::cout<< "Bye!" << std::endl;
3234
return 0;
3335
}

0 commit comments

Comments
 (0)