Hi guys,
i need your help i new to this homepage and im learning c++

i've got homework about this weekend to create something like that:

Give your Informations (<FirstName> <LastName>, <dd.mm.yyyy>)

now i want to ask you how to check with c++ if a string got a ","
would be nice if someone could help me

Which type of strings are you using? (C-strings or std::string) If you are using std::string, then there are methods like .find() which will work. Since it is your assignment, you probably can't use the built in methods, so the easiest way is to treat the string like an array and step through it via a loop looking for ','

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.