Click here to Skip to main content
15,899,007 members
Home / Discussions / C#
   

C#

 
GeneralNeed help to convert vb module into c# Pin
tasumisra16-Dec-07 17:36
tasumisra16-Dec-07 17:36 
GeneralRe: Need help to convert vb module into c# Pin
Yitzchok Dev16-Dec-07 18:16
Yitzchok Dev16-Dec-07 18:16 
GeneralRe: Need help to convert vb module into c# Pin
tasumisra16-Dec-07 18:38
tasumisra16-Dec-07 18:38 
GeneralRe: Need help to convert vb module into c# Pin
Yitzchok Dev16-Dec-07 18:40
Yitzchok Dev16-Dec-07 18:40 
GeneralRe: Need help to convert vb module into c# Pin
tasumisra16-Dec-07 18:51
tasumisra16-Dec-07 18:51 
GeneralRe: Need help to convert vb module into c# Pin
That's Aragon16-Dec-07 19:54
That's Aragon16-Dec-07 19:54 
GeneralRe: Need help to convert vb module into c# Pin
tasumisra16-Dec-07 20:02
tasumisra16-Dec-07 20:02 
GeneralBeginner array program, need help!!! Pin
cmh62316-Dec-07 17:17
cmh62316-Dec-07 17:17 
Here is what I have so far:
using System;
namespace ZipArray
{
class Program
{
public class ZipSort
{
string[] zipCodes = new string[10]
{
"33701",
"33702",
"33703",
"33704",
"33705",
"33706",
"33707",
"33708",
"33709",
"33710"};
int x;
Console.Write("Please enter a zip-code : ");
string zipSearch = Console.ReadLine();
bool found = false;

foreach(string zip in zipCodes)
{
if (zip == zipSearch)
{
found = true;
break;
}
}
Console.WriteLine();

if (found)
{
Console.WriteLine("The zip-code, {0}, is delivered to", zipSearch);
}
else
{
Console.WriteLine("The zip-code, {0}, is not delivered to", zipSearch);
Console.WriteLine();
Console.WriteLine("The full list is :");
Console.WriteLine();

Array.Reverse(zipCodes);
for(x=0; x<zipcodes.length;++x)>

Console.WriteLine(zipCodes[x]);
}
} I have been unable to make this program run correctly thus far, I am trying to make it to where it will allow the user to enter a zip code and if it is on the list it will read "the zip code "0" is delivered to" and after that to sort the zip codes in descending order. Any help would be much appreciated!

GeneralRe: Beginner array program, need help!!! Pin
CKnig16-Dec-07 18:20
CKnig16-Dec-07 18:20 
GeneralRe: Beginner array program, need help!!! Pin
Yitzchok Dev16-Dec-07 18:26
Yitzchok Dev16-Dec-07 18:26 
GeneralRe: Beginner array program, need help!!! Pin
cmh62316-Dec-07 18:38
cmh62316-Dec-07 18:38 
QuestionHow to make a http Request in Windows Service +Timer Pin
Narendra Mohan16-Dec-07 17:01
Narendra Mohan16-Dec-07 17:01 
AnswerRe: How to make a http Request in Windows Service +Timer Pin
CKnig16-Dec-07 18:23
CKnig16-Dec-07 18:23 
Questiondetecting a word-wrap event in a TextBox or RichTextBox control ? Pin
BillWoodruff16-Dec-07 1:43
professionalBillWoodruff16-Dec-07 1:43 
GeneralRe: detecting a word-wrap event in a TextBox or RichTextBox control ? [modified] Pin
Anthony Mushrow16-Dec-07 6:07
professionalAnthony Mushrow16-Dec-07 6:07 
GeneralRe: detecting a word-wrap event in a TextBox or RichTextBox control ? Pin
BillWoodruff17-Dec-07 4:05
professionalBillWoodruff17-Dec-07 4:05 
GeneralRe: detecting a word-wrap event in a TextBox or RichTextBox control ? Pin
foxjazzdude12-Dec-09 6:00
foxjazzdude12-Dec-09 6:00 
GeneralEnabling dataGridView sorting for a bound List<t></t> Pin
martin_hughes16-Dec-07 1:23
martin_hughes16-Dec-07 1:23 
GeneralRe: Enabling dataGridView sorting for a bound List Pin
martin_hughes16-Dec-07 6:37
martin_hughes16-Dec-07 6:37 
GeneralRe: Enabling dataGridView sorting for a bound List Pin
martin_hughes16-Dec-07 10:34
martin_hughes16-Dec-07 10:34 
GeneralRe: Enabling dataGridView sorting for a bound List Pin
Pete O'Hanlon16-Dec-07 11:27
mvePete O'Hanlon16-Dec-07 11:27 
GeneralRe: Enabling dataGridView sorting for a bound List Pin
martin_hughes16-Dec-07 11:41
martin_hughes16-Dec-07 11:41 
GeneralRe: Enabling dataGridView sorting for a bound List Pin
Pete O'Hanlon16-Dec-07 12:20
mvePete O'Hanlon16-Dec-07 12:20 
GeneralRe: Enabling dataGridView sorting for a bound List Pin
martin_hughes16-Dec-07 12:33
martin_hughes16-Dec-07 12:33 
GeneralRe: Enabling dataGridView sorting for a bound List Pin
Pete O'Hanlon17-Dec-07 1:15
mvePete O'Hanlon17-Dec-07 1:15 

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.