• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:31
CEST 00:31
KST 07:31
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 1 - Final Week6[ASL19] Finals Recap: Standing Tall15HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Esports World Cup 2025 - Brackets Revealed14Weekly Cups (July 7-13): Classic continues to roll8Team TLMC #5 - Submission extension3Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7
StarCraft 2
General
RSL Revival patreon money discussion thread Who will win EWC 2025? Weekly Cups (July 7-13): Classic continues to roll The GOAT ranking of GOAT rankings Esports World Cup 2025 - Final Player Roster
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event Sea Duckling Open (Global, Bronze-Diamond) RSL: Revival, a new crowdfunded tournament series $5,100+ SEL Season 2 Championship (SC: Evo) WardiTV Mondays
Strategy
How did i lose this ZvP, whats the proper response
Custom Maps
External Content
Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome
Brood War
General
Flash Announces (and Retracts) Hiatus From ASL [ASL19] Finals Recap: Standing Tall BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Help: rep cant save
Tourneys
[Megathread] Daily Proleagues Cosmonarchy Pro Showmatches CSL Xiamen International Invitational [BSL20] Non-Korean Championship 4x BSL + 4x China
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread CCLP - Command & Conquer League Project The PlayStation 5
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Russo-Ukrainian War Thread Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2025!
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Men Take Risks, Women Win Ga…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 733 users

[Rant] My stupid professor

Blogs > Djagulingu
Post a Reply
Djagulingu
Profile Blog Joined December 2010
Germany3605 Posts
Last Edited: 2011-11-06 20:59:25
November 06 2011 20:58 GMT
#1
So this semester, I'm taking Data Structures course and I have its first homework and here is my problem:

I have to use Visual C++ 2010 for that, which is standardized by my professor and everyone who uses another compiler will get a big O from the homework. And the program is too stupid to generate .exe files from my .cpp formatted source codes, which basically prevents me from testing my stuff. Learning how to use that shit took longer than learning C++ for me and after learning how to write codes in that shit, now I have to learn how to test my codes. That is, if I learn to write a code that will not give a compilation error when I write it in the compiler.

Who in the world standardize a simple compiler so that people can finish the homework in less than the duration of a dark swarm when the goal is to make students fail miserably and rage instead of do the fucking homework and actually learn stuff? Hell, they can even standardize a compiler which itself requires a course for people to actually be able to use. Because other ones aren't shitty enough to make students be unable to do an easy homework.

Other than that, I have to use array of pointers to class objects as database and our professor was kind enough to give the codes for it. I wish that she was also smart enough so that her codes would actually work. Now I'm wondering: Is she actually stupid enough to write the wrong codes or is she intentionally giving the wrong codes? Because if it's the latter, I really wonder its reason that isn't satisfied by not giving the codes in the homework document in the first place.

If you wonder how stupid my professor is, just compile this code:

+ Show Spoiler +
WorkerID * worker[5];
WorkerID _20111("20111","Hofstadter","Leonard","LeonardsDad","LeonardsMom","Birthplace","Birthdate",3,1);
WorkerID _20112("20112","Wolowitz","Howard","HowardsDad","HowardsMom","Birthplace","Birthdate",4,0);
WorkerID _20113("20113","Cooper","Sheldon","SheldonsDad","SheldonsMom","Birthplace","Birthdate",1,5);
WorkerID _20114("20114","Koothrappali","Raj","RajsDad","RajsMom","Birthplace","Birthdate",2,3);
WorkerID _20115("20115","PennysSurname","Penny","PennysDad","PennysMom","Birthplace","Birthdate",4,4);
worker[0] = &_20111;
worker[1] = &_20112;
worker[2] = &_20113;
worker[3] = &_20114;
worker[4] = &_20115;

Note: Even though how small the probability of my professor coming to TL looks to me, I changed some parts of the code (such as the names of people, names of classes&variables) so that she won't find this blog when/if she googles her stupid code.

Which brings me back to the original points.

Dear professor,

I wonder what you were thinking when you were doing this. Is this some kind of an unoriginal prank or whatever? And are you stupid enough to a) find this funny or b) write this shit in the homework document without actually writing it in the compiler. And what about the choice of compiler? Did you actually think before doing that never mind, that was a stupid question, of course you didn't think, but would you choose the same compiler if you had to teach your students how to use the compiler of your choice in your free time?

Anyway, thanks for making this homework somewhat challenging. But I would like some actual challenge, not a stupid compiler which makes it impossible for me to test my codes or gives compilation errors to your code, which is supposed to be compiled before being written on the homework document, or random while loops (Yes, I actually had a compilation error on a while loop, it required a ';' after 'while(i < 4)').

Shit would be a lot better if homework wasn't due this Friday and there wasn't a shitty Muslim Bayram until this Thursday because I would actually be able to find guys who can use Visual C++.

"windows bash is a steaming heap of shit" tofucake
green.at
Profile Blog Joined January 2010
Austria1459 Posts
November 06 2011 21:04 GMT
#2
You do not know Penny's Surname?!

seems like you have a lot of fun with your homework PP
Inputting special characters into chat should no longer cause the game to crash.
Sufficiency
Profile Blog Joined October 2010
Canada23833 Posts
Last Edited: 2011-11-06 21:07:49
November 06 2011 21:05 GMT
#3
"PennysSurname" - hahahahaha.


Which university is this? I find it odd that a university would teach a course that is platform specific - Microsoft Windows, in this case - even though the course itself should be cross-platform.

On November 07 2011 06:04 green.at wrote:
You do not know Penny's Surname?!

seems like you have a lot of fun with your homework PP


Not sure if you are being intentionally ignorant. Penny's last name has never been revealed on the show. Even though her dad appeared on the show before, Leonard called him by first name only.
https://twitter.com/SufficientStats
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
Last Edited: 2011-11-06 21:24:01
November 06 2011 21:13 GMT
#4
Not really sure where your problem with VS is. While plain VS isn't the bet IDE for C++, it's not that bad. Forcing people to use a specific compiler is annoying, yes. We usually were forces to use gcc on linux, where I'd prefer VS on windows. But for primitive code like this it doesn't really matter.

Create a new project. Add cpp files in the the code file section and the header files in the header section of the project. Press F5, and it should work. It also produces an exe file, so no idea what your problem is.

A `;` after that `while` loop makes no sense at all, not sure what you're talking about there. While there are some `while` loops that make sense with a `;` behind them, `while(i < 4)` never does.

And the code sample is certainly ugly, but I don't see any significant mistake at a glance.
LiquipediaOne eye to kill. Two eyes to live.
Djagulingu
Profile Blog Joined December 2010
Germany3605 Posts
Last Edited: 2011-11-06 21:23:17
November 06 2011 21:16 GMT
#5
On November 07 2011 06:05 Sufficiency wrote:
"PennysSurname" - hahahahaha.


Which university is this? I find it odd that a university would teach a course that is platform specific - Microsoft Windows, in this case - even though the course itself should be cross-platform.

Show nested quote +
On November 07 2011 06:04 green.at wrote:
You do not know Penny's Surname?!

seems like you have a lot of fun with your homework PP


Not sure if you are being intentionally ignorant. Penny's last name has never been revealed on the show. Even though her dad appeared on the show before, Leonard called him by first name only.

Middle East Technical University. There were some random Turkish names in the code, which got replaced by... well, you know who. And the compiler is like the combination of SKT Zergs and Woongjin Terrans.

On November 07 2011 06:04 green.at wrote:
You do not know Penny's Surname?!

seems like you have a lot of fun with your homework PP

I don't. Could you inform me if you do?

On November 07 2011 06:13 MasterOfChaos wrote:
Not really sure where your problem with VS is. While plain VS isn't the bet IDE for C++, it's not that bad. Forcing people to use a specific compiler is annoying, yes. We usually were forces to use gcc on linux, where I'd prefer VS on windows. But for primitive code like this it doesn't really matter.

Create a new project. Add cpp files in the the code file section and the header files in the header section of the project. Press F5, and it should work. It also produces an exe file, so no idea what your problem is.

A `;` after that while look makes no sense at all, not sure what you're talking about there. While there are some while loops that make sense with a `;` behind it, `while(i < 4)` never does.

Well, when that primitive code (the one involves big bang theory characters) itself gives me a compilation error, I get on the edge of going crazy. I also was unable to comprehend my compiler when it gave me errors when I tried to build my project after getting zero compilation errors in every single code line.
"windows bash is a steaming heap of shit" tofucake
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
Last Edited: 2011-11-06 21:37:02
November 06 2011 21:36 GMT
#6
After adding a dummy `WorkerID` class your sample code compiled for me.

Created a new Win32 console application, unchecked precompiled headers, checked empty project.

Then added a .cpp file under "Source Files" containing a main function, a dummy class and your code. No problems. Compiled, created an .exe file and ran without error.
LiquipediaOne eye to kill. Two eyes to live.
green.at
Profile Blog Joined January 2010
Austria1459 Posts
Last Edited: 2011-11-06 21:38:21
November 06 2011 21:37 GMT
#7
On November 07 2011 06:05 Sufficiency wrote:
"PennysSurname" - hahahahaha.


Which university is this? I find it odd that a university would teach a course that is platform specific - Microsoft Windows, in this case - even though the course itself should be cross-platform.

Show nested quote +
On November 07 2011 06:04 green.at wrote:
You do not know Penny's Surname?!

seems like you have a lot of fun with your homework PP


Not sure if you are being intentionally ignorant. Penny's last name has never been revealed on the show. Even though her dad appeared on the show before, Leonard called him by first name only.


i think he also did not have fun with his homework ^^
edit: but i bet i got someone to google for her last name
Inputting special characters into chat should no longer cause the game to crash.
Djagulingu
Profile Blog Joined December 2010
Germany3605 Posts
November 06 2011 21:39 GMT
#8
On November 07 2011 06:36 MasterOfChaos wrote:
After adding a dummy `WorkerID` class your sample code compiled for me.

Created a new Win32 console application, unchecked precompiled headers, checked empty project.

Then added a .cpp file under "Source Files" containing a main function, a dummy class and your code. No problems. Compiled, created an .exe file and ran without error.

[image loading]

Then why in the world am I getting this error?
"windows bash is a steaming heap of shit" tofucake
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
Last Edited: 2011-11-06 21:45:44
November 06 2011 21:42 GMT
#9
You put code outside a function. If you put the quoted lines inside your main function it should compile.
LiquipediaOne eye to kill. Two eyes to live.
Djagulingu
Profile Blog Joined December 2010
Germany3605 Posts
November 06 2011 21:51 GMT
#10
On November 07 2011 06:42 MasterOfChaos wrote:
You put code outside a function. If you put the quoted lines inside your main function it should compile.

It really did. Now I feel like the idiot in the place.
"windows bash is a steaming heap of shit" tofucake
green.at
Profile Blog Joined January 2010
Austria1459 Posts
November 06 2011 21:56 GMT
#11
damn that looks confusing, good thing i can noob around with eclipse and visual studio.
what semester are you in?
Inputting special characters into chat should no longer cause the game to crash.
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
November 06 2011 22:00 GMT
#12
Can you post the code where you needed to put a `;` behind a while loop? There are a few idioms that use bodyless loops, but personally I think that such code is ugly. In your example the condition had no side effects, so a bodyless while loop doesn't make sense there.
LiquipediaOne eye to kill. Two eyes to live.
LML
Profile Blog Joined March 2007
Germany1764 Posts
November 06 2011 22:21 GMT
#13
unless it was a do-while loop;d

