6,741 Posted Topics

Member Avatar for purple rainx

[quote] Okay, from the beginning, before anyone attempts to turn this in to a "controversial thread" ha! I wish to clarify that this is not about gender dominance or alienating men. This is what it is, a simple question, cute and funny. [/quote] Let me say right now that you've …

Member Avatar for Serunson
0
244
Member Avatar for sk8ndestroy14

[quote] Your true political self: You are a Social Liberal (66% permissive) and an... Economic Moderate (43% permissive) You are best described as a: Centrist (43e/66s) You exhibit a very well-developed sense of Right and Wrong and believe in economic fairness. lo [/quote] I was laughing at all of the …

Member Avatar for TheGathering
0
1K
Member Avatar for zandiago

>int range [10, 100]; That's not how you create a multidimensional array. At least, I assume you're trying to create a multidimensional array, which is like this: [code] int range[10][100]; [/code]

Member Avatar for Lerner
0
417
Member Avatar for sk8ndestroy14

If you want to talk about anything and everything, that's called chatting. Daniweb has a chat room that's incredibly boring 99% of the time. Why not take random ramblings there so we can get some more action?

Member Avatar for ndeniche
2
2K
Member Avatar for soccernut43
Member Avatar for Firestone

>If I were to make a career out of computer programming, >which would be better to learn, Java or C/C++? If you don't know C, I wouldn't hire you. Period. If you don't know Java or C++, whether I would hire you or not depends on the job. However, I …

Member Avatar for Rashakil Fol
0
375
Member Avatar for ejptccs123

It depends on the compiler; you'll usually see things like -D<symbol> or \D<symbol>. Look it up in your documentation.

Member Avatar for thekashyap
0
171
Member Avatar for qasauria

It's just like any other language and environment. You know Java, design the software, and build it using Java. You're going to have to be a lot more specific when asking a question.

Member Avatar for ioillusion
0
175
Member Avatar for christina>you

>It makes me wonder how safe rides really are. Very safe. It's certainly unfortunate, but the occasional accident shouldn't scare you away. The design, construction, and maintenance of these rides are done with a careful eye toward rider safety. From the story, it sounds like defective material somewhere along the …

Member Avatar for maravich12
0
500
Member Avatar for Narue

Let's pretend that I'm interviewing you for a C++ job. I want to know how you[1] approach problems and the extent of your C++ prowess, so I'm going to ask you to solve short problems in C++[2]. These problems range from beginner to advanced, and may be more than they …

Member Avatar for Bench
0
498
Member Avatar for wonder87

>Yes that's right, effect of fflush is undefined for stdin and it of course must not be used. Then why did you tell the OP to use it? >But if they already do things insecurely, then they must use other uncertain things to compensate it There are better ways to …

Member Avatar for Aia
0
124
Member Avatar for Akilah712

If you can sort one column you can sort two. It's just a matter of using the second column to drive your sort, and making sure that when you copy a row, you copy both columns.

Member Avatar for iamthwee
0
184
Member Avatar for hitesh_mathpal
Member Avatar for ankitrastogi82

>Is having static virtual functions possible in C++ ? No. >I know the reasoning above looks stupid but can you provide some solid grounds to it ? No, actually your reasoning is precisely what I would use to describe the restriction. The real answer is a little more involved though. …

Member Avatar for Narue
0
1K
Member Avatar for tiyagu_vpm
Re: tech

>y c++ is not fully oops Because the creator didn't want to restrict C++ users like that.

Member Avatar for jwenting
0
90
Member Avatar for The Dude

Aww, when I read the title I thought maybe you were actually going to post something you created instead of a link. Disappointment.

Member Avatar for The Dude
0
49
Member Avatar for Killer_Typo

>size_t size = strlen(reverse); For starters, you need to include <cstring> to use the C-style string functions. >char * getwords = new char(); This is the cause of your undefined behavior. You allocated one character. Only one. That means you can only store one character, ever. But look here: >cin.getline(getwords,100); …

Member Avatar for Killer_Typo
0
261
Member Avatar for JRM

>Is this one of those "gray areas" in c++ ? No, this is one of those undefined areas in C++. You did something wrong, and whether it works (for now) or breaks spectacularly is up to random chance. >I your opinion, what would be the correct way to stuff the …

Member Avatar for Narue
0
144
Member Avatar for Anoop Dogra

>The question isn't to reverse the words in a string. Yes, it is. "Print each word of a given string in reverse". There's just no requirement that the reversal be permanent, which gives one quite a few options in solving the problem. Tokenizing the string is one of them. In …

Member Avatar for Narue
0
140
Member Avatar for PoovenM

>So obviously I need to allow my program to indentify English words. Obviously? Indeed, how would you enforce camel case in this identifier: [code] KfxReturnValue kfxRetVal; [/code] Identifiers are pretty close to free form in Java, so you're in for a rough ride with this program if you want it …

Member Avatar for PoovenM
0
152
Member Avatar for ankitrastogi82

>1. Ref [1] in above code, what does private virtual means in terms of >copies of base class ? What Fred holds ? What FredSon holds ? Private inheritance is a variation of composition. This: [code] class Fred : private virtual DummyFredBase {}; [/code] Is essentially the same thing as …

Member Avatar for Bench
0
117
Member Avatar for b4babu

Just because the array is a member of a structure doesn't mean you can suddenly assign to it. Array assignment isn't allowed in C, but you [b]can[/b] do a structure initialization to the same effect: [code] test newTest = {1,2,3,4,5}; [/code]

Member Avatar for Narue
0
108
Member Avatar for gattispilot
Member Avatar for aasi007onfire

>what i wanted to know was that is this kind of access >possible in programs which do not involve file handling Read Salem's post again. It's possible, but implementation dependent. You haven't told us your OS or compiler, yet you still expect a complete answer. :icon_rolleyes:

Member Avatar for bvgsrs
0
95
Member Avatar for egboy

>I hope any one help me find a tutorial for programing microcontroller with C or C++ Too vague. Be more specific so that we can help you. >i need this really. I'm sure you do need it, otherwise you wouldn't have asked. >It is best written in assembly code. I'm …

Member Avatar for egboy
0
316
Member Avatar for minigweek

>char *(*c[10])(int **p); >Ok, what does the above mean ? The variable c is an array of ten pointers to functions that take a pointer to a pointer to int as a parameter and return a pointer to char. To read a declaration like this you read it from the …

Member Avatar for minigweek
1
119
Member Avatar for tralfas
Member Avatar for krnekhelesh
1
180
Member Avatar for DeathEvil

[code] /* main.c */ extern void foo ( void ); int main ( void ) { foo(); return 0; } [/code] [code] /* print.c */ #include <stdio.h> void foo ( void ) { puts ( "foo!" ); } [/code] That's all it takes. In fact, you don't even need the …

Member Avatar for iamthwee
0
268
Member Avatar for Firestone

ranjani, I'm going to ask you nicely just once to use code tags when you post code. Code tags put your code in a nice block and retain any formatting you had. Not using them makes your code an awful mess that nobody wants to read.

Member Avatar for Firestone
0
154
Member Avatar for danysabin

