No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
DetermineElapsedTime has only two parameters - both pointers to const MyTime. DetermineElapsedTime must not modify the contents of either structure. DetermineElapsedTime must not declare any pointers other than its two parameters. DetermineElapsedTime must return a pointer to a MyTime structure containing the elapsed time. Use … | |
[CODE]#include <stdio.h> int MyStrlen(const char *si); int main() { char str[] = "a"; char str1[] = "HELLO"; char str2[] = ""; printf("Length: %d \n", MyStrlen(str)); printf("Length: %d \n", MyStrlen(str1)); printf("Length: %d \n", MyStrlen(str2)); return 0; } int MyStrlen(const char *si) { int input; for(input = 0; *si; si++) input++; return … | |
* I meant pointer parameters This function that has two parameters, both of type reference and return reference to pointer. Do I need to fix anything? I have been stumped for days and dunno what I should fix here is my code: [CODE]#include <iostream> using namespace std; double *ComputeMaximum( const … | |
How can I get the respondent to terminate my survey before all respondents have entered? That respondent may enter a specific number of out of range responses in a row. Below is my code: [CODE] #include <iostream> #include <cctype> using namespace std; const int STUDENTS = 10; // students entering … | |
C Program - Write main and two other functions named ComputeMaximum and ComputeMinimum that return the larger and smaller, respectively, of two type double arguments: 1. Each function must be in a separate file. 2. The files containing ComputeMaximum and ComputeMinimum may not contain #defines, #includes, if statements, switch statements, … | |
This code is used to reverse a number in C++ but I have a problem. When I input 1010 or -1010, the output is -101 and 101. How should I fix this?[code]/* Christopher Langford U05799189 * clang4d@gmail.com * Assignment 3 Exercise 3 * July 23, 2010 * Macbook Pro w/Mac … | |
Using nested for loops, how do I write a program that asks the user to input an integral number and then displays a diagonal line with that many dots on the console screen starting in the column? An input of 4 would display four diagonal periods, while an input of … |
The End.