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

Simple text editor C++

Name: Anonymous 2010-06-23 3:57

Hello, guys. I have a problem with my simple C++ text editor - it compiles, but after doing anything whatsoever it gives segmentation fault.
Source code:
http://pastebin.org/353844
(function readsmth isn't needed yet)

Name: Anonymous 2010-06-23 4:45

Try making sure you imported all your modules.






OH WAIT!

Name: Anonymous 2010-06-23 5:00

If you can't debug 80 lines of code by yourself you need to go read SICP immediately.

Name: Anonymous 2010-06-23 5:00

lol sepples

Name: Anonymous 2010-06-23 5:02

>>1
#include <ncurses.h>
Found your problem.

Name: Anonymous 2010-06-23 5:58

>>5
DONT HELP HIM!

Name: Anonymous 2010-06-23 6:23

nigger

Name: Anonymous 2010-06-23 6:24

I am an expert curses programmer and your code is disgusting. Are you afraid of functions or something?

Name: Anonymous 2010-06-23 6:35

case 27: command_input();
This is going to turn out like vi, isn't it.

Name: Anonymous 2010-06-23 7:52

I hate sepples and I am not a sepples programmer, but here are a few things I observed.

a.push_back("       ");
If vectors are what I think they are, this will only add one element with the content of "       ".  Not sure what you're doing here, but if you assign values with a[pointery][pointerx]=abc;, and it looks like abc it a vector of char pointers, you're not pushing char pointers onto it, only strings.

2.You declare int x,y; at the top of the code, yet use int pointerx,pointery.  With both you don't give them a starting value, meaning it could start with any value.  It's odd, but when C++ gives you memory it can already have stuff in it if you don't set it explicitly yourself.  You're also comparing it to the x, meaning it could go on almost forever not knowing the values.

Hopefully that helps.

Jesus H. Christ, just writing that gave me a migrane.  I feel bad for C++ programmers and anyone that has to look at the awful language.  This is why I stay with languages that avoid this kind of bull shit.

Name: Anonymous 2010-06-23 8:39

>>7
* African American

Name: Anonymous 2010-06-23 14:18

>>10
I hate Sepples and I am a Sepples programmer, but here are a few things I observed.

You don't know Sepples.

Carry on. I love to see grasshoppers help each other. It's like watching two blind men helping each other find the exit on a rooftop.

Name: Anonymous 2010-06-24 3:24

>>11

>implying all niggers are of African descent or reside in America

Name: Anonymous 2010-11-26 2:48

Name: Anonymous 2011-02-04 19:10


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