[url=http://www.eternallyconfuzzled.com/arts/jsw_art_rand.aspx]Read this and be enlightened.[/url]

Member Avatar for danysabin
0
508
Member Avatar for Sukhbir

>Can someone expain why ompiler provide default Copy Constructor for every class. It's largely for convenience. If your members have the right copying semantics, you don't have to write out an explicit copy constructor and worry about making a mistake. You can also rely on any optimizations by the compiler …

Member Avatar for Narue
0
92
Member Avatar for Sukhbir

>using increment operation is far more effective than >that of using assignment and addition operation.. You're probably confusing yourself with the general guideline of using prefix increment when it's an overloaded operator in C++. In that case, the prefix increment [b]may[/b] be more efficient due to the creation of fewer …

Member Avatar for Narue
0
129
Member Avatar for pixrix
Member Avatar for praneeth_gunda
Re: Crc

>The substr method is workin' No, it's not. substr returns a local array. When the function returns, the array gets destroyed, and the return value becomes garbage. This is a very basic problem that you should be aware of. >pls give me the Corrected Code Completely We're not here to …

Member Avatar for Aia
0
273
Member Avatar for vij_alok

>can anybody tell me why this happened....... scanf doesn't work like other input functions. In particular, it treats whitespace differently. The %s modifier will read any number of characters up to whitespace, and a newline is whitespace. gets on the other hand, will read any number of characters up to …

Member Avatar for Aia
0
95
Member Avatar for indraprabha_m

Here's my contribution: [code] int main() { return 0; } [/code] The rest is up to you until you learn how to ask a [url=http://www.catb.org/~esr/faqs/smart-questions.html]smart question[/url].

Member Avatar for Narue
-1
56
Member Avatar for intangir1999

>"error C2059: syntax error '>' " <> doesn't mean "not equal to". You want the != operator. >"...could not deduce template argument for 'const _Elem *' from 'char'" String literals use double quotes and character literals use single quotes. Try [INLINECODE]s != "q"[/INLINECODE]. Of course, I would be a little …

Member Avatar for intangir1999
0
124
Member Avatar for hinduengg

>I wanted to know what are actually random nos. [url]http://www.eternallyconfuzzled.com/tuts/algorithms/jsw_tut_rand.aspx[/url] [url]http://www.eternallyconfuzzled.com/arts/jsw_art_rand.aspx[/url] And for your insertion sort question: [url]http://www.eternallyconfuzzled.com/tuts/algorithms/jsw_tut_sorting.aspx#insert[/url]

Member Avatar for hinduengg
0
200
Member Avatar for The Dude

Either you have an extremely addictive personality, or you're easily amused.

Member Avatar for ndeniche
0
72
Member Avatar for The Dude

I didn't watch the video, just like I don't follow any of the umpteen silly links you post as some kind of replacement for independent thought. Keep that in mind. >Otherwise things like astrology readings and such couldnt be done as >accurate as they seem to be most times..... Astrology …

Member Avatar for hbk619
0
83
Member Avatar for nagramana

>I am trying to call a C# function which returns byte array from C++. Expose the C# code as a COM DLL and access it using C++. Alternatively, use managed C++ and import the C# assembly as a reference. Google can give you specifics.

Member Avatar for Narue
0
403
Member Avatar for sk8ndestroy14

>I've been playing for a little bit now, but one of my weaknesses is opening moves. Are you developing your power pieces? A lot of people just fiddle with the pawns in their opening moves when you can get more impact with each move by using stronger pieces.

Member Avatar for maravich12
0
542
Member Avatar for sepaITDev

>Sorry, I really didn't want to argue in this forum Translation: You expected us to immediately agree with you and join your cause without question. >all I wanted a little support. Posting on a technology forum isn't exactly the best way to do this. If we're your only means of …

Member Avatar for UrbanKhoja
0
272
Member Avatar for smithag261

>ASL Means Age,Sex,Location n give me ur Yahoo Mail id(if u have) This is something you should ask for privately. >Any way Y do U bother about the Code in Syntax Bother in its Logic So you enjoy being a weak programmer who writes bad code?

Member Avatar for WaltP
0
481
Member Avatar for zandiago

Your conditionals are a little wacky. In particular this one: [code] if (num < randNum) cout <<uname<<""<<"Your number was too low-please try again!"<< endl; { wins = wins ++; break; } [/code] I'm reasonably sure you don't realize what it's actually doing, which is always incrementing wins and breaking. A …

Member Avatar for zandiago
0
102
Member Avatar for Prozeen

>But what exactly does the hash (or pound) sign do? It says "this is a preprocessor directive". All preprocessor directives start with that character. >And, in the quote above, what is "our program?" "Our program" in this case is the translation unit, which is (put simply) the source code after …

Member Avatar for Prozeen
0
124
Member Avatar for aaisha

>Hey aaisha, >You Can Try this *sigh* 1) Your code is awful. Please get a newer compiler and learn C properly before trying to help people. You'll end up giving them bad habits. 2) Don't do other people's work for them. Please understand that the OP can now steal your …

Member Avatar for Narue
0
118
Member Avatar for bvgsrs

A two dimensional array isn't convertible to int*. Change Display and GetValues to take [INLINECODE]int a[MAX][MAX][/INLINECODE] as the parameter.

Member Avatar for Salem
0
113
Member Avatar for The Dude

I'm shocked The Dude. I think this is your first post that isn't just regurgitating other people's efforts with a link. It's a cut and paste job, but that's a step in the right direction. Maybe one day you'll have a thought of your own. >A - Always trust them …

Member Avatar for joshSCH
2
1K
Member Avatar for quintoncoert

>Can one actually use the MFC in C++? I can't imagine how you've been studying MFC without realizing that it's a C++ library. >Is it possible to bypass the common language runtime and still end up >with a graphical user interface? I sure hope so, otherwise all of the programs …

Member Avatar for Narue
0
197

The End.