About
Community
Bad Ideas
Drugs
Ego
Erotica
Fringe
Society
Technology
register | bbs | search | rss | faq | about
meet up | add to del.icio.us | digg it
Go Back   Community > Technology > Network (in)Security
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Network (in)Security Interesting hacks and cracks. Info on firewalls, TCP/IP, encryption, networks, and security. The ins and outs of the phone system, caller services, how things work, what's illegal and what's not, cellular phones, beepers, telephony legislation, the PUC, ISDN, taps, who's listening, and switches. Talking about phones, hacking systems, technical advice, and such is completely LEGAL in the United States -- it's covered by the First Amendment. What's illegal is conspiracy to commit a crime. So if you say something like "Meet me at 2am so we can crack a can" or "I changed my cell phone's number myself" you are criminally liable. Stating "You can crack a can by doing thus-and-so" or "If you wanted to change a cell phone's number, you could do it like so" is perfectly OK. Posting passwords, calling card numbers, or credit card numbers is forbidden on this network. Posting such info will get you booted off the net.

Reply
 
Thread Tools Display Modes
 #1 
Old 2005-01-07, 05:13
sanchone69 sanchone69 is offline
Regular
 
Default is there something wrong with my function

Am i using the void function correctly, i am getting a loc is not in this scope for some reason, i know this object orietned programming is not part of the C++ library but maybe someone can tell me by the layout of everything if i am doing something wrong here. Thank in advance.



#include "ccc_win.h"



using namespace std;

void draw_diamond(const Point& loc, const double size);

{

double new_y = loc.get_y();

double new_x = loc.get_x();



Point top = loc;

top.move(0, new_y/2);

Point bottom = loc;

bottom.move(0, new_y/2 * -1);

Point left_side = loc;

left_side.move((new_x/3 * -1, 0);

Point right_side = loc;

right_side.move(new_x/3 ,0);

Line top_left(top, left_side);

Line left_bottom(left_side,bottom);

Line bottom_right(bottom, right_side);

Line right_top(right_side,top);

cwin << top_left << left_bottom << bottom_right << right_top;

}



int ccc_win_main()

{

cwin.coord(0,0,100,100);

Point center(50,50);

double size = 20;

while(size != 0)

{

draw_diamond(center,size);

size = cwin.get_double("Enter a number : ");



}

return 0;

}
 #2 
Old 2005-01-07, 05:31
Moderator
 
Tokyo, 日本
Default Re: is there something wrong with my function

Which line generates the error?
 #3 
Old 2005-01-07, 05:31
lifejunkie lifejunkie is offline
Regular
 
Default Re: is there something wrong with my function

void draw_diamond(const Point& loc, const double size);

;

;

;
 #4 
Old 2005-01-07, 05:34
Moderator
 
Tokyo, 日本
Default Re: is there something wrong with my function

Holy shit. Didn't even see that. Ha.

Good eyes. I need to fix my ADD...
 #5 
Old 2005-01-07, 20:56
sanchone69 sanchone69 is offline
Regular
 
Default Re: is there something wrong with my function

I'm sorry, i must be an idiot, but i dont understand what you mean by the three semi-colons. Can somebody please explain, thanks.
 #6 
Old 2005-01-08, 00:37
cvh cvh is offline
Regular
 
Default Re: is there something wrong with my function

He meant remove the semi-colon behind that line.
 
To the best of our knowledge, the text on this page may be freely reproduced and distributed.
 

totse.com certificate signatures
 
 
About | Community | Bad Ideas | Drugs | Ego | Erotica | Fringe | Society | Technology
Hot Topics