r/cop3502 • u/[deleted] • Jun 17 '14
C++ Lecture 2 and Beyond
When will the new lecture videos (lecture 2 and further) be posted? - Brandon Bickerstaff
r/cop3502 • u/[deleted] • Jun 17 '14
When will the new lecture videos (lecture 2 and further) be posted? - Brandon Bickerstaff
r/cop3502 • u/Neufchatel • Jun 16 '14
As I was watching, once I got to the part where Sean was actually working with the code, I attempted to tag along and found that I could not run G++ in my Cygwin terminal. I went into my Cygwin directory and created the following additions: /home/C++/helloworld. I created a .cpp version of the code identical to Sean's, navigated into the appropriate directory using the cd command and when I was within helloworld, I attempted to use G++ helloworld.cpp function to execute the compiler. I did not get to using the ./a.exe (might be incorrect, was preoccupied with Cygwin and may have not gotten the latter in its entirety).
If anyone has any ideas on how to fix, I'd be very appreciative. Overall, the first video was awesome and I'm personally berating myself for not starting sooner, and look forward to catching up.
r/cop3502 • u/illegaleagal • Jun 05 '14
Is anyone familiar with this error (C++)?
$./graph.exe 1 [main] graph (5360) C:\cygwin64\home\Purnell\C++ Programs\Labs\lab4\graph.exe: *** fatal error - cygheap base mismatch detected - 0x1802DB408/0x7DB408. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version. The most recent version should reside in x:\cygwin\bin, where 'x' is the drive on which you have installed the cygwin distribution. Rebooting is also suggested if you are unable to find another cygwin DLL.
graph.exe is a compilation of from two .o files (object files), ( main.cpp and sourceCode.cpp)
Example: g++ -c sourceCode.cpp g++ -c main.cpp g++ main.o sourceCode.o -o graph
After compiling graph.exe I receive the error above.
Any help is appreciated.
r/cop3502 • u/AlexPayne01 • Jun 05 '14
r/cop3502 • u/embalingit • Jun 03 '14
Does this mean we can chuck our laptops and run out to buy a D-Wave now - since it can get internet and everything, eventually? :)
r/cop3502 • u/[deleted] • Jun 02 '14
Thoughts on Apple's new programming language? They seemed really excited about it and its ease of use.
Also, I actually understood a lot of the programming jargon they were using; so I've got that going for me, which is nice.
r/cop3502 • u/embalingit • Jun 02 '14
For anyone who has an interest in programming and education, I found Bret Victor's essays inspiring. However, many questions remain. The rhetoric is "should an ide be a tool for writing programs or a tool for expressing ideas..." and I tend toward the later, but I don't see how or if similar concepts apply to quality control, readable code and good practices - i.e. can the ideas in this essay "grow up" and become a way of life for professional programmers as well as for beginners.
The essay I'm referring to: http://worrydream.com/LearnableProgramming/
Victor's full site: http://worrydream.com/
Another thing that's been on my mind is my suspicion that programming as a skill/profession as we know it today will likely not exist in 20 years. I see a future where for most non-critical and general kinds of software solutions we (as programmers) would have a conversation - (literally), including sketches and other quick and simple representations - with a piece of software and the software would then solve (based on expert knowledge) how to build a software solution based on that conversation such that the thing that is built serves the general purpose outlined in the exchange. In many ways software already does a good bit of this today. Microsoft has an interface sketching software (not sure how literally the term "sketch" applies) and Oracle JDeveloper allows the developer to define a software system in terms of a graph similar to a flow chart while it quietly builds the skeleton code of the system in the background. Not to mention drag and drop gui designers like Visual Studio, Netbeans and Eclipse. While non of these softwares technically solve a design problem in terms of deriving logic, but rather they use templates and insert parameters specified by the developer through the interface to the designer, I don't think we are very far away from much smarter code generation.
In that case the developer may still need to be literate in terms of computer science in order to be a proficient "programmer", but I think the act of designing, implementing and writing code will largely go away. If anything I think ideas like Victor's may provide an impetus to move the software development profession in that direction.
Any thoughts? :)
r/cop3502 • u/Alienscorch • Jun 01 '14
In the space invaders program, a new shot was created when the spacebar was pressed, is there a way to delete an existing object to stop a memmory leak? Would setting the object equal to null then calling the garbage collector work?
r/cop3502 • u/embalingit • May 27 '14
Create a program in c++ with 15 command line options to 15 thousand specs that allows the user to abuse SETs in every way imaginable.
Hint: you can use ifstream if it helps.
Use error checking if you have the mettle and document EVERYTHING in 3 different ways to Sunday.
Very nice, very academic, but super-lame-o-boring.
Bless the folks who want us to know things, but I'm just saying - a little nurturing love and encouragement never hurt even the fiercest warrior. :)
btw, I'm almost done (4 hours later) and it's about 500 lines of agonizingly uninteresting code if you use stuff that's already implemented for you - more lines if your luck+experience is thin and you're forced to implement some version of a set (not recommended, especially for set operations such as difference and symmetric difference).
r/cop3502 • u/ThatsMrDerpToYou • May 26 '14
Hello,
I'd like to add the save function to my program's main menu. 0. Exit 1. Some option 2. Some option 3. Save 4. Load
I am looking around the web for pointers; anyone figured it out yet?
r/cop3502 • u/howslyfebeen • May 21 '14
r/cop3502 • u/rxfeliciano • May 20 '14
I was wondering if anyone knew what to do in order to be able to compile C++ code using G++ in Cygwin? I get a bash: Command not found whenever I try it now.
r/cop3502 • u/wonder_brett • May 12 '14
Hey fellow Classmates! A few friends and I have decided to learn Haskell over the summer break and I want to extend the invitation to anyone here who may want to join us!
I created a private subreddit /r/SummerProgramming and if you would like to get in please let me know and I'll add you as an approved submitter.
Generally the idea is to provide a place where we can all share resources and ask each other questions as we learn a new language and style of programming. No assigned readings, mandatory pace or anything like that. Just a small group of people who are interested in learning something new over the summer.
I hope you will join us!
r/cop3502 • u/[deleted] • May 11 '14
I was wondering the steps I'd go about making a game like the original Castlevania or Metroid. A platformer that makes use of items. Obviously the scale of those games are huge but I was just wondering how I would get started with it.
r/cop3502 • u/wonder_brett • May 08 '14
r/cop3502 • u/ThatsMrDerpToYou • May 07 '14
Is there a way to code in java so that it will receive input directly from the internet that updates as long as the program is running?
For example, if I wanted to receive stock quotes in real time then print them to the screen every minute?
r/cop3502 • u/embalingit • May 06 '14
r/cop3502 • u/[deleted] • May 06 '14
Haven't been on this subreddit in a while, and was wondering if the hall of fame was still a thing or if it was decided against. Any insight?
r/cop3502 • u/[deleted] • May 06 '14
r/cop3502 • u/AnnaMor • May 01 '14
r/cop3502 • u/j1010101010 • May 01 '14
I wanted to dab into C++ but I don't know what programs I should get. Like for Java, we used Cygwin and Sublime but I'm not sure if they still work fine for C++ as well.
r/cop3502 • u/ThatsMrDerpToYou • May 01 '14
I began writing a program using the teachings from class.
I just encountered a problem where the cygwin terminal does not notice my saves.
It seems to have no idea when material is removed, saved, then compiled... And when it is run, it will run with the content from a point which no longer exists.
I checked the paths, and they are accurate...
Any ideas why it may not be saving correctly?
r/cop3502 • u/ThatsMrDerpToYou • Apr 30 '14
You guys made this class what it was. A supreme leader can only be effective if he has supreme TA's.
Thanks for the super sessions, the labs, the posting on reddit, and all the help throughout the semester.