Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~5K People Reached
Favorite Forums
Favorite Tags
c++ x 18
c x 3
Member Avatar for Carc369

I'm used to if/else. Can someone tell me if this correct or not. It's not pulling up an error but it's not outputting what I want it to output either. Thank you! char pick; cin >> pick; if(pick == 'a' || pick == 'A') stuff inside here //For case switch... …

Member Avatar for awaisahmad13
0
135
Member Avatar for Carc369

I will be posting bits and pieces of my code that is relevant. //Function Prototype int binarySearch(char*); // Binary search of dictionary. the Function I'm passing to. char* reverseTruncateCipher[80]; <---- variable I'm passing. /*I have these variables stored in them reverseTruncateCipher[0] = all reverseTruncateCipher[1] = generalizations reverseTruncateCipher[2] = are reverseTruncateCipher[3] …

Member Avatar for Ancient Dragon
0
225
Member Avatar for Carc369

I'm trying to think of a way to compare a string of multiple words and take each individual word to a dictionary. I have a binary search already coded but it's just breaking the string apart I'm having trouble with. I have to use C-Style Strings (character arrays). For instance …

Member Avatar for Carc369
0
161
Member Avatar for Carc369

Basically this function is supposed to accept a user inputted string, and the amount it is supposed to be transposed by 'x' amount (between 0-25). The idea behind transposition is that if the user enters "abc" for the string and then wants to transpose it by 1. The new string …

Member Avatar for Carc369
0
156
Member Avatar for Carc369

How do you do that? This code reads in the book. It reads in fine. Now I just have to alter it so it doesn't read in repeat words in the book. How would I do that? void readInStory(){ ifstream inStream; // declare an input stream for my use int …

Member Avatar for vijayan121
0
686
Member Avatar for Carc369

I've tried cin >> userInput; and it stops reading the word after it hits a space. but then I tried cin.get and it just skips all the other cins. Then I tried cin.getline and it skips over the userInput cin and goes right to the next cin (cin >> direction). …

Member Avatar for vijayan121
0
546
Member Avatar for Carc369

For instance... say that I set char a = 'a' char b = 'b' how would I combine them to make them "ab" using strcat?

Member Avatar for Lucaci Andrew
0
321
Member Avatar for Carc369

Basically I'm trying to see if the first letter is in the dictionary... then if it is.. check if the first and second letter are in the dictionary.. and if it is... check if the first, second, and third letter are in the dictionary... and so on and so forth. …

Member Avatar for Banfa
0
263
Member Avatar for Carc369

How do I combine two c-style strings together? Basically I'm trying to see if the first letter is in the dictionary... then if it is.. check if the first and second letter are in the dictionary.. and if it is... check if the first, second, and third letter are in …

Member Avatar for Ancient Dragon
0
389
Member Avatar for Carc369

For instance, shouldn't the following code work if I wanted to pass an element of a 2d array? if not what would be the best way to do it? Thank you! #include <iostream> using namespace std; void randomProgram(char random[][]){ random code inside of here; } int main(){ char letters[6][6] = …

Member Avatar for rubberman
0
142
Member Avatar for Delnith

I am looking for a project or goal to reach in order to improve me programming skills. I'd say I am still a beginner as it comes to C programming and would like a project to work on but cannot seem to think one, any ideas?

Member Avatar for Schol-R-LEA
0
229
Member Avatar for Carc369

Basically my assignment is create the best Boggle board. Basically so far I've successfully created a randomly generated board, read in the dictionary, allocated dynamic memory for the dictionary, counted the frequency of each letter (for example 'a' has x amount of characters in the dictionary), and found the percentage …

0
152
Member Avatar for Carc369

I'm in an introductory CS course and our task is to build the best ideal boggle board (one that would get you the most points). We are allowed to use arrays, c-strings, and reference parameters (no structs/pointers since we are just starting to learn about those). Step one: I built …

Member Avatar for Carc369
0
2K