1.Write a C++ function that intakes 2 arguments: a character and an integer and prints the character given number of times.If ,however, the integer is missing the function prints the character twice.
karthik16 0 Newbie Poster
Recommended Answers
Jump to PostI got the same question in a PM, which I promptly just deleted.
Jump to PostTo be honest, there's more wrong with this code than right.. The random curly-bracket on the first line for example. And C++ doesn't come with a function called random(). You're probably better of starting over and taking it small steps at a time.
1. Make a program with a main() …
All 6 Replies
Schol-R-LEA 1,446 Commie Mutant Traitor Featured Poster
Fbody 682 Posting Maven Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Dakot 14 Light Poster
Fbody commented: You've been around long enough, and have enough posts. You should know better by now. -3
Srivatsa_1 0 Newbie Poster
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
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.