[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 701- 2ch.scのread.cgiへ]
Update time : 12/30 01:40 / Filesize : 162 KB / Number-of Response : 784
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

OpenWatcom C++



1 名前:デフォルトの名無しさん [02/10/01 09:55.net]
IDE やプロファイラまでついてくるフリー最強の C++ コンパイラ
Watcom C++ について語りませう。

一応、こちらから入手できます。
難点はちょっと大きい事(45MB)です。
www.openwatcom.org/

767 名前:デフォルトの名無しさん mailto:sage [2014/02/12(水) 23:45:17.25 .net]
誰か新ネタくれよ

768 名前: 【だん吉】 [2014/03/01(土) 00:41:09.57 .net]
これとVS2010のC++とどっちがいいかな

769 名前:デフォルトの名無しさん mailto:sage [2014/03/09(日) 09:54:14.45 .net]
std::forward_listきたか

770 名前:デフォルトの名無しさん mailto:sage [2014/03/21(金) 15:40:46.17 ID:HlK5TI/j.net]
プロファイラのつかいかた
例でおしえてください
おねがいします
コマンドツールでもプロファイラつかえますか?
わからんわからん

771 名前:デフォルトの名無しさん mailto:sage [2014/03/22(土) 17:19:23.68 ID:4HmosEXO.net]
>>767
ヘルプ見て分からないか?
デバッグ情報付きでビルドして、サンプラにかけて出たファイルをプロファイラに渡すだけだろ
最適化はかけとけよ

772 名前:デフォルトの名無しさん mailto:sage [2014/04/03(木) 04:15:15.90 ID:DqBt0M+X.net]
#include <iostream.h>
#include <string.h>
#include <string.hpp>

void display(String & s)
{
    cout << "length = " << s.length() << endl;
    int u = strcspn( s.c_str(), "0123456789"); // Error!
    cout << "u = " << u << endl;
}
// つづく

773 名前:デフォルトの名無しさん mailto:sage [2014/04/03(木) 04:16:13.95 ID:DqBt0M+X.net]
int main(int argc, char *argv[])
{
    const int COUNT = 4096;
    String id("bcd10023");
    int id_length = id.length();

    switch(argc) {
    case 2:
        if(! strcmp(argv[1], "-e") ) { // Errorになるオプション
            String s = id(id_length, COUNT);
            display(s);
        } else {
            display(id);
        }

        break;
    default:
        display(id);
        break;
    }

    return 0;
}

774 名前:デフォルトの名無しさん mailto:sage [2014/04/03(木) 04:18:00.77 ID:DqBt0M+X.net]
C:\work>cspan
length = 8
u = 3

C:\work>cspan -e
length = 0
The instruction at

775 名前: 0x00401412 referenced memory at 0x00000000.
The memory could not be read.

C:\work>cspan -s
length = 8
u = 3
[]
[ここ壊れてます]



776 名前:デフォルトの名無しさん mailto:sage [2014/04/03(木) 05:02:24.33 ID:8q69jo+f.net]
> String s = id(id_length, COUNT);
なにこれ

C:\WATCOM\docs\cpplib.pdf

にも書いてないけど

777 名前:デフォルトの名無しさん mailto:sage [2014/04/03(木) 05:27:06.37 ID:DqBt0M+X.net]
部分文字列です
sub-sequenceは、posからはじまって、len個つづきます
The sub-sequence begins at offset pos within the String object and continues for len characters.


String::operator ()()

Synopsis: #include <string.hpp>
public:
String String::operator ()( size_t pos, size_t len ) const;
Semantics: This form of the operator () public member function extracts a sub-sequence of characters from
the String object. A new String object is created that contains the sub-sequence of characters.
The sub-sequence begins at offset pos within the String object and continues for len characters. The
first character of a String object is at position zero.
If pos is greater than or equal to the length of the String object, the result is empty.
If len is such that pos + len exceeds the length of the object, the result is the sub-sequence of characters
from the String object starting at offset pos and running to the end of the String object.
Results: The operator () public member function returns a String object.
See Also: String::operator [], operator char, operator char const *

String Class 873
cpplib.pdf

778 名前:デフォルトの名無しさん mailto:sage [2014/04/03(木) 05:31:01.56 ID:DqBt0M+X.net]
// substri.cpp
#include <iostream.h>
#include <string.hpp>

int main(int argc, char *argv[])
{
    const int COUNT = 4096;
    String id("bcd10023");
    int id_length = id.length();

    String s = id(id_length, COUNT);
    cout << "s: length = " << s.length() << endl;
    cout << s << endl;

    int count = 3;
    int begin = 3;
    String g = id(begin, count);
    cout << "g: length = " << g.length() << endl;
    cout << g << endl;
    return 0;
}
/*

C:\work>substri
s: length = 0

g: length = 3
100

*/

779 名前:デフォルトの名無しさん mailto:sage [2014/06/09(月) 23:57:18.89 ID:dAVEHAsk.net]
windows 7,64bitを使っているのですが,
wclでコンパイルした実行ファイルは,64bitでは使えない
というメッセージがでるのですが,wcl386でコンパイルする
と実行できるのです。
wclとwcl386とではどう違うのでしょうか。

780 名前:デフォルトの名無しさん mailto:sage [2014/06/10(火) 01:06:02.23 ID:kNmgHm7N.net]
wcl は 16bit CPU 環境用の exe を生成。
wcl386 は 32bit CPU 環境用の exe 生成。

32bit windows は 16/32 bit(cpu) exe を実行できるけど、
64bit windows は 32/64bit exe のみで 16bit exeを実行できない。

781 名前:デフォルトの名無しさん mailto:sage [2014/06/10(火) 05:40:57.55 ID:ZIPkO3Cr.net]
>777
了解しました。
ありがとうございます。

782 名前:デフォルトの名無しさん [2014/08/03(日) 12:09:22.65 ID:91Gs3y/1.net]
★2ch勢いランキングサイトリスト★

◎ +ニュース
・ 2NN
・ 2chTimes
◎ +ニュース新着
・ 2NN新着
・ Headline BBY
◎ +ニュース他
・ Desktop2ch
・ 記者別一覧
◎ 全板
・ 全板縦断勢いランキング
・ スレッドランキング総合ランキング
◎ 実況込み
・ 2勢
・ READ2CH
・ i-ikioi

※ 要サイト名検索

783 名前:過去ログ ★ [[過去ログ]]
■ このスレッドは過去ログ倉庫に格納されています






[ 新着レスの取得/表示 (agate) ] / [ 携帯版 ]

前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧]( ´∀`)<162KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef