Vowel Finder [SOURCE]

  • Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

TheMystery

Retired Staff
Active Member
Dec 6, 2013
648
364
133
Hey CC Here Is A Simple Code For If You Wanted To Make A Vowel Finder;)

Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Vowel_Counter
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
try
{
GetVowel(textBox1.Text);
}
catch
{
MessageBox.Show("Please Enter a string!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}

private void GetVowel(string voweltext)
{
//Arrange the text into a character array
char[] Arr = voweltext.ToCharArray();
//Start our vowel count
int VowelCount = 0;
//Reset out text strings
textBox2.Text = null;
label2.Text = "Vowels:";

for (int i = 0; i < Arr.Length; i++)
{
switch (Arr[i].ToString().ToLower())
{
case "a":
case "e":
case "i":
case "o":
case "u":
//Input the vowel in textbox2
textBox2.Text += Arr[i].ToString() + "; ";
//Increase the vowel count by one
VowelCount++;
break;
}
}

//Remove the last character of our string
string NewText = textBox2.Text.Substring(0, textBox2.Text.Length - 2);
//Set the new text
textBox2.Text = NewText;
//Update label text to include the number of vowels.
label2.Text += ' ' + VowelCount.ToString();
}
}
}


Enjoy! :)
 

Nostafaru

Moderating the Crunch Bunch.
Retired Staff
Community Elite
Community Veteran
Determined Poster
Active Member
Console ID Poster
Apr 6, 2014
2,020
1,783
443
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Chat Bot:
    Christo has joined the room.
  • @ QM|T_JinX:
    maybe you have to install that tru account management in game
  • @ lurch6661:
    whats that
  • @ QM|T_JinX:
    go in game then press options on controler go all the way to the right sec to last icon
  • @ lurch6661:
    yea i tried that might have to set up the ps4 maybe this pc not fast enought for dmz
  • @ lurch6661:
    it keeps saying shader overload
  • @ QM|T_JinX:
    ok yea then i have no idea
  • @ lurch6661:
    weird cause it plays gtav fine and warzone
  • @ QM|T_JinX:
    what do it say when you stand on dmz
  • @ QM|T_JinX:
    on ps5 and 4 it will say if you have it installed or not
  • @ lurch6661:
    yea it plays just frames freeze
  • @ QM|T_JinX:
    ok yea maybe it wont play then
  • @ lurch6661:
    i will have to set up the ps4 then
  • @ QM|T_JinX:
    if you wanna play dmz yea sure
  • @ lurch6661:
    probably will have to download it
  • @ lurch6661:
    got it downloading
  • Chat Bot:
    Christo has joined the room.
  • Chat Bot:
  • Chat Bot:
  • Chat Bot:
  • @ QM|T_JinX:
    i put the stage2.bin in spoiler now i wasnt able to find it in the github so i posted it for the ones like me who cant find it lol
  • Chat Bot:
    Christo has joined the room.
  • @ QM|T_JinX:
    damn this jb is alot of work and set up haha but i got it running and ready to go lol
  • Chat Bot:
    X-Rudboy-X is our newest member. Welcome!
    Chat Bot: X-Rudboy-X is our newest member. Welcome!