588 Posted Topics

Member Avatar for delle

[B]>>Don't use System("pause"), instead as LordNemrod suggested use cin.get(). [/B] Yes, [URL="http://www.gidnetwork.com/b-61.html"]never use System("pause")[/URL].

Member Avatar for Duki
0
210
Member Avatar for cnmsg007

>>[I]"N_showdata.N_enterData();" which says "error C2660: 'NomineeData::N_enterData' : function does not take 0 arguments"[/I] It means exactly what it says.

Member Avatar for manojwali
-1
79
Member Avatar for Duki

Can someone explain why this: [code=xml] <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:stretchColumns="1"> <TableRow android:id="@+id/upcoming1" android:clickable="true"> <<<< <TextView android:text="-------" android:gravity="left" android:padding="3dip" />[/code] Doesn't allow me to click the row? edit> Maybe the more important question. How can I fetch it using onClick or something similar? e.g., [code=java] TableRow tr …

0
64
Member Avatar for sinfultom

Hey Tom, you can do this two ways. The easiest way would be to use a vector instead of an array: [code=c++]vector<Node> Tom(5, Tom(width)); //5 Tom objects calling Tom(width)[/code] The other way, if you want to (a) specify the parameters for each object or (b) continue using arrays: [code=c++]Node Tom[5] …

Member Avatar for Duki
0
189
Member Avatar for udtohan_noriel

I would also suggest sticking with arrays for now, especially since you have a set index. Something like this might get you going: [code=c++] int num = 0; string ary[25] = {"One", "Two", "Three", ... , "Twenty-Five"}; cout << "Give me a number: " << flush ; cin >> num; …

Member Avatar for Duki
0
318
Member Avatar for Michael_Grumbac

[QUOTE][B]>If they want me to take a course, which will cover a bunch of stuff I already know, then that's what I'll do.[/B] Just don't let them make you pay for it. They're the ones who want you to take a course, despite hiring you for your programming prowess. If …

Member Avatar for Michael_Grumbac
0
254
Member Avatar for exekiel101

I practically [URL="http://www.daniweb.com/forums/post1321810.html#post1321810"]gave you the answer[/URL] to this problem already (without the use of pointers and dynamic memory). Does your assignment require that you use pointers?

Member Avatar for Duki
0
77
Member Avatar for fizzix66

Ok, so: #1 - What you're experiencing is due to something called early (static) binding. At run time, your compiled code has no clue about basePtr pointing to derivedObject. This is one reason you use virtual functions. If you noticed, your last function call did actually call the derived function …

Member Avatar for Duki
0
144
Member Avatar for exekiel101

Your question doesn't make any sense! How are the values in the matrix generated? What are you trying to do?

Member Avatar for prvnkmr449
0
126
Member Avatar for exekiel101

Look [URL="http://www.cplusplus.com/doc/tutorial/arrays/"]here[/URL].

Member Avatar for VernonDozier
0
78
Member Avatar for totalwar235

@embooglement: Unless the o/p has an application that requires this type of encapsulation or abstraction - in which case, simply calling from main() won't work. @o/p: I wouldn't avoid this type of design for the sake of preserving your [URL="http://en.wikipedia.org/wiki/Stack-based_memory_allocation"]stack[/URL], assuming it's because you're trying to maintain OOD. You'll see …

Member Avatar for Duki
1
157
Member Avatar for exekiel101

Unless 6.0 is required, go [URL="http://www.microsoft.com/express/downloads/#2010-Visual-CPP"]here[/URL] and select Visual C++. That is the newest version of Visual Studio.

Member Avatar for Duki
0
103
Member Avatar for xiansen

You haven't corrected it. Take another look at firstPerson's post. You can implement your function just like you did the other three. [code=c++] bool checkGuess(int ans, int guess) { if ( ans != guess ) return false; else return true; }[/code]

Member Avatar for Duki
0
294
Member Avatar for MivanF

[URL="http://www.lmgtfy.com/?q=c%2B%2B+2010+free+download"]Google[/URL].

Member Avatar for Nick Evan
0
108
Member Avatar for Rajkamalwin

So the only thing you want is the last line of the file I assume... since your while() loop will not break until reaching the end of your file.

Member Avatar for Ancient Dragon
0
90
Member Avatar for Empireryan

