-
September 24th, 2021, 01:16 AM
#1
need help with threads
Hi, I am newbie to managed c++.
I need a code with main function that four threads run four instances of this class , Animal, simultaneously.
Each instance prints a different animal kind. "cat", "dog", .,.
where to create thread should be at?
Code:
ref class Animal()
{
Animal(String ^s)
{
Console::Writeline(s)
}
// where the create thread should be at?
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|