Skip to content

Korean

A forum for those speaking Korean

48 Topics 78 Posts
  • 0 Votes
    1 Posts
    126 Views
    No one has replied
  • QT Creator 6.5.3 QPDF 사용법 문의

    Moved Unsolved
    3
    0 Votes
    3 Posts
    384 Views
    SGaistS

    @jsulm moved

  • Qt6에서 FTP를 사용하시고 계신 분들 있나요?

    Unsolved
    1
    0 Votes
    1 Posts
    230 Views
    No one has replied
  • item could not be created 문제

    Unsolved
    2
    0 Votes
    2 Posts
    376 Views
    D

    @mkdir Qt Creator 12.0에서 생긴 버그 같습니다. 12.0.1로 업그레이드해도 여전히 이 문제가 해결된 것 같지는 않습니다.

  • qthread 쓰레드 통신문제

    Unsolved
    1
    0 Votes
    1 Posts
    230 Views
    No one has replied
  • ChartView Data Append

    Unsolved
    1
    0 Votes
    1 Posts
    188 Views
    No one has replied
  • ShellExecute 사용 관련 문의

    Moved Unsolved
    5
    0 Votes
    5 Posts
    780 Views
    Pl45m4P

    @hlowd said in ShellExecute 사용 관련 문의:

    코드로 scp 명령을 수행해야 하는데 해결 방법이 있을까요?
    ps) qprocess로 실행 시 scp 명령이 유효하지 않는 것 같습니다.

    I need to run the scp command with the code, is there any workaround?
    P.S. The scp command doesn't seem to be valid when executed with qprocess.

    (translated with DeepL)

    If you want to start a QProcess and run scp do something like this:

    QProcess process; // Path to your scp, wherever it is... // e.g. C:/Windows/System32/OpenSSH/scp.exe QString command = "C:/Program Files/Git/usr/bin/scp.exe"; // you need full path to scp.exe here // or register in PATH variable on your system so that Windows knows the "scp" command and where the program is located QStringList params; params.append("‪/C/Path/to/File"); params.append("‪user@host:/C/Destination/Path/"); process.start(command, params, QIODevice::ReadWrite);
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    56 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • double 소수점 계산 관련 문의

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    Paul ColbyP

    @hlowd said in double 소수점 계산 관련 문의:

    더해지는 값을 double 형 변수에 저장하는 것은 어려울까요?

    Sure, you can convert the results to floating point numbers at any stage - eg inside the loop, or a the very end. For example:

    #include <iomanip> #include <iostream> int main() { uint64_t a = 25; uint64_t sum = 0; for(int i = 0; i < 100000; i++) { sum += a; const double sumAsFloat = sum/100000.0; std::cout << (sum/100000) << '.' << std::setfill('0') << std::setw(5) << (sum%100000) << std::setprecision(10) << " \t[" << sumAsFloat << ']' << std::endl; } }

    Outputs:

    0.00025 [0.00025] 0.00050 [0.0005] 0.00075 [0.00075] 0.00100 [0.001] 0.00125 [0.00125] 24.99900 [24.999] 24.99925 [24.99925] 24.99950 [24.9995] 24.99975 [24.99975] 25.00000 [25]

    Cheers.

    PS: In printing both the uint64_t and double versions side-by-side, I realised there's was a small error in my previous reply, where the (sum%10000) should have had another 0, ie (sum%100000). I fixed that in the code in this reply :)

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied