• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版f369f282074e3351415a9423cb48ebaf4164eb5b (tree)
时间2020-02-17 04:12:21
作者i.bountouris <vagiamouris1994@gmai...>
Commiteri.bountouris

Log Message

unique pointer

更改概述

差异

diff -r c67e6a3a8eda -r f369f282074e practise.cpp
--- a/practise.cpp Sun Feb 16 19:10:36 2020 +0200
+++ b/practise.cpp Sun Feb 16 21:12:21 2020 +0200
@@ -0,0 +1,19 @@
1+#include<iostream>
2+#include<string>
3+#include<vector>
4+#include<memory>
5+#include<set>
6+
7+void giannis(std::unique_ptr<int> &pointer){
8+
9+ printf("hello john from here %d\n", *pointer);
10+
11+}
12+
13+int main(){
14+
15+ std::unique_ptr<int> pointer(new int(10));
16+
17+ giannis(pointer);
18+
19+}
diff -r c67e6a3a8eda -r f369f282074e tonystark.pro
--- a/tonystark.pro Sun Feb 16 19:10:36 2020 +0200
+++ b/tonystark.pro Sun Feb 16 21:12:21 2020 +0200
@@ -1,2 +1,4 @@
11 SOURCES += \
22 practise.cpp
3+
4+CONFIG += console
diff -r c67e6a3a8eda -r f369f282074e tonystark.pro.user
--- a/tonystark.pro.user Sun Feb 16 19:10:36 2020 +0200
+++ b/tonystark.pro.user Sun Feb 16 21:12:21 2020 +0200
@@ -1,6 +1,6 @@
11 <?xml version="1.0" encoding="UTF-8"?>
22 <!DOCTYPE QtCreatorProject>
3-<!-- Written by QtCreator 4.9.2, 2020-02-16T18:57:57. -->
3+<!-- Written by QtCreator 4.9.2, 2020-02-16T20:52:09. -->
44 <qtcreator>
55 <data>
66 <variable>EnvironmentId</variable>
@@ -316,6 +316,7 @@
316316 <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
317317 <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
318318 <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
319+ <value type="bool" key="RunConfiguration.UseTerminal">true</value>
319320 <value type="QString" key="RunConfiguration.WorkingDirectory"></value>
320321 <value type="QString" key="RunConfiguration.WorkingDirectory.default">C:/Users/Giannis/Desktop/Qt_projects/practise_repository/build-tonystark-Desktop_Qt_5_13_0_MinGW_64_bit-Debug</value>
321322 </valuemap>