598 Answered Questions for the topic C++
C++
06/10/18
C++ rearranging
Fill in the blanks to declare a class "test" with a "foo()" public member function. Declare a pointer "myPtr" to "test" and call "foo()" via the pointer.class test{_____ :void foo() { }};_____...
more
C++
06/10/18
C++ rearranging
Rearrange the code to declare a file object and an associated file ''myfile.txt''. Write ''I can work with files'' to the file if the file is open. Otherwise, print ''Something went wrong'' to the...
more
C++ Programming
04/15/18
C++ programming
How to write a C++ program that requests an integer value from the user. If the value is between 1 and 100 inclusive, print “OK;” otherwise, print “Out of range.”
02/21/18
If you declare an integer pointer as int *pt; and you declare an integer variable as int num; , then which of the following is legal?
A. num = &pt; B. pt = # C. *num = *pt; D. &num = pt;
Please do not mention C.
C++
02/20/18
If you declare an integer pointer as int *pt; and you declare an integer variable as int num; , then which of the following is legal?
A. num = &pt; B. pt = # C. *num = *pt; D. &num = pt;
C++
02/20/18
If you want to store an integer array named list at memory location 2000, you make the statement _____.
A. int list[] = 2000; B. &list[] = 2000; C. 2000 = &int list[0]; D. You cannot locate an array at a specific address like 2000.
C++
02/07/18
A Dual Letter String is a string containing only As and/or Bs. A Magical Dual Letter String of parameter length N and X is a Dual Letter String of length N but
code related
provide answer in 12 to 15 min
09/06/17
Char tic tac toe
char tic_tac_toe(char board[][3]): Given the configuration of atic-tac-toe board, return the winner (‘x’ if ‘x’ wins, ‘o’ if ‘o’ wins, and ‘d’ if it’s a draw ).
09/06/17
Size of array
void copy(int a[], int b[], int n): Make a copy of a givenarray a of size n into b. Assume that the size of array b is the same as a and the memory for array b has been allocated.
09/06/17
arrays question
int sorted(int a[], int n): Test if a given array a of size n is sortedin ascending order.
C++
09/06/17
Array question
int sum(int a[], int n): Return the sum of the elements in a given array a of size n.
C++ Algorithm
05/20/17
Meaning of "two comparisons" in the context of the provided question from geeksforgeeks.com
This is the exact question from the website.Given a sorted array having 10 elements which contains 6 different numbers in which only 1 number is repeated five times. Your task is to find the...
more
05/19/17
Please help with this C++ programming question
Using pseudo code algorithms!
c++ only
1- Detect if three angles can make a triangle. (1)
• Hint: In a triangle, the sum of all angles is 180.
2- Switch the value of two numbers (1)
• If a=2...
more
C++
08/01/16
C++ file handling
In C++FILE *fp;fp=fopen("NOTES.TXT","r+");Which Operation can be performed?a) read b) write c)appending d) read & write
04/25/16
1.Write an Algorithm , Flow chart , pseudo code to convert from decimal number system(base-10) to binary number system(base-2).
1.Write an Algorithm , Flow chart , pseudo code to convert from decimal number system(base-10) to binary number system(base-2).
10/02/15
C++ Programming Homework Due Tonight :(
I'm pretty sure this assignment is really easy but I haven't learned anything in the class. Basically he wants us to rewrite part of a program as a module. #include <iostream> using...
more
C++
03/11/15
Computer Programming
Input a list of employee names and salaries stored in parallel arrays. The sal-aries should be floating point numbers in increments of 100. For example, a salary of $ 36,000 should be input as 36.0...
more
C++
02/04/15
i dont know how to connect merge sort and direct insertion to a single c programme?
how i connect two of them into a one single c programme
help me !
give me a example programme pls
C++ C++ Program
02/25/14
can anyone tell me why this has errors?
For your assignment you are writing a number guessing game; with a twist. In your game, they are calculations where the user must guess the missing number(s). The Computer guesses a random...
more
02/24/14
how do i do this c++ program????????
i need to make a program that does this, i have no idea where to start
The Computer decides on 12 + 34 = 46. The computer/game then randomly displays Operator is + and Value 2 is 34. The...
more
C++
02/09/14
Starting out with C++ review question
A retail store grants its customers a maximum amount of credit. Each customer's available credit is his or her maximum amount of credit minus the amount of credit used. Write a pseudocode algorithm...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.