Click here to Skip to main content
15,914,924 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionProblems wih bit shifting function Pin
Debun9-May-07 8:23
Debun9-May-07 8:23 
AnswerRe: Problems wih bit shifting function Pin
led mike9-May-07 9:13
led mike9-May-07 9:13 
QuestionRe: Problems wih bit shifting function Pin
Mark Salsbery9-May-07 9:26
Mark Salsbery9-May-07 9:26 
AnswerRe: Problems wih bit shifting function Pin
led mike9-May-07 9:40
led mike9-May-07 9:40 
GeneralRe: Problems wih bit shifting function Pin
Mark Salsbery9-May-07 9:45
Mark Salsbery9-May-07 9:45 
Questionsave in c++ Pin
lavy28839-May-07 6:36
lavy28839-May-07 6:36 
AnswerRe: save in c++ Pin
Christian Graus10-May-07 15:42
protectorChristian Graus10-May-07 15:42 
QuestionWild number problem Pin
hasan_hasany8-May-07 18:29
hasan_hasany8-May-07 18:29 
A wild number is a string containing digits and question marks (like 36?1?8). A number X matches a wild number W if they have the same length, and every non-question mark character in X is equal to the character in the same position in W (it means that you can replace a question mark with any digit). For example, 365198 matches the wild number 36?1?8, but 360199, 361028, or 36128 does not. Write a program that reads a wild number W and a number X from input, both of length n, and determines the number of n-digit numbers that match W and are greater than X.
Input (filename: B.in)
There are multiple test cases in the input. Each test case consists of two lines of the same length. The first line contains a wild number W, and the second line contains an integer number X. The length of input lines is between 1 and 10 characters. The last line of input contains a single character #.
Output (Standard Output)
For each test case, write a single line containing the number of n-digit numbers matching W and greater than X (n is the length of W and X).

Sample Input and Output
36?1?8
236428
8?3
910
?
5
#
B.in Standard Output
100
0
4

AnswerRe: Wild number problem Pin
Christian Graus8-May-07 18:33
protectorChristian Graus8-May-07 18:33 
QuestionC2039 :Is not a member of 'System::Windows::Forms::Form' Pin
tcompter8-May-07 10:57
tcompter8-May-07 10:57 
AnswerRe: C2039 :Is not a member of 'System::Windows::Forms::Form' Pin
Mark Salsbery8-May-07 11:02
Mark Salsbery8-May-07 11:02 
GeneralRe: C2039 :Is not a member of 'System::Windows::Forms::Form' Pin
tcompter8-May-07 11:30
tcompter8-May-07 11:30 
GeneralRe: C2039 :Is not a member of 'System::Windows::Forms::Form' Pin
Mark Salsbery8-May-07 11:34
Mark Salsbery8-May-07 11:34 
GeneralRe: C2039 :Is not a member of 'System::Windows::Forms::Form' Pin
tcompter9-May-07 10:34
tcompter9-May-07 10:34 
GeneralRequest Pin
KeeperMustDie8-May-07 9:55
KeeperMustDie8-May-07 9:55 
GeneralRe: Request Pin
Mark Salsbery8-May-07 10:39
Mark Salsbery8-May-07 10:39 
QuestionAcceptButton in Dialog Box doesn't appear to work Pin
BuckBrown8-May-07 8:22
BuckBrown8-May-07 8:22 
AnswerRe: AcceptButton in Dialog Box doesn't appear to work Pin
BuckBrown8-May-07 9:49
BuckBrown8-May-07 9:49 
QuestionSelecting specific radio button Pin
BuckBrown7-May-07 10:52
BuckBrown7-May-07 10:52 
AnswerRe: Selecting specific radio button Pin
BuckBrown7-May-07 11:06
BuckBrown7-May-07 11:06 
Questionasking for sort linklist Pin
Arif Liminto7-May-07 6:05
professionalArif Liminto7-May-07 6:05 
AnswerRe: asking for sort linklist Pin
Christian Graus7-May-07 13:09
protectorChristian Graus7-May-07 13:09 
QuestionC2065 error Pin
subramanyeswari7-May-07 2:12
subramanyeswari7-May-07 2:12 
AnswerRe: C2065 error Pin
prasad_som7-May-07 4:21
prasad_som7-May-07 4:21 
Questionhow to convert the string type into double type? (vs 2005) Pin
sync_austin6-May-07 23:41
sync_austin6-May-07 23:41 

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.