C/C++ How to make a structure in DEV C++?

  • Thread starter Thread starter k13th143
  • Start date Start date
  • Tags Tags
    Structure
AI Thread Summary
To create a structure in DEV C++, you follow the same syntax used in any C++ environment. A basic example of defining a structure is as follows: struct MyDataStructure { int a; int b; int c;};Additionally, typedef statements can be utilized for more complex structures, but the fundamental approach remains consistent across platforms.
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 :)
 
Technology news on Phys.org
Do you mean in C++?
 
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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
1
Views
2K
Replies
13
Views
1K
Replies
3
Views
2K
Replies
1
Views
2K
Replies
2
Views
1K
Replies
6
Views
2K
Back
Top