What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

I am experienced with VB but I am taking a class in c++. I have written several c++ programs for my instructor but she states my code is inefficient. She rips apart my code stating I use too many strings. She isn't interested in sitting down in a civil way to show me why it is inefficient. So I am desperate. Would it be possible for me to paste one of my assignments here and the code I wrote for it so that some one could describe why it is so wrong and tell me what I should have written and why? Or am I in the wrong place for that? Please help. I am not looking for anything but true learning here. I'm not looking to have someone's input justify what I wrote so I can take it to my teacher and say "look someone on the internet thought it was good" or anything like that. All I want is to get it right.

share|improve this question

migrated from stackoverflow.com Oct 15 '11 at 0:21

This question came from our site for professional and enthusiast programmers.

3  
I think that would be in order. There is also codereview.stackexchange.com precisely for that. –  Diego Sevilla Oct 14 '11 at 23:13
    
I think pasting in a short code snippet and asking why it is inefficient would be reasonable here. –  Jeremy Friesner Oct 14 '11 at 23:13
1  
This question should be migrated to meta –  bdonlan Oct 14 '11 at 23:14
5  
Don't ask to ask, just ask! –  user161691 Oct 14 '11 at 23:14
    
Pass your strings by const std::string& wherever possible. Beyond that, your code is probably fine. –  Mooing Duck Oct 14 '11 at 23:16
add comment

1 Answer

If you want review of a complete program, please post it on the code review stackexchange site. If you have some specific question about a program or (preferably) a small part of a program, feel free to post it on stack overflow. Questions about what is appropriate on one site or another should be posted on meta (don't worry about this one, it'll probably be moved there soon).

share|improve this answer
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .