#include<iostream>
#include<string>
using namespace std;
int main()
{
char a[10000],b[100];
cout << "enter the string.";
cin >> a;
cout << "enter the string to find";
cin >> b;
int n=a.find(b);
cout << n << "\n";
}
when i use string instead of char and then i enter this is
then this i s considered the first and is the second value
I think you can't even enter the char array this way either:
1 2 3
char a[10000],b[100];
cout << "enter the string.";
cin >> a;
I think you need to enter each element of the array alone. In this case a is the pointer to the first element of array a[10000], so you need a syntax like a[i] or *(a+i) to get the elements of the array. Use string instead unless you have a good reason to use an array of chars.
That's gonna be a lot trickier. Working with hardware and drivers and stuff can be a pain. I'm pretty sure SFML has a uparrow function, so give that a try: http://www.sfml-dev.org/
That's gonna be a lot trickier. Working with hardware and drivers and stuff can be a pain.
i cant get in c++ can we make radio buttons checkboxes input fields are they dificult