| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12
Comments:
<0> why not, P-Brasil? <1> Lemme post the code. <2> and the errors <2> later, gym time. <1> http://www.noidea128.org/sourcefiles/16031.html <1> Just take a look <1> the error is: 22 integer constant is too large for "long" type <3> you did not specify the type <1> I changed something. Without the operations with the other variables,the code works. <1> Found the error. <1> I wasn't payng attention to a detail. <1> damn <1> not worked still <0> what's the problem? <1> it says the integer is too long <1> but i used it before
<1> when i try to do <1> d3 = cnpj%10000000000 / 1000000000; <1> it do not accepts <3> YOU have to specify the type of the scalars! <1> What do you mean with it please ? <1> Sorry. I'm a C++ Beginner. <3> well, first try: d3 = cnpj % 10000000000L / 1000000000L <3> oh.. hmm I am not sure about the inner workings of the % operator now that I think about it <0> oh, yes... I remember <1> Nothing changed. <0> what's the problem? <1> Same error. <1> the error is: 22 integer constant is too large for "long" type <3> well, you need to specify a long long scalar <1> I never have heard about specy a scalar in my variable type. <3> scalar is a generic term, not a c++ keyword <3> (long long) 1000000000000000 <3> try that for fun <3> just curious <3> manipulating large numbers does take a certain amount of finess. <0> cool <1> Not worked. <1> Really. <0> please? <1> Same thing. <3> cast everything larger than an int to long long to test <3> if that does not work, you will have to go another route <3> I would probably do long long num = <smallest number here> then multiply it by 10 each time in a loop to make a better program layout. <3> but thats ***uming modulus works as I think it does. <1> What i want is to think how i can make operations, not use a loop understod ? <1> why'd i am sure that using c++ builder 6 it's gonna work <0> yes... you are, P-Brasil <4> is there a way to do "int *array5 = new int[n];" without the * but instead using [] <4> no answer. hmm, that's not a good sign. heh. <0> please? <4> what was your question goldfish? <1> What i said ? The damned thing worked with C++ Builder 6 <5> t2m: I don't think it's possible. In any case, your current syntax is valid, so you should stick to it. <4> thanks DrkMatter. <4> the problem is, the instructor wants us to "pull it off" w/out using a pointer. :/ <5> ... Eh? <4> ya.. lol <6> Pull what off? <0> you haven't lost your sence of humor, t2m <4> int *array = new int[n]; <--- w/out the * <4> but using []'s <7> You can program very effectively in C++ without ever using pointers. <7> Use a container cl***. <6> You can't use new without a pointer <4> ok, a cl***.... that's what i thought <6> That's what it returns <7> well, without explicitly using pointers, at least. <4> i'll give that a try, i think i'll be more successful w/ the parameters <4> thx for that input JBlitzen. <4> i'm new to constructor'ing <6> That's not a constructor <6> We don't understand what you think you're trying to do <4> new isn't? <5> Errr.... You'll still be using a version of new returning a pointer, even if it's wrapped. <7> How about you post your homework ***ignment so we can see how much we can help and how much we can safely let you struggle with to encourage learning? <5> new calls a constructor. It'S not a constructor in itself.
<7> (link preferred) <4> naa, thank you all. you've been helpful.. i'll leave now before your sarcasm rises further than i'm willing to enjoy. <0> no thanks! ;) <5> Foo *f = new Foo(4); // new ***igns memory to hold an instance of Foo, then calls Foo::Foo(int) to construct a Foo object that'll fill that spot. <6> That'll teach us <5> There was sarcasm involved? <8> hello! i have installed on my computer MSVisualStudio2005 and i want to make a database in SQL Express - but i dont know where to start, because i've made a new Project/Solution Windows Application from File->New Menu and didnt find where to add MyDatabase or/and Tables or Queryes! Can u help me? <9> Oh well, off to work <9> (it's been 2 weeks har har) <2> woooo!! Knocked out a 5.11C tonight! <10> is Herbert Schildt the co founder of c++? <11> no <10> a n00b forumer said "C++: The Complete Reference <10> Herbert Schildt <10> The author is the co-founder of the language. " <11> he's lying <10> i think only Bjarne Struostrup is the founder of c++ <10> right? <11> ja <10> what's ja? <12> ibooq: "yes" in german <10> wtf <13> care ma invata si pe mine <13> sa lucrez cu c++ <13> ? <14> Please use english. <15> I have and expression that divides an int by a float. According to the definition of the C language a float & int -> float & float. Is there work around to obtain an int as the result rather than a float? <13> i want to learn to use c++ <15> and = an <13> who learn me :D <14> _piky: just ***ign it to an int <14> and it will cut off any parts <15> it doesn't work because a cast of type int is break the definition.. <14> or cast the float to integer in the expression <15> a cast will not work. <14> explain <15> unsigned long = (unsigned long) x / y; will throw an error if x is an int of any type and y is a float.. <14> define 'will throw an error' <15> of sorry, will not compile. <14> you only cast x there.. not the result of the expression <14> and it would compile just fine here <15> ok thanks <14> unsigned long result=static_cast<unsigned long> ( x/y ); <16> Roxy^: sorry, we're not a tutoring channel. You should get a good C++ book, e.g. "Accelerated C++" by Andy Koenig. <15> an crap, I'm sorry for posting such a stupid question. Thanks for the help, I really should get some sleep :P <16> Roxy^: we likely will answer specific questions, though. <13> i want <13> to modify an file .src <13> how ? <13> scr <13> .scr <12> um <14> .brain <13> a ? <16> Sorry, we don't support hackery or malware. <14> _piky: let me guess. .you forgot the variable name of the result? <15> yup, thanks for the help. <14> no prob <17> hackery? I thought thats what all good C++ programmers do, hack out code <13> hackery ? <14> I like hacking walls better <13> malwary ? <14> it is more productive <17> Tamama, hacking walls? you mean exploiting vunerbilities in a FPS game? (excuse spelling) <12> I hack lungs <12> result of smoking when I was younger <14> threat: no, physical walls.. things that keep the roof of a house in the air <17> Tamama, oh <18> i recommend a good sledgehammer <17> Tamama, and would one hack a physical wall? <14> (though nowadays, io know, walls do not support the roof.. they are just there to look pretty) <17> Tamama, with an axe?
Return to
#c++ or Go to some related
logs:
allnitecafe #AllNiteCafe #AllNiteCafe #AllNiteCafe #AllNiteCafe visi frim #chatzone #c++ failed to find free txdesc #php
|
|