Jump to content

General C++ help

79wjd

So, I'm having a decent bit of trouble figuring stuff out for my CS class, and unfortunately the TAs are kind of useless (because of how things are set up--not enough of them/too few hours/too many people using them). 

 

So, would anyone who knows C++ be willing to help me with some stuff?

 

/posting the code here wouldn't really be practical since they're entire MPs (machine problems -- mini programs).

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

Maybe post the question(s) being asked, your problem, and provide a link to download the code? If not, I'm sure someone will be able to help you off the forums.

Link to comment
Share on other sites

Link to post
Share on other sites

What's your problem with C++?

General trouble in the class as a whole, and specifically not understanding how to do some of the work at all.

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

I'm problably able to answer some of your questions. But I need some questions to answer to be able to do so.

 

What are you seeing in your classes

Link to comment
Share on other sites

Link to post
Share on other sites

I'm problably able to answer some of your questions. But I need some questions to answer to be able to do so.

 

What are you seeing in your classes

Well, thats part of my problem....It's less specific questoins and more a lack of understanding/know-how. Like, when we do stuff in class, I understand whats going on; and when I'm looking at code I can also understand whats going on....but actually being able to write that code is where I have trouble... 

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

first in the init_file_word_maps for each file you need to loop through the vector of words provided and first get the numbers of the time this word has been repeated in this document from the map file_word_maps at the index of the current file and create it if it doesn't exist or increment the count if it exists. 

 

Pseudocode

 

word_map = file_word_maps;

foreach (word in file) {

     int wordCount = 1;

     if (word_map.contains(word)) {

             int wordCount = word_map.get(word)++;

     } 

     word_map.put(wordCount);

}

Link to comment
Share on other sites

Link to post
Share on other sites

first in the init_file_word_maps for each file you need to loop through the vector of words provided and first get the numbers of the time this word has been repeated in this document from the map file_word_maps at the index of the current file and create it if it doesn't exist or increment the count if it exists. 

Let me clarify, I don't have the slightest clue how to implement* the functions in the lab.

PSU Tier List | CoC

Gaming Build | FreeNAS Server

Spoiler

i5-4690k || Seidon 240m || GTX780 ACX || MSI Z97s SLI Plus || 8GB 2400mhz || 250GB 840 Evo || 1TB WD Blue || H440 (Black/Blue) || Windows 10 Pro || Dell P2414H & BenQ XL2411Z || Ducky Shine Mini || Logitech G502 Proteus Core

Spoiler

FreeNAS 9.3 - Stable || Xeon E3 1230v2 || Supermicro X9SCM-F || 32GB Crucial ECC DDR3 || 3x4TB WD Red (JBOD) || SYBA SI-PEX40064 sata controller || Corsair CX500m || NZXT Source 210.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×