- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
5 Posted Topics
Hi, I'm working on classes with pointers. I do have a main function that calls this. This program compiles. But the input from the user isn't getting passed to the other functions. The user_input function should take the response and pass it to the create_posting then it is outputted to … | |
Hi so I have to create a group of postings into a linked list with arrays not strings.I'm just not sure how to go about getting/converting this information into a linked list? class Posting { public: Posting(); //Constructor ~Posting(); //Destructor void user_input(char * input,char* &response); void create_posting(); void display_posting();//displays the … | |
New to c++. I'm trying to figure out how to use strcmp with array's . I need to see if a array holds the word "hello". I can't get my code to work quite right. What is it missing? #include<iostream> #include<cctype> #include<cstring> using namespace std; int main() { char a[30]; … | |
` This is the code of Tic Tac Toe from Python the absolute beginner. How could I edit the global constants so the user could pick the pieces or should I just remove them all together? # global constants X = "X" O = "O" EMPTY = " " TIE … | |
import random as r def main(): roll1 = r.randint(1,6) roll2 = r.randint(1,6) point= 4,5,6,8,9,10 sum= roll1 + roll2 print("phase 1") print ("You rolled:", roll1, "and", roll2) if sum == 2 or sum== 3 or sum == 12: print("Game Over. You lose" ) elif sum == 7 or sum == 11: … |
The End.