Q&A Discussions
if i download the programs for c++ on my pc ( codebuilds and the compiler ) and i want to write a program in my package ( workspace ) i create a new file and write smthing beginning
#include <iostream>
using namespace std;
int main ()
{
...
}
and i want to run it, it always runs this first program : Hello World. and not my written program how can i run just my written program ?
have i maybe to write anything else as
int main () {} ?
0 Votes
16 AnswersSwitch slower than if-else
0 Votes
1 AnswerC++ Output question
1 Vote
1 AnswerIf...elif...else
1 Vote
1 Answerusing System;
namespace GoodProgrammerTest
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter Yes or No");
Console.Write(
"Do you programme every day? : ") ;
int answer = Console.ReadLine();
if (answer =="Yes")
{
Console.WriteLine(
"You will be a good programmer");
}
else
{
Console.WriteLine(
"You will not be a good programmer");
}
}
}
}
2 Votes
3 Answerswhy my code is not working?
0 Votes
2 AnswersJavaScript Question
0 Votes
2 AnswersWhich language is need?
0 Votes
1 AnswerWhy not working
-4 Votes
4 AnswersHot today
Sticky position
3 Votes
Help please?
3 Votes
Online voting system
2 Votes
Ejercicio Pytho
0 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
SQL practice
2 Votes