¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

C++

Rob Newman C++ Inglés 5,0Valoración media 5,0 de 5 (3 valoraciones) 19 fichas

C++

Fichas del conjunto (19)

  1. 1What does a compiler do?A compiler takes the source code you can read and write, and transforms it into a different format. Like object files.
  2. 2What happens to object files after they are compiled?They are linked together to make an executable file.
  3. 3The three times that are important at the lifetime of a C++ program are?Compile time, link time and run time.
  4. 4What is the shortcut key to view an error in visual studio docs?F1
  5. 5To put characters on the screen for the user to read you use Stream I/O. Explain Stream I/O?I/O stands for Input/Output. It can read input from the keyboard and write input to the screen
    Or it can read from files or write to files.
  6. 6C++ supports stream with I/O operators What are 2 operators and what do they do?>> Sends something to a stream
    << reads something from a stream
  7. 7What is #include?#include will include a file into your application
    #include
    It opens up a world of libraries and capabilities.
    (for libraries you need to also link-in the library)
  8. 8Variables in C++ hold information. A variable can only hold 1 particular type of information. Variable can be user defined. Give 5 examples of variables.String, Integer, Date Employee, Job title,
  9. 9True of false. Variables must be declared before they are used?True
  10. 10What are namespaces and what are they used for?Namespaces are used for preventing name conflicts, so you may have two classes with the same name in different namespaces. Namespaces are used to organize code into logical groups and to prevent name collisions that can occur especially when your code base includes multiple libraries.
  11. 11Declare a variable, initialize the variable then print out the variable.int i;
    i = 3;
    cout << i << endl;
  12. 12Declare a float, initialize the float then print out the floatfloat i;
    i = 4.3f;
    cout << i << endl;
  13. 13What is a function?A function is a bit of code you want to use repeatedly. You give it a name so that it can be called.
  14. 14Write out a basic function?Int add (int x, int y)
    {
    Return x+ y.
    }
  15. 15Now call the function?Int a = add(3,4);
  16. 16What is overloading?Having two functions with the same name but different parameters
  17. 17Describe a c++ function?A function is a group of statements that together perform a task. Every C++ program has at least one function, which is main()
  18. 18What will this function return?8What will this function return?
  19. 19—The first result is 5
    The second result is 5
    The third result is 2
    The fourth result is 6
    The first result is 5 The second result is 5 The third result is 2 The fourth result is 6

Información

Descripción
Learning C++ Programming Language for Game and Software Development
Creado por
Rob Newman
Visitas
392
Valoración
Valoración media 5,0 de 5 (3 valoraciones)

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?