Q&A for How to Write Standard Code in C++

Return to Full Article

Search
Add New Question
  • Question
    What do I need to know when starting to write C++?
    Tyrone Showers
    Technologist
    Tyrone Showers is a Technologist and the Co-owner of Taliferro Group, an IT consulting company based in Seattle, Washington. With over 35 years of professional experience, he specializes in API Design, e-Commerce, Operational Efficiency, and website development. He has a B.S. in Computer Science from DeVry Institute of Technology.
    Technologist
    Expert Answer
    To embark on coding in C++, it's essential to grasp fundamental programming concepts such as variables, data types, loops, and conditions. These serve as the foundational elements in any programming language, including C++. Numerous online resources are available for learning C++, and development environments like Visual Studio have significantly facilitated the rapid comprehension of developers. Persistence and dedication are crucial. Begin by creating small programs for practical use or exploring concepts you've been curious about. The more you engage in coding, the deeper your understanding of C++ and your ability to solve problems using it will become.
  • Question
    Is there a site where I can learn to make projects using C++?
    JesusFreaks 1225
    Community Answer
    Sololearn.com, it teaches you the basics. If you want to get further into C++ it may require a subscription to a site. Check out the free trial and see if you think it is worth it.
  • Question
    How can I download C++ on my 32 bit Windows 7 PC?
    Community Answer
    C++ is a programming language. It cannot be downloaded.
  • Question
    Can I write using my tablet?
    Community Answer
    Yes, get an app on a tablet that has word processing, and you can use the keyboard to type stuff.
  • Question
    Can I develop an app with C++?
    Community Answer
    Yes, but cross-integration is most likely necessary for a more dynamic experience. It's best to know Java and HTML too.
  • Question
    What does "valuable int" mean?
    Bl4ckbo7
    Community Answer
    int in C++ programming is a keyword and one of the data-types in C++ language. It stands for integer.
  • Question
    How do I save an input parameter and then re-display it onscreen?
    WalkerTyme
    Community Answer
    You can save any input in a variable like an int or a double with CIN or Scanf, and then output it again whenever you need to with Cout or PrintF.
  • Question
    How can I go about programming in C++ on my computer?
    Community Answer
    To start, download a compiler or an integrated development environment (IDE). I would recommend an IDE, as it enables for compiling and debugging in one package; try Code::Blocks or Visual Studio. The next step is to research and find a tutorial method that works for you (try YouTube to find tutorials). After you have a relatively decent understanding, use textbooks to enhance your learning.
  • Question
    How do I save my C++ program code?
    Bryan Hadland
    Community Answer
    Save it in a file called "myfile.cpp".
  • Question
    How do I download the C++ compiler on my computer?
    Community Answer
    There are many C++ compilers that you can use. In modern Linux distributions, gcc is preinstalled; on Windows you can use the compiler bundled in some Code::Blocks versions (ones that have "mingw" in the setup file name) or Microsoft Visual C++ Compiler alongside Microsoft Visual Studio.
  • Question
    How do I get help learning C++?
    Community Answer
    Unless you have the money to hire a tutor, you can use community resources and websites. I would suggest learning an easier language if you are just now stepping into the coding world, as C++ is very complex as far as coding languages go; it is usually to your benefit to learn something easier first to get the hang of the coding world. Sololearn.com has free tutorials, and Codeacademy.com has free tutorials for the first week.
  • Question
    How do I find a how to video on writing code in C++?
    Community Answer
    You can search it in YouTube. I recommend a channel called Caleb Curry who has helpful video tutorials on C++. You're going to learn while having fun.
  • Question
    What is the use of return 0?
    Mariam Atbouli
    Community Answer
    It is used to tell the machine that the program executed successfully. Any other number means it didn't.
  • Question
    How do I make it a .exe file?
    Community Answer
    Make a batch script that runs the C++ program, then convert that batch file to EXE (include your C++ program in your batch file EXE).
  • Question
    I have an assignment to write a letter using code blocks, I need to know how to do that?
    Rat
    Community Answer
    Use the Pencilcode.com website, there you can use both code blocks and text code. The website uses a coding language called coffeescript, and is really easy to learn.
  • Question
    How do I write a program that asks the user to enter three integers and calculates their roots?
    Community Answer
    Use std::cin and the extraction operator (>>) to extract three integers at a time from the user (make sure to initialize some variables beforehand and then write the integers to those variables). Then, individually print the roots of the three integers with std::cout, the insertion operator.
Ask a Question

      Return to Full Article