By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,986 Members | 1,905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,986 IT Pros & Developers. It's quick & easy.

how to make alias struct name with our input name

P: 2
hi friends,
is it possible to change structure name with our string input name.
eg : struct temp
{
int ab;
};

Now i read a string input i want to change structure temp to my string name

please give suggestion to me
Jun 15 '17 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
When your program executes, the code is not there. The build has changed everything to machine code.

When you are finished with struct temp, just stop using it.

Define your string and start using it.

How are you reading your input? keyboard? file?
Jun 15 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.