Help me!

closed account (16pXSL3A)
Hi dudes!
I want know how to use int vector! I know to use char vector!
---
Char vector e.g. program
I use Code Blocks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<iostream>
#include<stdio.h>
#include<string.h>
#include<windows.h>
using namespace std;
int main ()
{
 char a[20],b[20]="apple";
    cout<<"Guess my favorite fruit:";
    gets(a);
    while(strcmp(a,b)!=0)
    {
        cout<<"Try again:";
        gets(a);
    }
    cout<<"You guess! My favorite fruit is ";
    system("COLOR A");
    cout<<"apple!";
    return 0;
}

---
Guess my favorite fruit:orange
Try again:apple
You guess! My favorite fruit is apple!

---
Can you write this program with int vectors? Please! Thank you!
You can also contact me to help me with more :D [https://www.facebook.com/Bossul13333 ]
closed account (16pXSL3A)
sorry, but can you write it? please
why would you want to use a vector of integers to do what I think you are trying to achieve?
Topic archived. No new replies allowed.