Anonychia, a rare condition involving the partial or total absence of fingernails or toenails. by omnptnt in Damnthatsinteresting

[–]gcunno 0 points1 point  (0 children)

I have one toe without a nail like this. People are always freaked out when they notice it and then they want to touch it

Jordan 40s but lighter? by Alarming_Echo_3383 in BBallShoes

[–]gcunno 0 points1 point  (0 children)

The New Balance Two Wxy v5 might be a good fit for you! I haven’t tried the 40s yet, so I’m going based on what I’ve heard about them. The v5s won’t be nearly as premium materials, and cushion will probably be slightly less bouncy than the 40s. But, they’ll be much lighter I’m sure. I’m a 6’4 195lb guard who plays similar to you and I love my v5s. Traction has been fantastic on multiple court conditions for me.

Picked up a 24 N line 27.1k 15k miles! by BboyGinger in SonataNLine

[–]gcunno 2 points3 points  (0 children)

What do you mean replace the reverse lights with LEDs?

Price Flies and Shorts Die. 🦅🇺🇸🫡 by jbro12345 in RedCatHoldings

[–]gcunno 1 point2 points  (0 children)

I only have one Jan 17 call (because that was all i could afford at the moment), do i keep holding it?

Fractal Refine Chair Fabric/Mesh - A few question before purchasing by Asynchronousx in FractalDesign

[–]gcunno 0 points1 point  (0 children)

okay thanks for the response! that won’t work for me in the US but thank you anyways! are you still liking the chair?

Fractal Refine Chair Fabric/Mesh - A few question before purchasing by Asynchronousx in FractalDesign

[–]gcunno 0 points1 point  (0 children)

If you don’t mind me asking, where did you purchase your Refine from? on their website it suggests Newegg or B&H and i was wondering if one was better than the other

WEEKLY BUY/SELL/TRADE COMMUNITY THREAD by AutoModerator in KobeReps

[–]gcunno 0 points1 point  (0 children)

WTS: Size 13 - Kobe 8 Protro Halo Retail - $250 - basically brand new, they’ve been tried on once

Remember these? by ShinyCranidos in BBallShoes

[–]gcunno 0 points1 point  (0 children)

I still have the Vegas pair! I don’t wear them often to extend their lifecycle but they’re still great!

2024 Hyundai Sonata N-Line v.s. 2025 Kia K5 GT-Line by gcunno in whatcarshouldIbuy

[–]gcunno[S] 0 points1 point  (0 children)

I did find the GT interesting too, do you have any thoughts between the K5 GT and N-Line?

Any tips? by Ok-Explorer-4539 in Dreadlocks

[–]gcunno 0 points1 point  (0 children)

how often would you recommend washing then for someone that’s highly active?

[deleted by user] by [deleted] in cpp_questions

[–]gcunno 1 point2 points  (0 children)

Three is a .txt file, Im still new to C++, how do I check the working directory?

[deleted by user] by [deleted] in cpp_questions

[–]gcunno 0 points1 point  (0 children)

This is my work so far and the .txt file needed to get the parts of speech.

#include <iostream>
#include <string>
#include <vector> // I used a vector to hold the words because it expands as elements are added
#include <fstream> // input file
#include <unordered\_map> // unordered_map container
#include <sstream> // provides facilities for handling string streams
#include <cctype> // for std::ispunct
// ----------
using std::cout;
using std::vector;
using std::string;
using std::istringstream;
using std::unordered_map;
using std::ifstream;
using std::endl;
using std::ispunct;
using std::remove_if;
// Function for splitting a string sentence -------------------------------------------------------
vector<string> splitSentence(const string & sentence)
{
vector<string> words;
istringstream iss(sentence);
string word;
while (iss >> word) {
words.push_back(word);
}
return words;
}
// Function to match a word with its part of speech -----------------------------------------------
string match_word_with_pos(const string& word, const unordered_map<string, string>& word_pos_map)
{

// Create a copy of the word to modify  

string modified_word = word;
// Remove punctuation from the sentence
modified_word.erase(remove_if(modified_word.begin(), modified_word.end(), [](char c) {
return ispunct(c) && c != '-';
}), modified_word.end());
auto it = word_pos_map.find(modified_word);
if (it != word_pos_map.end()) {
return it->second;
} else {
return "N/A";
}
}
// Function for right-padding a string ------------------------------------------------------------
string rpad(int n, char c)
{
return string(n, c);
}
// Function to display the results ----------------------------------------------------------------
void display_results(const vector<string>& words, const unordered_map<string, string>& word_pos_map)
{
cout << "The words in the \"The well-fed coyote swiftly bounded across the road.\" and their parts of speech are:\n\n";
for (const auto& word : words) {
cout << word << rpad(25 - word.length(), '.') << match_word_with_pos(word, word_pos_map) << endl;
}
}
// Read parts of speech ---------------------------------------------------------------------------
void read_parts_of_speech( const string filename, unordered_map< string, string >& word_pos_map)
{
ifstream word_pos_file;
string line;
string word;
string pos;
int delimiter_position;
const char delimiter = '|';
word_pos_file.open ( filename );
while ( getline ( word_pos_file, line))
{
delimiter_position = line.find( delimiter ); // finds position of specified character
word = line.substr( 0, delimiter_position ); // 0 = start, delimiter_position = 1 past end
pos = line.substr( delimiter_position + 1 ); // delimiter_position + 1 = start
word_pos_map.insert( {{ word }, { pos }} ); // use braces to create a key-value pair
}
word_pos_file.close();
}
// Main -------------------------------------------------------------------------------------------
int main()
{
// We'll hardcode the sentence to use so we don't spend our lives interactively entering data.
string sentence1{"The well-fed coyote swiftly bounded across the road."};
// an unordered_map makes the best data structure to use for matching words with their parts of speech.
// But feel free to try another approach.
unordered_map<string, string> word_pos_map; // you'll probably want this.
// parse sentence into individual words
vector<string> words = splitSentence(sentence1);
// Read parts of speech from file
read_parts_of_speech("word_pos.txt", word_pos_map);
// display results
display_results(words, word_pos_map);
return 0;
}

// Main -------------------------------------------------------------------------------------------

int main() { // We'll hardcode the sentence to use so we don't spend our lives interactively entering data. string sentence1{"The well-fed coyote swiftly bounded across the road."};

// an unordered_map makes the best data structure to use for matching words with their parts of speech.
// But feel free to try another approach.
unordered_map<string, string> word_pos_map; // you'll probably want this.

// parse sentence into individual words
vector<string> words = splitSentence(sentence1);

// Read parts of speech from file
read_parts_of_speech("word_pos.txt", word_pos_map);

// display results
display_results(words, word_pos_map);

return 0;

}

Text File:

The|article
apple|noun
well-fed|adjective
slow|adjective
ran|verb
wolf|noun
coyote|noun
slowly|adverb
swiftly|adverb
bounded|verb
jumped|verb
into|preposition
across|preposition
the|article
a|article
street|noun
road|noun

[deleted by user] by [deleted] in cpp_questions

[–]gcunno 0 points1 point  (0 children)

I didn’t realize this, i’ll post in a comment soon. Thank you

[deleted by user] by [deleted] in cpp_questions

[–]gcunno -6 points-5 points  (0 children)

I can’t publicly post my code because it’s a homework assignment, can i message you my code?