پروژه ی ساخت ماتریس 10 × 10 به طوری که لایه اول آن با عدد ده پر شود و لایه های داخلی با تفاضل عدد لایه ی قبل و عدد 1 پر شود
این پروژه توسط استاد امیر حسین کاشفی به دانشجو های درس مبانی کامپیوتر و برنامه سازی ترم یک سال 94 دانشکده ی فنی تهران جنوب داده شده بود
زبان نوشتاری : ++C
@de_coder
این پروژه توسط استاد امیر حسین کاشفی به دانشجو های درس مبانی کامپیوتر و برنامه سازی ترم یک سال 94 دانشکده ی فنی تهران جنوب داده شده بود
زبان نوشتاری : ++C
@de_coder
html :
<!DOCTYPE html>
<html>
<head>
<title>Archiminde</title>
</head>
<body>
<div id="project-beginner" >
<div class="for-you">
<div class="above">Login
</div>
<form>
<input type="text" placeholder="Username" /><br />
<input type="password" placeholder="Password" />
<a href="https://media.giphy.com/media/5hHOBKJ8lw9OM/giphy.gif" class="sumbit-button">Sumbit</a>
<h4> <a href="">de.coder();</a></h4>
</form>
</div>
</div>
</body>
</html
@de_coder
<!DOCTYPE html>
<html>
<head>
<title>Archiminde</title>
</head>
<body>
<div id="project-beginner" >
<div class="for-you">
<div class="above">Login
</div>
<form>
<input type="text" placeholder="Username" /><br />
<input type="password" placeholder="Password" />
<a href="https://media.giphy.com/media/5hHOBKJ8lw9OM/giphy.gif" class="sumbit-button">Sumbit</a>
<h4> <a href="">de.coder();</a></h4>
</form>
</div>
</div>
</body>
</html
@de_coder
css :
@import 'https://fonts.googleapis.com/css?family=Dosis';
body {
padding:0;
margin: 0;
background-color:#000;
}
#project-beginner {
width: 90%;
display:block ;
margin:20px 30px;
}
.for-you {
background-color: #000;
border-radius: 4px;
border: 4px solid aquamarine;
box-shadow: 0px 0px 20px aquamarine;
width: 90%;
}
.for-you .above {
width: 100%;
background-color: aquamarine;
color: #000;
text-align: center;
font-size: 1em;
font-family: 'Dosis', sans-serif;
font-weight: bolder;
}
input[type="text"] {
outline: 0 none;
background-color: #000;
color: aquamarine;
padding: 4px;
border: 2px solid aquamarine;
border-top: 4px solid aquamarine;
width: 50%;
-webkit-transition: width 0.5s;
-moz-transition: width 0.5s;
transition: width 0.5s;
display: block;
margin: 0 auto;
margin-top: 20px;
}
input[type="password"] {
outline: 0 none;
border: 2px solid aquamarine;
border-top: 4px solid aquamarine;
background-color: #000;
color: aquamarine;
padding: 4px;
display: block;
margin: 0 auto;
width: 50%;
-webkit-transition: width 0.5s;
-moz-transition: width 0.5s;
transition: width 0.5s;
}
input:focus {
width: 96%;
}
.sumbit-button {
display: block;
margin: 20px auto;
width: 50%;
padding: 2px 0;
outline: 0 none;
border: 2px solid aquamarine;
border-radius: 2px;
cursor: pointer;
-webkit-transition: background 0.5s;
-moz-transition: background 0.5s;
transition: background 0.5s;
background-color: #000;
color: aquamarine;
font-family: 'dosis';
font-weight: 500;
}
.sumbit-button:hover {
background-color: aquamarine;
color: #000;
font-weight: 700;
}
h4 {
color: #FFF;
margin-top: 40px;
font-family: 'Dosis', sans-serif;
text-align:center ;
font-weight: normal;
}
h4 a {
font-family: 'Dosis', sans-serif;
text-decoration: underline;
}
a {
color: aquamarine;
text-align: center;
text-decoration: none;
font-family: 'arial';
}
label {
color: #fff;
font-family: 'Arial', sans-serif;
}
@de_coder
@import 'https://fonts.googleapis.com/css?family=Dosis';
body {
padding:0;
margin: 0;
background-color:#000;
}
#project-beginner {
width: 90%;
display:block ;
margin:20px 30px;
}
.for-you {
background-color: #000;
border-radius: 4px;
border: 4px solid aquamarine;
box-shadow: 0px 0px 20px aquamarine;
width: 90%;
}
.for-you .above {
width: 100%;
background-color: aquamarine;
color: #000;
text-align: center;
font-size: 1em;
font-family: 'Dosis', sans-serif;
font-weight: bolder;
}
input[type="text"] {
outline: 0 none;
background-color: #000;
color: aquamarine;
padding: 4px;
border: 2px solid aquamarine;
border-top: 4px solid aquamarine;
width: 50%;
-webkit-transition: width 0.5s;
-moz-transition: width 0.5s;
transition: width 0.5s;
display: block;
margin: 0 auto;
margin-top: 20px;
}
input[type="password"] {
outline: 0 none;
border: 2px solid aquamarine;
border-top: 4px solid aquamarine;
background-color: #000;
color: aquamarine;
padding: 4px;
display: block;
margin: 0 auto;
width: 50%;
-webkit-transition: width 0.5s;
-moz-transition: width 0.5s;
transition: width 0.5s;
}
input:focus {
width: 96%;
}
.sumbit-button {
display: block;
margin: 20px auto;
width: 50%;
padding: 2px 0;
outline: 0 none;
border: 2px solid aquamarine;
border-radius: 2px;
cursor: pointer;
-webkit-transition: background 0.5s;
-moz-transition: background 0.5s;
transition: background 0.5s;
background-color: #000;
color: aquamarine;
font-family: 'dosis';
font-weight: 500;
}
.sumbit-button:hover {
background-color: aquamarine;
color: #000;
font-weight: 700;
}
h4 {
color: #FFF;
margin-top: 40px;
font-family: 'Dosis', sans-serif;
text-align:center ;
font-weight: normal;
}
h4 a {
font-family: 'Dosis', sans-serif;
text-decoration: underline;
}
a {
color: aquamarine;
text-align: center;
text-decoration: none;
font-family: 'arial';
}
label {
color: #fff;
font-family: 'Arial', sans-serif;
}
@de_coder
اگر بخوام به طور خلاصه و خودمونی بگم ، ما می تونیم با استفاده از این تابع یک جمله ی کامل رو بگیریم یعنی زمانی یک کلمه رو نوشتیم و space زدیم استرینگ ما قطع نشه و همچنان مقدار بپذیره
اگر دقت داشته باشید از تابعی به نام cin.sync استفاده شده
وظیفه ی این تابع این هست که به کامپایلر بفهمونه که دیگه به space حساس نباشه در زمان گرفتن استرینگ
در برخی موارد هم استفاده از تابع cin.get به جای تابع cin.sync هم درسته که این مسئله مربوط میشه به اینکه مفصّر های زبان ++C با یکدیگر فرق دارند
@de_coder
اگر دقت داشته باشید از تابعی به نام cin.sync استفاده شده
وظیفه ی این تابع این هست که به کامپایلر بفهمونه که دیگه به space حساس نباشه در زمان گرفتن استرینگ
در برخی موارد هم استفاده از تابع cin.get به جای تابع cin.sync هم درسته که این مسئله مربوط میشه به اینکه مفصّر های زبان ++C با یکدیگر فرق دارند
@de_coder
C___--complete_reference_3rd_Edition.pdf
8.8 MB
مرجع آموزش زبان ++C
@de_coder
@de_coder