Click here to Skip to main content
15,885,881 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Lock a file Pin
Sarath C5-Nov-12 22:01
Sarath C5-Nov-12 22:01 
GeneralC CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
STEVE10K3-Nov-12 7:34
STEVE10K3-Nov-12 7:34 
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
Tr@v3-Nov-12 11:15
Tr@v3-Nov-12 11:15 
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
STEVE10K5-Nov-12 7:57
STEVE10K5-Nov-12 7:57 
AnswerRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
Tr@v7-Nov-12 7:47
Tr@v7-Nov-12 7:47 
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
STEVE10K8-Nov-12 3:41
STEVE10K8-Nov-12 3:41 
GeneralRe: C CODE FOR RUNNING TWO SENSORS FOR BI-DIRECTIONAL COUNTING Pin
STEVE10K3-Dec-12 2:49
STEVE10K3-Dec-12 2:49 
QuestionC++ question. Please help me out Pin
Member 88567522-Nov-12 9:06
Member 88567522-Nov-12 9:06 
Kindly gurus,
Assist me in the below questions. I am new in C++ and even don't know where to start. Please somebody help me out

Write a program using functions that prompts for the input of social security numbers upto a maximum of 10. Store the social security numbers in a two dimensional array of characters. Ask if the array of social security numbers is to be sorted in ascending or descending order, then call a bubble sort function that you write to sort the array. The program should print the unsorted list first, sort the list, then print the sorted list. The bubble sort algorithm is as follows:

A. Start with the first two array elements.
B. Compare the elements and exchange them if the
compare function indicates they should be swapped.
C. Bump up one element and repeat step B.
D. Continue until the end of the array is reached.
E. Repeat steps B -> D decreasing the upperlimit on
the array by one for each iteration of the loop.
In other words, stop one element short of the
previous iteration in the main loop.
F. End the sort if:
1. No exchanges occur during an iteration or
2. The upper limit for the loop reaches one.
AnswerRe: C++ question. Please help me out Pin
jeron12-Nov-12 9:18
jeron12-Nov-12 9:18 
AnswerRe: C++ question. Please help me out Pin
Richard MacCutchan2-Nov-12 10:23
mveRichard MacCutchan2-Nov-12 10:23 
AnswerRe: C++ question. Please help me out Pin
Amarnath S3-Nov-12 20:49
professionalAmarnath S3-Nov-12 20:49 
Questionhow to return value after user input Pin
Member 21198442-Nov-12 5:11
Member 21198442-Nov-12 5:11 
AnswerRe: how to return value after user input Pin
Richard MacCutchan2-Nov-12 6:25
mveRichard MacCutchan2-Nov-12 6:25 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 8:16
Member 21198442-Nov-12 8:16 
GeneralRe: how to return value after user input Pin
Richard MacCutchan2-Nov-12 10:19
mveRichard MacCutchan2-Nov-12 10:19 
AnswerRe: how to return value after user input Pin
Santhosh G_2-Nov-12 6:34
Santhosh G_2-Nov-12 6:34 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 7:51
Member 21198442-Nov-12 7:51 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 15:32
Santhosh G_2-Nov-12 15:32 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 17:19
Member 21198442-Nov-12 17:19 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 17:26
Santhosh G_2-Nov-12 17:26 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 17:33
Member 21198442-Nov-12 17:33 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 18:01
Santhosh G_2-Nov-12 18:01 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 18:34
Member 21198442-Nov-12 18:34 
GeneralRe: how to return value after user input Pin
Santhosh G_2-Nov-12 18:43
Santhosh G_2-Nov-12 18:43 
GeneralRe: how to return value after user input Pin
Member 21198442-Nov-12 20:02
Member 21198442-Nov-12 20:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.