Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
QuestionIs there a way to implement radio button in property grid Pin
Member 1482116713-May-20 1:33
Member 1482116713-May-20 1:33 
GeneralRe: Is there a way to implement radio button in property grid Pin
harold aptroot13-May-20 2:14
harold aptroot13-May-20 2:14 
AnswerRe: Is there a way to implement radio button in property grid Pin
Eddy Vluggen13-May-20 10:19
professionalEddy Vluggen13-May-20 10:19 
QuestionWeb and Environment Variables Pin
ormonds12-May-20 20:07
ormonds12-May-20 20:07 
AnswerRe: Web and Environment Variables Pin
Richard MacCutchan12-May-20 21:22
mveRichard MacCutchan12-May-20 21:22 
AnswerRe: Web and Environment Variables Pin
Richard Deeming13-May-20 0:17
mveRichard Deeming13-May-20 0:17 
AnswerRe: Web and Environment Variables Pin
Dave Kreskowiak13-May-20 6:44
mveDave Kreskowiak13-May-20 6:44 
Questioncan any one help me and write this code please Pin
Member 1483029312-May-20 13:52
Member 1483029312-May-20 13:52 
Write program to determine if a given sentence is palindrome or not
User Array-based Stack, and Linked-based Queue in your program.

Class Stack:

Write class Stack using array with the following attributes and methods:
Attribute array (items) of 100 char.
Attribute (top) of type integer.
Constructor (Stack), and initialize (top) to -1.
Method (empty), which returns true if the stack is empty.
Method (push), which takes a character value and push it into the stack.
Method (pop), which returns the last value in (Last-In-First-Out).
Class Node and class Queue:

Write class Node with two attributes; data of type character, and next of type Node. Write a set and get methods for each attribute.
Write class Queue using Linked List with the following attributes and methods:
Attributes (Front and Rear) of type Node.
Constructor (Queue), and initialize all attributes to Null.
Method (empty), which returns true if the queue is empty.
Method (insert), which takes a character value, create object of node, save the character in it, and insert it into the queue.
Method (remove), which returns the first value in (First-In-First-Out).
Palindrome Algorithm in Main:

Create a stack and a queue
Ask user to enter a string
Read string and store it in string s
set variable (pal) of bool to true
Repeat for each character in s:
push s[i] in stack
Insert s[i] in queue
Start new Loop, until stack is empty:
x = stack.pop();
y = queue.remove();
if ( x != y ) set (pal) to false and break from loop
Now, if pal is true then string is "Palindrome", else string is "NOT Palindrome!".
AnswerRe: can any one help me and write this code please Pin
Pete O'Hanlon12-May-20 20:53
mvePete O'Hanlon12-May-20 20:53 
AnswerRe: can any one help me and write this code please Pin
Richard MacCutchan12-May-20 21:35
mveRichard MacCutchan12-May-20 21:35 
AnswerRe: can any one help me and write this code please Pin
Dave Kreskowiak13-May-20 6:42
mveDave Kreskowiak13-May-20 6:42 
AnswerRe: can any one help me and write this code please Pin
#realJSOP15-May-20 1:57
mve#realJSOP15-May-20 1:57 
QuestionMake a simple shape/pattern Pin
M.S.S.E10-May-20 10:36
M.S.S.E10-May-20 10:36 
AnswerRe: Make a simple shape/pattern Pin
Eddy Vluggen10-May-20 10:55
professionalEddy Vluggen10-May-20 10:55 
GeneralRe: Make a simple shape/pattern Pin
M.S.S.E10-May-20 11:42
M.S.S.E10-May-20 11:42 
AnswerMessage Closed Pin
10-May-20 20:09
M.S.S.E10-May-20 20:09 
GeneralRe: Make a simple shape/pattern Pin
kalberts10-May-20 20:55
kalberts10-May-20 20:55 
GeneralRe: Make a simple shape/pattern Pin
Pete O'Hanlon10-May-20 21:10
mvePete O'Hanlon10-May-20 21:10 
AnswerRe: Make a simple shape/pattern Pin
Richard MacCutchan10-May-20 21:27
mveRichard MacCutchan10-May-20 21:27 
GeneralRe: Make a simple shape/pattern Pin
M.S.S.E10-May-20 21:37
M.S.S.E10-May-20 21:37 
QuestionRe: Make a simple shape/pattern Pin
Eddy Vluggen11-May-20 2:48
professionalEddy Vluggen11-May-20 2:48 
Questionintegrate IShellFolderViewCB with c#. Pin
Member 125113667-May-20 2:06
Member 125113667-May-20 2:06 
AnswerRe: integrate IShellFolderViewCB with c#. Pin
Richard MacCutchan7-May-20 2:22
mveRichard MacCutchan7-May-20 2:22 
Questioni want to open a form inside a new webbrowser window.i am using javascript fuction Pin
Member 148083135-May-20 17:57
Member 148083135-May-20 17:57 
Rant[REPOST] i want to open a form inside a new webbrowser window.i am using javascript fuction Pin
Richard Deeming6-May-20 0:44
mveRichard Deeming6-May-20 0:44 

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.