Click here to Skip to main content
15,893,663 members
Home / Discussions / C#
   

C#

 
QuestionQoL Debugging Pin
Super Lloyd17-May-20 14:34
Super Lloyd17-May-20 14:34 
QuestionHow to get the form at design time to the center of the screen Pin
Member 1297423515-May-20 17:15
Member 1297423515-May-20 17:15 
AnswerRe: How to get the form at design time to the center of the screen Pin
Richard MacCutchan15-May-20 22:03
mveRichard MacCutchan15-May-20 22:03 
AnswerRe: How to get the form at design time to the center of the screen Pin
kalberts16-May-20 4:13
kalberts16-May-20 4:13 
AnswerRe: How to get the form at design time to the center of the screen Pin
Dave Kreskowiak16-May-20 4:38
mveDave Kreskowiak16-May-20 4:38 
GeneralRe: How to get the form at design time to the center of the screen Pin
Member 1297423516-May-20 9:27
Member 1297423516-May-20 9:27 
GeneralRe: How to get the form at design time to the center of the screen Pin
Dave Kreskowiak16-May-20 9:42
mveDave Kreskowiak16-May-20 9:42 
GeneralRe: How to get the form at design time to the center of the screen Pin
kalberts16-May-20 10:57
kalberts16-May-20 10:57 
QuestionReflection for Class Pin
Oscar K.14-May-20 0:57
Oscar K.14-May-20 0:57 
AnswerRe: Reflection for Class Pin
Pete O'Hanlon14-May-20 1:33
mvePete O'Hanlon14-May-20 1:33 
GeneralRe: Reflection for Class Pin
Oscar K.14-May-20 2:01
Oscar K.14-May-20 2:01 
GeneralRe: Reflection for Class Pin
Eddy Vluggen14-May-20 2:43
professionalEddy Vluggen14-May-20 2:43 
GeneralRe: Reflection for Class Pin
Richard Deeming14-May-20 2:46
mveRichard Deeming14-May-20 2:46 
GeneralRe: Reflection for Class Pin
Oscar K.14-May-20 4:33
Oscar K.14-May-20 4:33 
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 

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.