Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to replace every different char with another given char Pin
OriginalGriff26-May-19 5:13
mveOriginalGriff26-May-19 5:13 
GeneralRe: How to replace every different char with another given char Pin
BillWoodruff26-May-19 1:51
professionalBillWoodruff26-May-19 1:51 
GeneralRe: How to replace every different char with another given char Pin
OriginalGriff26-May-19 3:09
mveOriginalGriff26-May-19 3:09 
GeneralRe: How to replace every different char with another given char Pin
BillWoodruff26-May-19 22:08
professionalBillWoodruff26-May-19 22:08 
GeneralRe: How to replace every different char with another given char Pin
OriginalGriff26-May-19 22:22
mveOriginalGriff26-May-19 22:22 
GeneralRe: How to replace every different char with another given char Pin
BillWoodruff26-May-19 22:55
professionalBillWoodruff26-May-19 22:55 
GeneralRe: How to replace every different char with another given char Pin
kalberts29-May-19 4:52
kalberts29-May-19 4:52 
GeneralRe: How to replace every different char with another given char Pin
OriginalGriff29-May-19 5:08
mveOriginalGriff29-May-19 5:08 
Many. many years ago I worked with a FORTRAN compiler that passed by reference. So you could do the equivalent of this:
C#
void AddTen(int val)
   {
   val += 10;
   }
...
x = 666;
AddTen(x);
Console.WriteLine($"{x} == {666}?");
x = 666;
AddTen(666);
Console.WriteLine($"{x} == {666}?");
x = 666;
Console.WriteLine($"{x} == {666}?");
And you would get the output
676 == 666?
666 == 676?
676 == 676?
As the constant value had been changed for ever more ...

Debugging was a mans game back then! Laugh | :laugh:
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: How to replace every different char with another given char Pin
lmoelleb26-May-19 8:40
lmoelleb26-May-19 8:40 
AnswerRe: How to replace every different char with another given char Pin
Luc Pattyn25-May-19 19:16
sitebuilderLuc Pattyn25-May-19 19:16 
AnswerRe: How to replace every different char with another given char Pin
kalberts29-May-19 5:01
kalberts29-May-19 5:01 
QuestionFloating Point Calculations - c# vs. c++ Pin
User 1106097922-May-19 6:50
User 1106097922-May-19 6:50 
GeneralRe: Floating Point Calculations - c# vs. c++ PinPopular
harold aptroot22-May-19 7:00
harold aptroot22-May-19 7:00 
GeneralRe: Floating Point Calculations - c# vs. c++ Pin
User 1106097922-May-19 7:24
User 1106097922-May-19 7:24 
GeneralRe: Floating Point Calculations - c# vs. c++ Pin
CPallini22-May-19 23:01
mveCPallini22-May-19 23:01 
GeneralRe: Floating Point Calculations - c# vs. c++ Pin
User 1106097923-May-19 8:38
User 1106097923-May-19 8:38 
GeneralRe: Floating Point Calculations - c# vs. c++ Pin
kalberts29-May-19 5:21
kalberts29-May-19 5:21 
GeneralRe: Floating Point Calculations - c# vs. c++ Pin
User 1106097929-May-19 5:42
User 1106097929-May-19 5:42 
AnswerRe: Floating Point Calculations - c# vs. c++ Pin
#realJSOP24-May-19 0:07
mve#realJSOP24-May-19 0:07 
GeneralRe: Floating Point Calculations - c# vs. c++ Pin
User 1106097924-May-19 5:40
User 1106097924-May-19 5:40 
QuestionPython str.extract to c# (regex?) Pin
Member 1441807322-May-19 2:15
Member 1441807322-May-19 2:15 
AnswerRe: Python str.extract to c# (regex?) Pin
Nathan Minier22-May-19 2:40
professionalNathan Minier22-May-19 2:40 
GeneralRe: Python str.extract to c# (regex?) Pin
Member 1441807323-May-19 3:56
Member 1441807323-May-19 3:56 
QuestionComboBox not refreshing error. Pin
Khandkar Asif Hossain21-May-19 9:20
Khandkar Asif Hossain21-May-19 9:20 
AnswerRe: ComboBox not refreshing error. Pin
Richard Deeming21-May-19 9:28
mveRichard Deeming21-May-19 9:28 

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.