How to make a structure in DEV C++?

  • Context: C/C++ 
  • Thread starter Thread starter k13th143
  • Start date Start date
  • Tags Tags
    Structure
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 7K views
k13th143
Messages
1
Reaction score
0
guys can u help me how ta make a structure in DEV C++ ? the all information i need thanks guys :)
 
Physics news on Phys.org
k13th143 said:
guys can u help me how ta make a structure in DEV C++ ? the all information i need thanks guys :)

Hey k13th143 and welcome to the forums.

You do the same thing that you would do in any other standardized C++ development environment. As an example:

Code:
struct MyDataStructure
{
   int a;
   int b;
   int c;
};

You can also use typedef statements but the basic idea is there.