hi im taking an intro to CS class and we've been told to use the compiller visual studio code however i am unable to type anything into the terminal window to actually run my code. the only thing present is a computer path and a microsoft version. It won't allow me to use the "$" which I need to get my code to run. On zoom my professors terminal window was completely empty where as mine contains what's down below by default . "Microsoft Windows [Version 10.0.19044.2251] (c) Microsoft Corporation. All rights reserved. C:\Users\mayca>"

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

hi im taking an intro to CS class and we've been told to use the compiller visual studio code however i am unable to type anything into the terminal window to actually run my code. the only thing present is a computer path and a microsoft version. It won't allow me to use the "$" which I need to get my code to run. On zoom my professors terminal window was completely empty where as mine contains what's down below by default .

"Microsoft Windows [Version 10.0.19044.2251]
(c) Microsoft Corporation. All rights reserved.

C:\Users\mayca>" 

 

1 #include <cs50.h>
2 #include <stdio.h>
3
4
5
6
7
8
int main(void)
{
}
string answer = get_string("What's your name ");
printf("hello, world\n");
PROBLEMS OUTPUT DEBUG CONSOLE TERMINAL
Microsoft Windows [Version 10.0.19844.2251]
(c) Microsoft Corporation. All rights reserved.
C:\Users\mayca>
Transcribed Image Text:1 #include <cs50.h> 2 #include <stdio.h> 3 4 5 6 7 8 int main(void) { } string answer = get_string("What's your name "); printf("hello, world\n"); PROBLEMS OUTPUT DEBUG CONSOLE TERMINAL Microsoft Windows [Version 10.0.19844.2251] (c) Microsoft Corporation. All rights reserved. C:\Users\mayca>
Expert Solution
Step 1: Solution

It sounds like you may be in the terminal window in Visual Studio Code, but you are not in a specific shell or command prompt. The "$" symbol is typically used to indicate that you are in a shell, such as Bash or PowerShell, where you can execute commands.

To start a shell in the terminal window, you can try the following steps:

  1. Click on the "Terminal" menu in the top toolbar of Visual Studio Code.
  2. Select "New Terminal" to open a new terminal window.
  3. You should now be in a default shell or command prompt. You can check which shell you are in by typing "echo $SHELL" and pressing enter. This should display the path to your default shell.
  4. From here, you can navigate to the directory where your code is located and execute the necessary commands to compile and run it.

If you are still having trouble, you may want to reach out to your professor or TA for additional assistance. They should be able to provide more specific guidance for your course and the tools being used.

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY