User forums > General (but related to Code::Blocks)
Too dumb to get started?
sethjackson:
--- Quote from: killerbot on August 02, 2006, 12:05:10 am ---
--- Quote from: Newbie0815 on August 01, 2006, 11:50:19 pm ---4) should I rather use 100s of get´s? From php I´m so much used to have all variables available at all times throughout a complete script, I like my little notepad file aside where I write down all variables I´m using
--- End quote ---
yes !! Information hiding/maintenance/reusability : interfaces are the things you work with and exchange with other parts of the code
Note : a class should have not to many members, if it does this hints your class it doing to much things.
--- End quote ---
Yes yes yes yes, and yes. :)
marfig:
So, at the light of this... I really suggest you consider learning the programming language first. Least you want to come back in a moth or two complaining you can't learn C++ from the tutorials
Newbie0815:
@killerbot
okok, I´ll take that advice about private variables
so I don´t get an A in your test, but did I pass? :D
@marfig
isn´t that what I´m doing? with the only difference that I have a concrete project to work on, rather than dry studying the theory?
@all
and what about my actual question? how to "translate" code from other compilers? Theres not THAT much different between borland and gcc, I just think since this must be a pretty common problem for those who use prewitten libraries and classes to speed up their development, there should be an easier way than go through the code line by line
sethjackson:
--- Quote from: Newbie0815 on August 02, 2006, 12:22:54 am ---@killerbot
okok, I´ll take that advice about private variables
so I don´t get an A in your test, but did I pass? :D
@marfig
isn´t that what I´m doing? with the only difference that I have a concrete project to work on, rather than dry studying the theory?
@all
and what about my actual question? how to "translate" code from other compilers? Theres not THAT much different between borland and gcc, I just think since this must be a pretty common problem for those who use prewitten libraries and classes to speed up their development, there should be an easier way than go through the code line by line
--- End quote ---
Well if the code you are looking at uses STL not much at all should be different. The code from other libraries may be different, but the code shouldn't be that much difference syntax wise.... Or maybe I misunderstood you.
Auria:
--- Quote ---and what about my actual question? how to "translate" code from other compilers? Theres not THAT much different between borland and gcc, I just think since this must be a pretty common problem for those who use prewitten libraries and classes to speed up their development, there should be an easier way than go through the code line by line
--- End quote ---
If you had learned the programming language before trying to do an actual project you would maybe know (!) there is no magic way to fix small errors between compilers, you need to know the language, and read the given error messages. If everyone keeps telling you to learn the language it must be for some reason :D
Also, it' s possible (and rather probable) that you didn't link against the right libraries
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version