We also have to present our programming homework on an OpenSUSE distribution in the VIM editor or otherwise we will not get any points for it.
I always do them on windows anyway and then just copy/paste them there, but this seems to be a little different.
Or doesn't it just work to open the .c or .cpp file with yoru VC++2010 and then compile it so it creates all the needed project files and then run it and you got the .exe? I only used VC++2006 in the past, it did work that way there.
LML
Djagulingu
Profile Blog Joined December 2010
Germany3605 Posts
Last Edited: 2011-11-06 22:30:10
November 06 2011 22:23 GMT
#14
On November 07 2011 07:00 MasterOfChaos wrote:
Can you post the code where you needed to put a `;` behind a while loop? There are a few idioms that use bodyless loops, but personally I think that such code is ugly. In your example the condition had no side effects, so a bodyless while loop doesn't make sense there.

I was trying alternatives to the code given by my professor when I got that, I instantly deleted that code when I got my professor's code running.

On November 07 2011 07:21 LML wrote:
unless it was a do-while loop;d

We also have to present our programming homework on an OpenSUSE distribution in the VIM editor or otherwise we will not get any points for it.
I always do them on windows anyway and then just copy/paste them there, but this seems to be a little different.
Or doesn't it just work to open the .c or .cpp file with yoru VC++2010 and then compile it so it creates all the needed project files and then run it and you got the .exe? I only used VC++2006 in the past, it did work that way there.

Shit actually started working. I still don't have the .exe files in my project folder but I don't need them anyway as I can run my codes now.
"windows bash is a steaming heap of shit" tofucake
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
November 06 2011 22:40 GMT
#15
The .exe file gets creating in a subdirectory called "Debug" or "Release", depending on how you build it.
LiquipediaOne eye to kill. Two eyes to live.
Please log in or register to reply.
Live Events Refresh
Next event in 1h 29m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ZombieGrub246
Nathanias 154
UpATreeSC 134
JuggernautJason91
Nina 64
Ketroc 21
ForJumy 6
StarCraft: Brood War
Sea 2960
Mini 331
[sc1f]eonzerg 32
Stormgate
NightEnD14
Dota 2
monkeys_forever13
League of Legends
Dendi1701
Counter-Strike
flusha326
Super Smash Bros
Liquid`Ken42
Heroes of the Storm
Liquid`Hasu567
Other Games
summit1g8692
tarik_tv7334
shahzam1227
C9.Mang0210
ViBE162
Skadoodle118
Livibee66
Trikslyr47
PPMD46
Organizations
Other Games
gamesdonequick2639
BasetradeTV21
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• Berry_CruncH230
• RyuSc2 59
• davetesta23
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• Azhi_Dahaki19
• Eskiya23 19
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota22632
League of Legends
• TFBlade1075
Other Games
• imaqtpie1974
• Scarra1597
Upcoming Events
Replay Cast
1h 29m
OSC
1h 29m
Epic.LAN
13h 29m
Big Brain Bouts
17h 29m
sebesdes vs SpeCial
Harstem vs YoungYakov
GgMaChine vs uThermal
CranKy Ducklings
1d 11h
Epic.LAN
1d 13h
CSO Contender
1d 18h
BSL20 Non-Korean Champi…
1d 19h
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
Sparkling Tuna Cup
2 days
Online Event
2 days
[ Show More ]
BSL20 Non-Korean Champi…
2 days
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Esports World Cup
4 days
ByuN vs Astrea
Lambo vs HeRoMaRinE
Clem vs TBD
Solar vs Zoun
SHIN vs Reynor
Maru vs TriGGeR
herO vs Lancer
Cure vs ShoWTimE
Esports World Cup
5 days
Esports World Cup
6 days
Liquipedia Results

Completed

JPL Season 2
RSL Revival: Season 1
Murky Cup #2

Ongoing

BSL 2v2 Season 3
Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
Championship of Russia 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters

Upcoming

CSL Xiamen Invitational
CSL Xiamen Invitational: ShowMatche
2025 ACS Season 2
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
K-Championship
RSL Revival: Season 2
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
Esports World Cup 2025
Underdog Cup #2
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.