char string and pointer

Ukończone Opublikowano Jun 9, 2003 Płatność przy odbiorze
Ukończone Płatność przy odbiorze

Char String and Pointers 1. Determine the error in the following program: (Type it up and run it!!) #include void main() { cout << "Your name" << endl; cout << "Your Period" << endl; char message[]= {'H', 'e', 'l', 'l', 'o', '\0'}; for(int i = 0; i < 5; i++) { cout << *message << endl; message++; } // THE PROGRAM SHOULD DISPLAY EACH LETTER OF HELLO } (s.c. and code) 2. Write a C++ function that displays the day of the week corresponding to a user-entered input between 1 and 7. That is, in response to an input of 2, the program displays the name Monday. Use an array of pointers in the function. Must have error checking, for numbers between 1 and 7. (s.c. and code) 3. Create three uninitailized character strings in the main. The user will input a three-word sentence, one word for one string. Then, from the main, pass the three strings into a function that uses the concatenation function from string.h. Concatenate the second string and the third string into the first string. Make sure the first string can hold all three words and cout the first string from the function. (s.c. and code) 4. Create two uninitailized character strings in the main. The user will input ONLY two words. You will then pass them into a function that will use the comparison function from string.h. In this function, you will have a char pointer set to null. If the first word is greater than the second, set the char pointer equal to the sentence "First word is greater than the second." Vice versa for second greater than first. If the first and second words are equal, set the char pointer equal to the sentence "First word is equal to the second word." Cout the pointer after the conditions in the function. (s.c. and code)

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.

## Platform

must run using microsoft visual C++

Programowanie C Inżynieria MySQL PHP Architektura oprogramowania Testowanie oprogramowania

Numer ID Projektu: #2943348

O projekcie

23 ofert Zdalny projekt Aktywny Jun 10, 2003

Przyznany użytkownikowi:

srinivasangara

See private message.

$5 USD w ciągu 14 dni
(9 ocen)
3.7

23 freelancerów złożyło ofertę za $12 w tym projekcie

slimbvw

See private message.

$17 USD w ciągu 14 dni
(158 Oceny)
7.5
dragomirvw

See private message.

$4.25 USD w ciągu 14 dni
(149 Oceny)
5.6
ExpertFromInd

See private message.

$12.75 USD w ciągu 14 dni
(48 Oceny)
5.4
projetcoder

See private message.

$5.95 USD w ciągu 14 dni
(39 Oceny)
5.0
leepwo

See private message.

$10.2 USD w ciągu 14 dni
(41 Oceny)
4.7
herculesevw

See private message.

$14.45 USD w ciągu 14 dni
(79 Oceny)
4.7
hivesolutionsvw

See private message.

$8.5 USD w ciągu 14 dni
(21 Oceny)
4.6
vw821235vw

See private message.

$8.5 USD w ciągu 14 dni
(94 Oceny)
4.3
bladvw

See private message.

$12.75 USD w ciągu 14 dni
(24 Oceny)
4.6
exceptionalcoder

See private message.

$25.5 USD w ciągu 14 dni
(9 Oceny)
4.1
hmichopoulos

See private message.

$12.75 USD w ciągu 14 dni
(27 Oceny)
3.7
cossimin

See private message.

$12.75 USD w ciągu 14 dni
(18 Oceny)
3.5
patrica

See private message.

$18.7 USD w ciągu 14 dni
(19 Oceny)
3.2
vw472664vw

See private message.

$4.25 USD w ciągu 14 dni
(37 Oceny)
3.0
lonapz

See private message.

$5.95 USD w ciągu 14 dni
(10 Oceny)
2.8
techfoster

See private message.

$11.05 USD w ciągu 14 dni
(13 Oceny)
2.4
tralph

See private message.

$17 USD w ciągu 14 dni
(9 Oceny)
1.8
barabasandrei

See private message.

$8.5 USD w ciągu 14 dni
(1 Ocena)
1.3
gotnone

See private message.

$8.5 USD w ciągu 14 dni
(1 Ocena)
0.0
bradretzlaff

See private message.

$12.75 USD w ciągu 14 dni
(1 Ocena)
0.0