include<stdio.h>
include <iostream>
include <string>

using namespace std;

int main()

printf("Password: \n");

    if (scanf_s("Hello")); 
        printf("Good Job \n");
        string Migas;
        cin >> Migas;
    else   (scanf_s("Hello"));
    printf("Wrong!");

return 0;
// Help please I don't know what to do!
I've been trying to learn C language and I can't find the probrem here! And don't pay attention to the strings and the cin. My cousin tought me that. It's better for working with Visual studio 2015 wich is the platform I'm using.

What about adding some braces?

You say you want to learn C, but your code mixes C and C++, and yes they are similar but different languages. I would suggest, instead of trying to take a shortcut, find a comprehensive tutorial site and actually study and learn the language that you want to learn.

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.