How to make a program that prints out 10 stars with using cout or for loops or while loops.
hello10
0
Newbie Poster
Recommended Answers
Jump to PostAssuming you're giving us all the information we need, there's a ton of ways to do this without using loops and
cout
. One could use standard C functions likeputs()
orprintf()
, for example.#include <cstdio> int main() { printf("**********"); return 0; } …
Jump to PostOr even
putchar
which makes even more sense.
How aboutwrite
to stdout?
Maybe even write directly to screen memory. That's a neat way.
ಠ_ಠ
All 6 Replies
Tumlee
42
Junior Poster in Training
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Tumlee
42
Junior Poster in Training
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
neithan
1
Junior Poster in Training
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.