You could save the values to a file each time. Then use a function to read those values, and determine the Count you want to display.

Member Avatar for Fbody
0
531
Member Avatar for tennis

Using the ++ operator on a pointer is different from a traditional variable. *ptr++ will increment the memory space which ptr is pointing to based on the variable type. For example, if you have [code=c++]int *ptr;[/code]and suppose it's pointing at memory location 1000. We know that an integer is 4 …

Member Avatar for Duki
0
93
Member Avatar for Arthas

Hey Arthas - have you tried logging on to the [URL="http://www.boost.org/community/irc.html"]Boost IRC channel[/URL]? They have quite a few people who are always logged on. That's where I found most of my help.

Member Avatar for Arthas
0
167
Member Avatar for kazkikay12
Member Avatar for newbie_to_cpp

Just use a break and loop like Fbody suggested. e.g., [code=c++] int answer = 1; while (answer >= 1 && <= 4) { switch (answer) { case 1: { cout << "what do you want to do?\n"; cin << answer; break; } case 2: { //do stuff cout << "what …

Member Avatar for newbie_to_cpp
0
125
Member Avatar for abysss
Member Avatar for Duki

Can someone remind me why I can't do this: [code=c++] int s = b.Activate(war.get_tp(), damage, 50); //prototype int Activate ( int &tp, int weaponDamage, int attack ); [/code] I get an error at war.get_tp(). It says cannot convert param 1 from int to int&. I need it to be a …

Member Avatar for Duki
0
181
Member Avatar for Bigbrain99

My favorite beginner C++ book has always been [B]C++ Programming: From Problem Analysis to Program Design[/B], by D.S. Malik.

Member Avatar for Duki
0
155
Member Avatar for ontherocks

You're not passing the whole array. The compiler (usually) passes by reference when dealing with arrays... whether or not you specify it that way.

Member Avatar for ontherocks
0
158
Member Avatar for Duki
Member Avatar for Duki

Hey guys, I'm getting this error: [quote]1>GoblinRecruit.obj : error LNK2019: unresolved external symbol "public: void __thiscall Mob::set_data(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,int,int,int,int,int,int,int,int)" (?set_data@Mob@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HHHHHHHHH@Z) referenced in function "public: __thiscall GoblinRecruit::GoblinRecruit(void)" (??0GoblinRecruit@@QAE@XZ) [/quote] When I try to run this section of code: [code=c++] #include "Standard Libs.h" #include "Ability.h" class Mob { private: string …

Member Avatar for Duki
0
99
Member Avatar for ymb6

Um... we don't do homework. We've been through school already. You have to at least attempt to answer these yourself before you can expect [B]any[/B] help from us.

Member Avatar for Fbody
-3
315
Member Avatar for prit05

C++ with Boost. Hop on the BOOST IRC chat channel - there are tons of people always logged on. They're usually willing to help if you have questions.

Member Avatar for Duki
0
179
Member Avatar for Duki

For whatever reason, I can't figure this out. I'm getting this error: [quote]error C2082: redefinition of formal parameter 'user' [/quote] In this code: [code=c++] #pragma once #include "Standard Libs.h" #include "Ability.h" #include "Spell.h" #include "Item.h" class Adventurer { private: string name; int level; int xp; int gold; int attack; int …

Member Avatar for Duki
0
101
Member Avatar for Duki

i just got a dell precision 390 and put a Geforce 7950GT in it for my gaming needs. sometimes after leaving the computer idle for like 12 hours i'll come back and my monitor will just show a sort of static but not quite as scrambled, with a lavender color …

Member Avatar for webdevctk
0
167
Member Avatar for +_+man

Have a look [URL="http://www.daniweb.com/forums/post1284058.html#post1284058"]here[/URL]. Also, maybe try [URL="http://tinyurl.com/26w98qv"]this[/URL]. Hope it helps

Member Avatar for ylin333
0
946
Member Avatar for NH1
Member Avatar for ious
0
383
Member Avatar for csnorman

VLSM can be very challenging for new networkers. What you're doing is essentially subnetting subnets. So for your example, if I understand it correctly, you have the following: HQ - 13 computers OUs - 39 computers/ea. So to start, you want to being with the subnet that will require the …

Member Avatar for csnorman
0
168
Member Avatar for judithSampathwa
Member Avatar for 060609

[URL="http://www.homeworkhelp4u.com/cpp_programming_homework_help.html?gclid=CO_Nq4jqi6MCFRBx5QodJho9eA"]I think this is what you're looking for[/URL].

Member Avatar for Duki
-3
207
Member Avatar for Duki
Member Avatar for Luther von Wulf

To add to this, I will often not capitalize anything else in my program other than classes. And two word classes are multiple capitals (e.g., DogHouse, BankAccount, etc.) [code=c++] int dogHouse // variable ... class DogHouse // class ... dog_house() // function ... [/code] I have a tendency to not …

Member Avatar for mike_2000_17
0
184
Member Avatar for Duki

Hey everyone, I'm starting a new job on Monday, and I asked if there were any topics I should re-familiarize myself with. Along with the typical data structures, they also mentioned STL. I'm not sure that we ever used STL during my college work (like most classes I assume, we …

Member Avatar for Duki
0
74
Member Avatar for jamshed ahmed

Alternatively, you can use the express version of [URL="http://www.flexerasoftware.com/products/installshield/editions.htm"]InstallShield [/URL]- makes for very professional looking apps and I'm pretty sure it's free.

Member Avatar for nick.crane
0
98
Member Avatar for Duki
Member Avatar for Lusiphur
0
193
Member Avatar for Duki

Hey everyone, I try to contribute as much as I can on here, but I also asked a lot of questions. It would be really cool to have the option to auto subscribe to threads started by me, without having to auto subscribe to threads I reply to also. Just …

Member Avatar for Lusiphur
0
76
Member Avatar for Hand

Not sure of your requirements as far as compilers go, but have you tried looking into [URL="http://www.microsoft.com/express/Downloads/#2010-Visual-CS"]C#[/URL]? *prepares flame shield* From my experience, unless I'm writing financial software or guiding missiles down chimneys, I prefer C# for anything GUI based. However, you may have a restriction against this for some …

Member Avatar for Ancient Dragon
0
214
Member Avatar for potato4610

Maybe try something along the lines of [code=c++] if (num % 10 == 0) cout << "0" ; //reverse number code [/code]

Member Avatar for Duki
0
591
Member Avatar for vasudevanjanani

[URL="https://learningnetwork.cisco.com/index.jspa?ciscoHome=true"]Brushing up for the test. [/URL] As far as universities - you'll have to decide that.

Member Avatar for Duki
0
26
Member Avatar for bigaditya

Just skimming through posts here - really think someone should write a code snippet with all of this in it. Very good material and explanations here!

Member Avatar for Lusiphur
0
843
Member Avatar for judithSampathwa

If you're referring to a prompt (like a show dialog), there are no built in functions for that (to my knowledge). You'll need to add a new form to your program, and display that form as the "input prompt" and then either pass the values back to your main form, …

Member Avatar for Duki
0
285
Member Avatar for VBNick

I'm sorry, I don't have an answer to your question... I did literally "lol" at this though... :D [quote]"http://127.0.0.1/gimmemore.mp3"[/quote] Good luck!

Member Avatar for VBNick
0
177
Member Avatar for judithSampathwa

I'm sure there are better ways to do this, but here's a short tutorial I wrote a couple of weeks ago on [URL="http://www.daniweb.com/code/snippet290540.html"]databases[/URL]. Hope this helps

Member Avatar for Duki
0
130
Member Avatar for litlemaster

Here's an excerpt from one of my programs - maybe this will help also. [CODE=c#]log.LogMessageToFile("---> Laptop checkout started <---"); DataGridViewRow row = dataGridView_Laptops_Available.SelectedRows[0]; //get selected row int laptop_id = Convert.ToInt32(row.Cells[0].Value); //use primary key to determine item log.LogMessageToFile("Laptop ID set to " + laptop_id.ToString()); Form_CheckOut form_CheckOut = new Form_CheckOut(); form_CheckOut.Owner = …

Member Avatar for Duki
0
130
Member Avatar for Takudzwa Tizora

I would assume [B]RANDOM FILES[/B] is probably in the glossary of your textbook. You can probably find the associated page number in the [B]INDEX[/B]. Hope this helps.

Member Avatar for mrnutty
0
105

The End.