Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Halp

Name: Anonymous 2009-06-17 18:13

in during idiot expecting /prog/ to help someone:
#include <fstream>
char * ops = "111";
//irrelevant
    std::ifstream options;
    options.open("ast.cfg");
    options.get(ops, 3);//Crash with no debug message on this line.
    options.close();
//irrelevant
How did I fuck up? Please?

Name: Anonymous 2009-06-17 18:20

And before someone mentions it: yes, there is a file called ast.cfg and it's first it has 3 characters on the first line, "000".

Name: Anonymous 2009-06-17 18:22

I think I see the problem here.

It seems you are using C++.

Name: Anonymous 2009-06-17 18:26

>>3
herp derp

Name: Anonymous 2009-06-17 19:04

Protip: there's a difference between an array of chars and a pointer to a constant string.
I can't believe this is still an issue for people.

Name: Anonymous 2009-06-17 21:32

>>5
It's C's fault for not making string literals const.

Name: Anonymous 2009-06-17 21:51

You're using Sepples. Why the fuck aren't you using string?

Name: Anonymous 2009-06-18 2:04

>>7
If he knew what he was doing, do you think he'd be using Sepples in the first place?

Name: Anonymous 2009-06-19 22:29

>>7

He's using C++. I'm tired of /prog/'s shitty memes, okay? They're really not funny. Try to add something constructive.

Name: Anonymous 2009-06-19 22:34

>>9
I see what you did there. Your reverse trolling was a prudent idea, but your execution was somewhat lackluster. I give it a 2/10.

Name: Anonymous 2009-06-19 22:35

>>9
He's using C++.
Did you mean: Sepples

Name: Anonymous 2009-06-19 22:59

>>9
No-one cares what you think. If you feel like bitching about the state of /prog/ go write a fucking blog post or something.

Name: Anonymous 2009-06-19 23:01

>>11
No. I would type four characters rather than 7

Name: off-topic 2009-06-19 23:03

>>13
If you want to go by ease of typing, Sepples may be easier as there is no awkward stretch for the plus sign and the row above home is easier to type than the row below.

Name: Anonymous 2009-06-19 23:26

>>14
I use my own typing method that doesn't use the traditional home row keys. My home row is wdfv and njko.

Name: Anonymous 2009-06-20 3:11

>>15
So you can type the phrase kodomo no jikan easily?

Name: Anonymous 2009-06-20 3:22

>>16
[code]
>> kodomo no jikan
=> ノー・ジョーク

Name: Anonymous 2009-06-20 4:26

my homekeys seem to roughly be
a e r g  n i o [
it's my own natural style.

Name: Anonymous 2009-06-20 4:53

mine are [ctrl] a w f [spacebar]   [spacebar] k p ] [enter]

I guess it seems most natural when programming, easy access to =, + and backspace, as well as enter, shift and spacebar keys all at virtually the same time- and the right pinky finger has easy to access to [delete] and the arrow keys.

Name: Anonymous 2009-06-20 4:56

The whole keyboard is my home row.

Name: Anonymous 2009-06-20 5:08

>>19
18-kun here, yeah actually my programming stance home keys are more along those lines

Name: Anonymous 2009-06-20 12:14

my home row has the hadouken key

Name: Anonymous 2009-06-20 12:38

>>20
Do you use a chorded keyboard/keyer?

Name: Anonymous 2009-06-20 14:47

i don't know what those option.get() is but could it be

ops is made like this [1|1|1|NULL]
and with 3 your are passing the fourth element of the string (remember they start from 0...) so it's NULL

i repeat i do not know what that 3 means XD but i guess it has something to do with the string :\

Name: Anonymous 2009-06-20 18:00

I accidentally the whole keyListener. Is this bad?

Name: Anonymous 2009-06-21 3:30

>>25
Back to /b/, please.

Don't change these.
Name: Email:
Entire Thread Thread List