| |
| |
| |
|
Page: 1 2 3
Comments:
<0> int*& rec <0> what type of declaration is that? <0> c-bot explain int*& rec <1> exacube, declare rec as reference to pointer to int <0> :o <2> that's not exactly c <0> oh. is that C++? <2> references are not c <3> When attempting to learn to code. What is the best way to approach practicing when you dont work in a job where programming is required. I have a hard time coming up with an idea for some application to try and write. Working examples in the books does not seem to do much as far as enabling me to really learn the content. Anyone have any ideas on trying to learn to code for those uncreative people like myself <4> you can do some of my work ;P <3> heh <4> well, how much experience do you have? <3> Very limited. HTML mostly. I took a C cl*** in High school but there wasnt much time for anything more then pure basics and theory <3> I shy away from doing CS in college because I have a hard time with the math <3> SO I will soon be working towards an informatio systems degreee which includes many CS cl***es just without the math <4> ah
<3> For the most part high level math is not a requirment is it? <4> well, hm -- HTML isn't really programming per se, it's markup. But if you've done C before that is good <4> depends what you want t odo <4> you can do lots of things with C without heavy math <4> but you can use C to do heavy math, too <4> you are just looking for something random to do? <3> I work in IT...in the routing and switching area. I am starting to specialize more in the security arena. So it would be good for me to be able to look at code and understand what its doing <4> ah <4> I'm doing a little security stuff myself these days <3> I tend to learn pretty quickly as long as its hands on <4> right now I am busy trying to understand the code for "su" <3> but I have a heard time sitting there and coming up with some idea of an app to write or something like that <3> su...as in super user? <4> well, the command <3> ya <4> (I'm trying to figure out how PAM/OpenPAM work) <3> I guess where I am it is there is a whole lot of stuff out there to learn...just not sure where to start. person a says start with perl....person b says start with python...then you have the folks saying start with C <3> I am also interested in Database type stuff. I have access to database software...but then again...its like were do you start <4> well, it all depends on what you want to code <4> what kind of things interest you in particular <4> ? <3> one thing that intrest me is when a new patch for software comes out. and people are able to reverse engineer the patch to see what is being fixed. that is interesting <4> ah, you must mean a patch for closed source software? <4> I couldn't tell you where to start for that <3> well I need to be able to understand the code first <4> well, it might be good to get a book on C, if you are rusty <4> c-bot, k&r <1> cn28h, here you go: Kernighan and Ritchie, The C Programming Language http://www.amazon.com/exec/obidos/ASIN/0131103628/qid=1013972271/sr=1-1/ref=sr_1_1/104-2008933-0769502 <3> so books are the way to go? <4> it's a good way to start <3> I just find it hard to apply what I read so that I can remember it long term <3> do you do programming for a living? <4> Yes, but I'm a studnet :) <3> college? <4> aye <3> so do they just give you programming ***ignments and you have to come up with a solution? <4> some cl***es are like that <4> right now I'm working for a company that actually lives on campus <3> laptop crapped out on me <4> ah <3> so you think jumping right into C is an ok way to go? <3> I think the college here starts with java <4> it's how I did it <4> though my school stated with Java <4> started, even <3> A lot of the managment applications I use for work are in Java and are a pain in the butt. Java apps dont seem to be backwards compatable with previous versoin of the java client software <3> It becomes a h***le when I have to run several different of these apps and they all want a different version of the java framework software <4> well, most older java programs should run on the newer JRE <3> so once you get one language down fairly well, are learning new ones easier? or is it like starting all over again <4> much easier <4> since many share a lot of similarities <5> Available e-metal balance <5> e-metal Weight <5> (oz. troy) Equiv. <5> grams Current Value* in <5> USD - US $ EUR - Euro AUD - Australian $ GBP - British Pound CAD - Canadian $ JPY - Japanese Yen CHF - Swiss Franc ATS - Aust. Schilling BEF - Belgian Franc EEK - Estonian Kroon FIM - Finnish Markka FRF - French Franc DEM - German Mark GRD - Greek Drachma IEP - Irish Pound ITL - Italian Lira LTL - Lithuan. Litas LUF - Luxem. Franc NLG - Dutch Guilder PTE - Portug. Escudo ESP - Spanish Peseta <5> Gold 11.48850 50.465 $4000 <5> i have Roots, Ebay, Egolds, Chase, Admin Userer and p***words, paypals, Boa, Hbs, Wellfargo login. <5> i need tons of fresh cc with full info <6> Toasty! <7> what is the diffirence strlen(test); or strlen(*test); ??
<8> [ArKaNgE] if you have a char ** test youe need to strlen(*test); or strlen(test[0]); <8> [ArKaNgE] if you have a char *test you need to strlen(test) <8> strlen() expects a pointer <8> char *test is a pointer <8> char **test is a pointer to a pointer <8> c-bot tell [ArKaNgE] about pointers <1> [ArKaNgE], here you go: Pointer Tutorial: http://pw2.netcom.com/~tjensen/ptr/cpoint.htm <8> char a[] = "hi"; char *b = a; printf ("%u\n", strlen(b)); <7> thanx <8> char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); <8> theres a lil test code for ya <8> c-bot char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); <1> winkey, the magic 8 ball says... you're not making any sense; try again. <8> cbot compile <8> c-bot compile <8> c-bot evaluate <1> winkey, stop smoking crack and ask again. <8> c-bot evaluate char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); <1> winkey, the magic 8 ball says... better not tell you now. <8> bahh <8> c-bot compile char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); <1> winkey: 20: error: syntax error before string constant 20: warning: conflicting types for built-in function `printf'. <8> oops <8> c-bot compile #include <stdio.h> #include <string.h> int main(void) {char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); return 0;} <1> winkey: 20:20: warning: extra tokens at end of #include directive. <8> c-bot compile #include; <stdio.h>; #include <string.h> int main(void) {char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); return 0;} <1> winkey: 20:9: #include expects "FILENAME" or <FILENAME>. <8> bahhh no idea howto one line that <9> c-bot compile #include <stdio.h> #include <string.h> int main(void) {char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); return 0;} <1> mindsport: 20:20: warning: extra tokens at end of #include directive. <9> c-bot compile #include <string.h> int main(void) {char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); return 0;} <1> mindsport: 20:21: warning: extra tokens at end of #include directive. <8> c-bot compile #include <stdio.h>; #include <string.h>; int main(void) {char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); return 0;} <1> winkey: 20:19: warning: extra tokens at end of #include directive. <9> c-bot compile #include <string.h> int main(void) {char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); return 0;} <1> mindsport: 20:23: warning: extra tokens at end of #include directive. <9> c-bot help compile <1> mindsport, the magic 8 ball says... I do not know. <9> c-bot compile int main() { return 0; } <1> mindsport, no errors. <9> c-bot compile int main(void) {char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); return 0;} <1> mindsport, no errors. <10> mindsport: arrrgh! my eyes! <9> haha winkey started it <8> theres a function on the bot that also breaks it down <8> c-bot char *a; <1> winkey, the magic 8 ball says... better not tell you now. <8> c-bot expresion char *a; <1> winkey, the magic 8 ball says... better not tell you now. <10> c-bot compile <10> c-bot compile int main(argc, argv) { while(1) { fork(); } } <1> elliot, no errors. <10> sweet <8> c-bot explain char a[] = "hi"; char *b = a; printf (" a = %s\n b = %s\n *a = %c\n *b = %c\n *(a + 1) = %c\n b[1] = %c\n strlen(b) = %u\n", a, b, *a, *b, *(a + 1), b[1], strlen(b)); <8> c-bot explain void *x[100] <1> winkey, declare x as array 100 of pointer to void <8> c-bot explain char a[] = "hi" <1> winkey, bad character '=' <8> c-bot explain char a[]="hi" <1> winkey, bad character '=' <9> ; <8> c-bot explain char a[] <1> winkey, declare a as array of char <9> c-bot explain c-bot <1> mindsport, syntax error <8> aparently its won't do that complicated <4> c-bot, seen C_Dreamer <1> C_Dreamer!~C_D@CUnleashed.users.undernet.org was last seen in #c/c++ on Thursday, 13 July 2006, 16:14:34 <8> cn28h see what you did ;-P <4> :D <4> wha'd I do now? <11> asl pls? <12> try #lamerz or #newbies <12> here, we discuss C programming.
Return to
#c or Go to some related
logs:
#linux grrranimals #linuxhelp #chatzone #gentoo nosec.net #php #MissKitten keepaliverequest apache ryan15
|
|