6,741 Posted Topics

Member Avatar for merse

Um, just include the libraries you know are needed. Consider this a lesson in writing portable code: the compiler is not a replacement for your brain.

Member Avatar for merse
0
80
Member Avatar for gpleonar

>1. I did not see the first two ones in the Fibonacci sequence. Probably because those values weren't printed. They're in the generated sequence though. frrossk's program kind of sucks anyway. >Also, can you tell me that the a and the i means in this program?? a is an array …

Member Avatar for harshmore
0
415
Member Avatar for creeps

Holy excessive comments Batman! Just FYI, if you find yourself commenting nearly every line of code with multiple lines of comments, either your code is far too opaque and needs some serious attention toward readability, or you're including too many unnecessary comments. In reality well written code needs fewer comments …

Member Avatar for creeps
0
525
Member Avatar for majestic0110

1) Sailor Moon (for sentimental reasons) 2) Haruhi Suzumiya no Yuutsu 3) Tenshi na Konamaiki

Member Avatar for Kusanagi03
0
352
Member Avatar for coolmel55

>Or use memcmp, which essentially does this. memcmp uses a shallow byte-by-byte comparison, so depending on the type of items in the array this might not be a good idea.

Member Avatar for arkoenig
0
306
Member Avatar for Saranya Ravi

[QUOTE=Saranya Ravi;]Could anybody please tell me some competitive certification exams for c and c++[/QUOTE] There are none that I'm aware of. Sure, you can find certifications for C and C++, but they are hardly respected in the professional world. It's a waste of money, in my opinion.

Member Avatar for mike_2000_17
0
129
Member Avatar for onako

The vector handles its own memory. You only need to free pointers that were explicitly allocated with new.

Member Avatar for mike_2000_17
0
4K
Member Avatar for Dimesh

Please elaborate on which parts you don't understand. Otherwise all I can do is restate the same thing in a slightly different way and there's enough information that I'm uninterested in typing it all out on my iPad's less than ideal keyboard.

Member Avatar for Narue
0
188
Member Avatar for CoderXpert

[B]I need some good Ideas about final year projects....[/B] We get at least ten threads a month from idiot students who somehow managed to get the final project without a clue. Perhaps you should read some of those threads instead of adding your own. Or, for a more enlightening experience, …

Member Avatar for Nick Evan
-2
246
Member Avatar for rajwant51

[QUOTE=rajwant51]sir it is my request to you plese give me idea how to write c- code for screen saver i.e. using c languahe[/QUOTE] Gimme a G! Gimme an O! Gimme another O! Gimme a G! Gimme an L! Gimme an E! Goooooooo GOOGLE!

Member Avatar for karthik_udt
0
258
Member Avatar for pavani2006

>help me in aproper way Say please, jerk. The least you could do is show some respect to the people who are volunteering their time to help you for nothing in return. >i could print characters in reverse but not words Okay, you can print the characters in reverse now …

Member Avatar for devaru2003
0
222
Member Avatar for sabareesh

Did you do any research at all? It's not like C has so many functions in the standard library that realloc is hard to locate.

Member Avatar for sabareesh
0
92
Member Avatar for TheWeakGetEaten

C++ is extremely limited in the values you can use. For example, the int data type is only guaranteed to hold the values -32,767 to 32,767. A large integer like 9999999999999999999999999 can't be stored in a single variable of any type. So you get around it in one of two …

Member Avatar for bondgirl
0
1K
Member Avatar for daudiam

[ICODE]b=c/d++[/ICODE] and [ICODE]b=(c)/(d++)[/ICODE] are equivalent. The parentheses don't have any effect on how that expression will be evaluated. [B]>Is my understanding correct ?[/B] You're a little confused, but mostly correct. It makes more sense if you use functions instead to illustrate the unspecified order of evaluation: [code] #include <stdio.h> int …

Member Avatar for daudiam
0
241
Member Avatar for ShadowOfBlood

Start with the summation, because that's easy. You already seem to know about taking the remainder of ten to get the least significant digit and dividing by ten to slice it off. Remember to keep it as simple as possible. When you do this with more than one loop, you're …

Member Avatar for 1stDAN
0
4K
Member Avatar for Fasola

Each of these are rather broad topics. Can you cut it down to specific questions so we don't have to write page after page of tutorials?

Member Avatar for A.Rehman Amjad
0
1K
Member Avatar for renar

