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

Managed C++/CLI

 
GeneralRe: socket Pin
toxcct5-May-04 1:46
toxcct5-May-04 1:46 
GeneralError C2296/C2297: '<<' : illegal, left/right operand Pin
reznod4-May-04 5:41
reznod4-May-04 5:41 
GeneralRe: Error C2296/C2297: '&lt;&lt;' : illegal, left/right operand Pin
reznod4-May-04 14:09
reznod4-May-04 14:09 
GeneralRe: Error C2296/C2297: '&lt;&lt;' : illegal, left/right operand Pin
cdmlb4-May-04 14:35
cdmlb4-May-04 14:35 
GeneralRe: Error C2296/C2297: '&lt;&lt;' : illegal, left/right operand Pin
reznod4-May-04 17:07
reznod4-May-04 17:07 
GeneralMySQL databases Pin
Steven M Hunt1-May-04 16:17
Steven M Hunt1-May-04 16:17 
GeneralChanging data in arrays with variables Pin
Allan D Richards30-Apr-04 13:46
Allan D Richards30-Apr-04 13:46 
GeneralRe: Changing data in arrays with variables Pin
cdmlb3-May-04 9:44
cdmlb3-May-04 9:44 
using System;

namespace MyConsoleApplication
{
class MyClass
{
[STAThread]
static void Main(string[] args)
{
char[,] arrayName = new char[6,5]; //double subscripted array 6x5

//initialize array with e's since
//I don't feel like making a shape
//like you did with e's and spaces
for(int i=0; i < arrayName.GetLength(0); i++)
{
for(int j=0; j < arrayName.GetLength(1); j++)
{
arrayName[i,j] = 'e';
Console.WriteLine(arrayName[i,j]); //print to the screen
//to see if did what I wanted
//to test it out
}
}

for(int i=0; i < arrayName.GetLength(0); i++)
{
for(int j=0; j < arrayName.GetLength(1); j++)
{
if(arrayName[i,j].Equals('e')) //find only e's replace with g's
{
arrayName[i,j] = 'g';
Console.WriteLine(arrayName[i,j]); //print to the screen
//to see if it did replace
//replace all e's
}
}
}

Console.ReadLine(); //pause
}
}
}

It does work, this code will ingore all other char like spaces you made to create the shape and only replace the e's with g's, code works for any mc++, c# application type.

Information Technologist
GeneralTetris Pin
guadish!29-Apr-04 21:52
guadish!29-Apr-04 21:52 
GeneralPlease help Pin
Stefan Troschuetz28-Apr-04 10:12
Stefan Troschuetz28-Apr-04 10:12 
GeneralImporting DLL of C# application Pin
student666927-Apr-04 14:45
student666927-Apr-04 14:45 
GeneralRe: Importing DLL of C# application Pin
RNEELY28-Apr-04 9:41
RNEELY28-Apr-04 9:41 
GeneralRe: Importing DLL of C# application Pin
student666929-Apr-04 10:50
student666929-Apr-04 10:50 
GeneralRe: Importing DLL of C# application Pin
RNEELY30-Apr-04 3:17
RNEELY30-Apr-04 3:17 
GeneralRe: Importing DLL of C# application Pin
student66692-May-04 18:12
student66692-May-04 18:12 
Generalcalling function in mixed mode assembly from unmanaged app Pin
godzooky27-Apr-04 6:22
godzooky27-Apr-04 6:22 
GeneralProblem with HDCs Pin
Serge Lobko-Lobanovsky27-Apr-04 2:37
Serge Lobko-Lobanovsky27-Apr-04 2:37 
GeneralLinear Search Pin
buttons25-Apr-04 10:02
buttons25-Apr-04 10:02 
GeneralBuilding Managed C++ Web Services Pin
Antti Keskinen22-Apr-04 8:59
Antti Keskinen22-Apr-04 8:59 
GeneralRe: Building Managed C++ Web Services Pin
ian mariano25-Apr-04 14:11
ian mariano25-Apr-04 14:11 
GeneralC++ Files Pin
buttons22-Apr-04 3:44
buttons22-Apr-04 3:44 
GeneralRe: C++ Files Pin
mccoyn22-Apr-04 5:41
mccoyn22-Apr-04 5:41 
GeneralRe: C++ Files Pin
Phil Boyd22-Apr-04 6:25
Phil Boyd22-Apr-04 6:25 
GeneralRe: C++ Files Pin
Navin23-Apr-04 9:42
Navin23-Apr-04 9:42 
GeneralInheritance of String class Pin
ra_sasi21-Apr-04 10:45
ra_sasi21-Apr-04 10:45 

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.