zoukankan      html  css  js  c++  java
  • 在visual studio中运行C++心得

    1.在visual studio中建立C++项目

      (1)新建->项目->空项目 C++

      (2)右击项目->添加->新建项->C++文件(.app)

      (3编写C++文件  

                #include<stdio.h>
                 int main()
                {
                   int i,j;
                   scanf("%d%d",&i,&j);
                   printf("i=%dj=%d",i,j);
                   return 0;
                 }

    2.解决运行程序一闪而过问题

    system("pause");/*用这个十分方便,但要注意要在程序前面加上#include<iostream>
    如:

                #include<stdio.h>
                #include<iostream>
                int main()
                {
                     int i,j;
                     scanf("%d%d",&i,&j);
                     printf("i=%dj=%d",i,j);
                     system("pause");
                }

  • 相关阅读:
    FZU 2150 Fire Game
    POJ 3414 Pots
    POJ 3087 Shuffle'm Up
    POJ 3126 Prime Path
    POJ 1426 Find The Multiple
    POJ 3278 Catch That Cow
    字符数组
    HDU 1238 Substing
    欧几里德和扩展欧几里德详解 以及例题CodeForces 7C
    Codeforces 591B Rebranding
  • 原文地址:https://www.cnblogs.com/fengweixin/p/3796419.html
Copyright © 2011-2022 走看看