| |

VerySource

 Forgot password?
 Register
Search
Author: afeng009

Please master teach how to new a class

[Copy link]

0

Threads

24

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2021-3-12 16:45:01
| Show all posts
You should give the parameters of the constructor, otherwise there should be a default constructor (that is, a constructor without any parameters).
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Great Britain

Post time: 2021-3-12 17:07:10
| Show all posts
booook 2021-3-12 13:30
char param1[] = "test";
float param2 = 0.0;
int param3 = 0;

You are not adding commas correctly between your parameter arguments
Reply

Use magic Report

0

Threads

1

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2021-4-1 07:38:17
| Show all posts
CHAR param1 [] = "test";
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2021-6-26 14:35:47
| Show all posts
CHAR param1 [] = "test";
Float param2 = 0.0;
INT param3 = 0;

CACTIVEPROCESS * ACTIVEPROCESS =
New
CACTIVEPROCESS
Param1Param1, Param1,
Param1Param1, Param1, Param1,
PARAM1, PARAM1, PARAM1, PARAM2,
PARAM2, PARAM3);
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list