LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Newbie Q(sorry): Programming simple apps for school... (https://www.linuxquestions.org/questions/programming-9/newbie-q-sorry-programming-simple-apps-for-school-239827/)

Gregor7777 10-07-2004 09:51 AM

Newbie Q(sorry): Programming simple apps for school...
 
Hi,

I looked around and am having a difficult time wrapping my mind around a seemingly simple concept.

I've switched over to linux 100%; I no longer will put up with ANY Microsoft products. My desktop is running Fedora Core 2 for the time being and my servers are running VectorLinux and Gentoo.

Now, I'm a student and I'm taking a c++ w/STL programming class this term and will need to create apps that can run in a windows/dos envirnoment for my professor. I don't suspect they will need to be extremly complex.

Can I use gcc and Anjuta to create these apps? Would they need to be compiled on a windows machine for them to run? If so, can anyone point me in the right direction to get started leaning what I need to know?

Sorry for all the questions, I appreciate any help that anyone can offer.

Thanks!

greg

jim mcnamara 10-07-2004 10:21 AM

As long as they are console apps using cin & cout with stright STL calls they will compile on both platforms.

Most profs want source code, not an executable. If he wants both, you will have to compile your C++ on Windoze as well. The school will have PC's you can use to do this.

Gregor7777 10-07-2004 10:26 AM

Quote:

Originally posted by jim mcnamara
As long as they are console apps using cin & cout with stright STL calls they will compile on both platforms.

Most profs want source code, not an executable. If he wants both, you will have to compile your C++ on Windoze as well. The school will have PC's you can use to do this.

Great, so it sounds like there are no differences in the cource code then. Yeah, most of my professors thus far just wanted source code so that is a good thing then. I use windows at work so if I needed to compile I could do it there on a spare system. I'm a distance learning student so no campus for me. :(

So if a professor wanted me to compile a simple app and gave me the source (and he was under the impression I was using VS6 let's say), as long as he used cin and c out I would be good to go? By straight stl calls do you mean no references to windows specific code? Pardon my ignorance please...:)

Allow me to edit: all programs would be console apps, they just recommend VS6 as an IDE


All times are GMT -5. The time now is 11:53 AM.