Hello there, guys!
I am relatively new to programming in C, and I still have a lot to learn. I am currently using Dev C++, but I work in C only. My problem is that I need to fill a 2D table with some multi-character variables, and I don't know how to declare one. I declared the table as char, but only the it was initiated only to the first value I gave, not all of them. I mean, if I put "HELLO", it would contain only "H".
I was thinking, would it be wise to use a 3D table, and use its third dimension as the maximum character length of the strings I want to use? I know this would entail a lot more work, and I hope there is another way. If anyone can help me, please do so! I will be forever grateful!
Please, reply ASAP!
- ShadowHawk
Zababa 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.