>return *i2 - *i1; Eew. Can we say integer overflow? >return (x < 0) ? 1 : (x > 0) ? -1 : 0; Eeeeew! Nested conditional statements are fugly and hard to follow. How about this: [code] int compare ( const void *a, const void *b ) { return …

Member Avatar for Ancient Dragon
0
261
Member Avatar for digital_dizasta

So do you have a real question or are you just another lazy leech who wants other people to do his homework?

Member Avatar for mrniceguy03
0
3K
Member Avatar for ph34rgh057

I'd be happy to, first you'll need to start up your favorite image editing software... Seriously, did you honestly think that C or C++ had a built in capability to do this? [code] #include <image.h> int main ( void ) { draw_image ( ".gif" ); return 0; } [/code] Sorry, …

Member Avatar for theguy126
0
214
Member Avatar for wonderland

[QUOTE=wonderland;1222716]Hi, Didn't know which section to write this in. :( I would like to know how could I delete two of my threads, since they show up on google search and I don't want them to. Of course editing would be an option, but lately edit post button only shows …

Member Avatar for nateuni
0
341
Member Avatar for Duki

>I would really like to see more ladies in this business! I am male! I'm sure that's a completely selfless desire. ;) It's amusing to watch how women are treated in the field. In my case, it's always assumed that I'm lacking in knowledge or experience. This is odd to …

Member Avatar for dream party
0
348
Member Avatar for The Founder

[B]>no I DIDN'T read the rules[/B] Then don't complain when you're punished for breaking the rules you didn't bother to read. [B]>cuz people who read the rules are for people who don't have their own website[/B] So having your own website means you can break the rules on somebody else's …

Member Avatar for Ezzaral
-5
191
Member Avatar for Aia

Dave is one of the few people online I consider a good friend. Daniweb will be far less fun now.

Member Avatar for sureronald
9
625
Member Avatar for raniajay

>I will be thankful if u help me solving it.. What kind of "help" were you expecting? It looks to me like you want us to solve the problems for you and then give you the completed programs with no effort on your part, which isn't going to happen. Ever.

Member Avatar for arashyjrt
0
137
Member Avatar for Maria5683

First, do you really need set methods? Most of the time you can use constructor arguments to set the fields and set methods aren't required: [code] Scanner in = new Scanner ( System.in ).useDelimiter ( ' ' ); System.out.print ( "Full name (ex. John Smith): " ); String first = …

Member Avatar for NormR1
0
186
Member Avatar for The Founder

[B]>Unfortunately I can't find where I can delete my account?[/B] You can't delete your account. Just don't visit the site anymore. It's really that easy. :icon_rolleyes:

Member Avatar for VernonDozier
-5
171
Member Avatar for NubKnacker

>I've been trying to get it to work but it just won't. That's because you're trying to get a dinosaur to drive a ferarri. Turbo C 2.0 is a DOS compiler, and I don't mean the Windows command prompt, I mean [b]real[/b] DOS. It's ancient, and nobody is surprised that …

Member Avatar for jemy
0
342
Member Avatar for Don_k

[QUOTE][CODE]if ((letter >= 'A' && letter <= 'Z' ) || (letter >='a' && letter <= 'z')) { printf(" %c is a CONSONANT\n", letter); }[/CODE][/QUOTE] If it's a letter at all, you always say it's a consonant. If you separate error checking from processing, you can eliminate that problem: [code] if …

Member Avatar for eilans_10
0
158
Member Avatar for natd

>I think it is something to do with srand( time(NULL); Nope, your logic is just wrong if you want game to end at exactly 1001. Notice how you don't check that condition every time game is incremented. You only check the condition after the inner loop has terminated. game could …

Member Avatar for smurf6189
0
112
Member Avatar for ChPravin

Start by thinking of the ways the linked list (because this [i]is[/i] a linked list) could trip you up and thwart it. For example, what if there's a cycle where the pointer points back to a previous node? Come up with a dumb brute force solution first, just to understand …

Member Avatar for TrustyTony
0
1K
Member Avatar for clhamon

[B]>I just want what is owed to me. Do I have a chance?[/B] If you didn't get the terms of your employment in writing, you don't have a chance. Your best option is to quit a bad job gracefully and move on. Burn bridges or not at your discretion. Two …

Member Avatar for newtown
0
152
Member Avatar for cwarn23

[B]>IMO, clones are like animals since their not a creation of god or evolution[/B] Is this the underlying issue? Personally, I don't see a problem with treating clones the same as naturally born creatures of the same species. The end result is the same, so who cares what the process …

Member Avatar for GrimJack
1
453
Member Avatar for freesoft_2000

Know-it-all douchebags don't usually have a special place in my memory unless they were especially fun to smack down, but yes, I do vaguely remember you. ;)

Member Avatar for vegaseat
-1
133
Member Avatar for nehasfun

>Unfortunately, I don't remember much While interesting (well, not really), your post has no meaningful content relevant to this thread. If you're incapable of helping, there's no point in posting to inform everyone of it.

Member Avatar for mahul000
0
183
Member Avatar for JTroopSoldier

>I would like to kind of get is jist of how much they make. It's a well known statistical fact that CS majors (like all other college students) make minimum wage, at best. Once they get into the field they make anywhere from less than $20,000 to over $100,000. The …

Member Avatar for smokewire
0
220
Member Avatar for zebra59

[INLINECODE]p->link = q;[/INLINECODE], perhaps? It's hard to say with your little uninformative guessing game.

Member Avatar for dohpaz42
0
111
Member Avatar for playagain

>// function definition -- requires process.h The only header needed for that function is <cstdlib>.

Member Avatar for karrl
0
317
Member Avatar for sarah123
Member Avatar for KultChyld

>I was wondering if you can check my answers for the first one and help me get a start with the second one The first one looks fine. Your problems with the second one makes me wonder. >It's more complicated than what I am used to. So basically anything that …

Member Avatar for rahul8590
0
126
Member Avatar for justbboying

You realize that the only thing in common with Java and Javascript is the word Java, right? What's wrong with just linking to a text file? At least that way you can fit more programs on a single page and the browser doesn't screw up the formatting by trying to …

Member Avatar for takachistar
0
412
Member Avatar for madoverclocker
Member Avatar for Narue

I noticed that the icode button was removed from the post editor. Why?

Member Avatar for TrustyTony
0
152
Member Avatar for Fasola

[code] char a[256]; // Static allocation char *p = new char[256]; // Dynamic allocation [/code] >and why is supposed to be so popular in use? You aren't restricted to a "one size fits all" strategy, and you can generally grab more memory from the dynamic pool than from the "stack".

Member Avatar for umair100
1
141
Member Avatar for dj_saxy

[code] int get_code(char c) { string alpha = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; return static_cast<int>(alpha.find(c)); } [/code]

Member Avatar for mrnutty
0
236
Member Avatar for karen_CSE

Just look at each character in the array in sequence. When you find sentence stopping punctuation, the first non-witespace character after it should be capitalized like so: [code] a[i] = toupper ( a[i] ); [/code] And don't forget to include <cctype>

Member Avatar for iamthwee
0
796
Member Avatar for Sukhbir

>above will give u 4,3,2 on windows VC++ It doesn't matter, the behavior is undefined. Your results can vary not only between compilers, but between different versions of a single compiler. And don't bump old threads. >printf(4) is NOT C++, quit using it. printf is standard C++, as are all …

Member Avatar for sanagopi
-1
235
Member Avatar for ivanCeras

>Whats the main difference between the two file types? There's a huge difference, not the least of which is complexity. A .com file is nothing more than raw binary that starts at the 256th byte in memory, or 100h. This format is very old (originating from CP/M days, IIRC), and …

Member Avatar for NotNull
0
2K
Member Avatar for The 1

Check out the tree tutorials [URL="http://www.eternallyconfuzzled.com/jsw_home.aspx"]here[/URL] for a simple ASCII art method I use to draw trees.

Member Avatar for The 1
0
337
Member Avatar for Narue

On the top level forum list [LIST] [*]Not being able to collapse categories constantly irritates me. [/LIST] In a forum [LIST] [*]Need a link back to the forum list [*]Mark forum read and page links are at the bottom of the page. These should be available at the top of …

Member Avatar for ~s.o.s~
2
856
Member Avatar for wraph

[QUOTE=Real-tiner]They used C, which explains why Windows crashes so often.[/QUOTE] That's an ignorant overgeneralization. You meant to say "The used C [b]poorly[/b], which explains why Windows crashes so often."

Member Avatar for jwenting
0
635

The End.