Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김다희
/
echo-program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김다희
2019-03-29 22:28:06 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6728cb95445813340d5f9b281fbe957111d07a5d
6728cb95
1 parent
e7c65b71
program
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
53 deletions
소스-1.cpp
소스-1.cpp
View file @
6728cb9
/*#include <iostream>
#include <vector>
#include <queue>
using namespace std;
void com(int &pointNum, int &lineNum, int &startNum, vector<vector<int> > &a);
vector<int> calcLength(int startNum, vector<vector<int> > a);
void print();
int main() {
int pointNum, lineNum, startNum;
vector< vector<int> > arr;
com(pointNum, lineNum, startNum, arr);
return 0;
}
void com(int &pointNum, int &lineNum, int &startNum, vector<vector<int> > &a) {
cin >> pointNum >> lineNum >> startNum;
for (int i = 0; i < lineNum; i++) {
for (int j = 0; j < 3; j++) {
int num;
cin >> num;
a[i].push_back(num);
}
}
}
vector<int> calcLength(int pointNum, int startNum, vector<vector<int> > a) {
vector<int> result;
for (int i = 1; i < pointNum+1; i++) {
if (i != startNum) {
result.push_back(987654321);
}
else {
result.push_back(0);
}
}
}
void print() {
}
*/
#include<iostream>
using
namespace
std
;
int
main
()
{
cout
<<
"숫자를 입력해주세요"
;
int
a
;
cin
>>
a
;
for
(
int
i
=
1
;
i
<
a
+
1
;
i
++
)
{
for
(
int
j
=
0
;
j
<
i
;
j
++
)
{
cout
<<
"*"
;
}
cout
<<
endl
;
}
cout
<<
"출력 : "
<<
a
;
return
0
;
}
...
...
Please
register
or
login
to post a comment