Lecture 2 | Programming Abstractions (Stanford)
Top Comments
All Comments (90)
-
@ShadowSky24 WAIT A SECOND, how stupid I am. No dude, she is right. It's a method prototype and takes an int, it's not using the function. Geez, I am embarassed xD
I guess you know now (since it's been two months) why the code is right.
-
@XzGameTimezX I think she wrote it directly to the presentation. She did say she might confuse syntaxes. In Java the first letter in a variable/method is often lowercase.
-
@XzGameTimezX Wrong. The function parameter variable name does NOT need to be given the same name as the variable that is being passed in to it. It could be "int placeholder" for all it matters, since it is a duplication of the original variable. The only thing that matters is that her declaration of "cont int NumScores" matches her reference to it when she passes it in to the function, which it does.
-
@NorthEastAlbo I assume "using namespace std;" is contained in "genio.h"? If that's the case, why not just include iostream in there as well? Seems strange to me. Oh well.
-
@alfaalfa99 Try Geany. Fastest way to create small C++ programs.Like Dev (or the new/improved ver, wxDev-C++), u dont need a darn project to make a small prog. Its better, tho
-
@brashodan Visual Studio is best for hard-core programmers (Code::Blocks prolly 2nd, imo). Geany is by far the best for students/newbies. For Windows, that is.
-
@alfaalfa99 i think dev C++ is archaic compared to code blocks :D
-
@AGYETECH Oh god! Is people still using Turbo C++?! That's madness, madness I say!! 8D
By the way, you can use Dev-C++, it's free, for Windows, easy to use and not that archaic. =D
-
I think using these custom libraries is not a good idea for beginners. Best to stick with standard at first.
-
I'll stick with COBOL.



she forgot to use : using namespace std, if you forget this you have to type std::cout and std::endl
NorthEastAlbo 11 months ago 13
the libraries and code can be found at
stanford.edu/class/cs106b/index.html
and
see.stanford.edu/see/courseinfo.aspx?coll=11f4f422-5670-4b4c-88
IronChefWannabe 1 year ago 6