288 Discussion / Question Topics
Remove Filter Well I just started eating dinner and thought this would be a neat topic. Everyone knows we love to eat while on the computer; two birds, one chair. I'll start it off: Deli Sandwiches, macaroni salad, potato salad and a Pepsi :) | |
Hey guys, here's the question I'm asked. **a.** *Define an enumeration type, triangleType, that has the values **scalene, isosceles, euilateral, and noTriangle**.* **b.** *Write a function, triangleShape, that takes as parameters three numbers, each of which represents the length of a side of the triangle. The function should return the … | |
Hey Everyone, I'm doing a little test for a presentation I'm giving on Tuesday. I wanted to show the performance difference between VB2008, C# and C++. To do this, I have three programs. Each program performs the Fibonacci sequence X times, and can either do it iteratively or recursively. As … | |
Hey everyone, I have this problem. I need to access data that the user inputs via the <input /> statement during the controller method. Here's my code, maybe this will make it more clear: // client side @using (Html.BeginForm()) { if (competitorList.Count > 0 && eventList.Count > 0) { foreach … | |
Hey guys, I'm trying to understand how radix sort works in C++ : I've looked over the C++ implementation from wikipedia: void radixsort(int *a, int n) { int i, b[MAX], m = a[0], exp = 1; for (i = 0; i < n; i++) { if (a[i] > m) m … | |
I'm trying to find an event that handles which tab is clicked? I know it has to be simple, I'm just missing it. I want to say "when tab1 is clicked, do this, when tab2 is clicked, do that" | |
Hey everyone, I'm trying to code a webform to allow people to input data on several objects in a database. I'd like to have them be able to click an update button for each item they want to update, popup a box for the value, and pass that value to … | |
hey everyone - I'm trying to figure out how to call the appropriate httpPost methods for a particular jtable instance? I thought it was specified by the actions in the javascript, but I can't figure it out. Can anyone give me a hand? Here's my script and the httpPost method … | |
Hey everyone, I'm having some problems with my code and was hoping someone could give me a hand. Here's the snippet I'm working with: [Authorize] public ActionResult EventResults(int id) { List<Event> CompetitionEvents = Event.getEventsByCompetitionId(id); ViewBag.CompetitionEvents = CompetitionEvents; List<Person> Competitors = Competition.getCompetitorsByCompetitionID(id); ViewBag.Competitors = Competitors; List<Results> Results = Competition.getCompetitorResultsPairings(CompetitionEvents, Competitors); ViewBag.Results … | |
Hey everyone, I'm pretty new to web design in general, so I'm not really sure how to get started with this. I have a wordpress site that I would like to be able to manage user profiles on. The built in account management stuff works great for regular logon/off sessions, … | |
Hey everyone, Trying to configure an apache web server on my home network and had a question about port forwarding. I have my router set to forward everything on port 80 to the webserver, but I wanted to see if there were any ramifications of this that I may not … | |
I have DHCP installed on our server, and while checking the leases I noticed a few BAD_ADDRESS entries. I delete them but they return within a few seconds. Anyone know the cause of this and how to prevent it? Thanks! | |
Hey everyone, Anyone know if Solaris, by default, throws an out of memory exception when 'new' is called but the system has run out of memory? I know Windows systems has this turned on by default, and AIX doesn't. But I can't find anything related to Solaris. | |
When I debug this method, I can clearly see that currentNode = Workstation, so I am puzzled as to why I'm still entering into the "Node" buffer print, rather than the "Workstation" buffer print. Shouldn't polymorphism handle this for me?: part of Node Class [code=java] public void printToBufferAsHTML(Network network, StringBuffer … | |
Hey everyone, I've searched around Google a bit but most places suggest just using "\n" over and over. This gets messy though, for the code and the interface. Is there a built in method for Java that can clear the console? | |
Hey everyone, I've never used eclipse or java, and I have an assignment that is expected to use the XML encoding/decoding functionality. I've searched google a bit, but can't really find a good example. Does anyone have a link to some snippets or something that I could go by? | |
Can someone explain why, when I input 'mytag' it does find it? When I debug, it shows the text matches, but the IDs are different. Not sure why that would matter? [code=java] public void RemoveTag() throws IOException, NoSuchTagException{ System.out.printf("Tag to delete: "); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String tempTagText … | |
Is there a way in java to do something similar to this: [code=c++] class Rectangle { public: int x; string y; private: int a; string b; }[/code] Or do you always have to specify public/private for each property? | |
Ok, Just thought this would be neat... here are the rules... very simple. [B]* Numbers must follow logical order * You can not post two consecutive posts * Have fun! :mrgreen:[/B] I'll start: [B]1[/B] | |
Hey everyone, It's been a while, but I'm back. Going to start chipping in as much as I can in C++ and anything Windows Server/Networking related. I'm starting grad school in a couple weeks, so I'm sure I'll be needing some help of my own soon. :) Good to be … | |
Is there a way I can setup my profile to automatically subscribe me to new threads I create? Currently I see there's an option to auto-subscribe on new threads [b]and[/b] threads I reply to ... but I really only want to auto-subscribe to my new threads. | |
Hey everyone, We need to monitor who changes what files/folders and when they do that. Is there software that we can get to do this? | |
I need to generate a core file for a crashing process and then read it using dbx - can anyone help me with this? | |
Hey everyone, Not sure if this has been tried yet, but this is a game I play with my mom and brother over email... Very simple, just scramble up a word, and the first person to guess the word gets to go next. note that it won't go as fast … | |
Hey everyone, We're trying to figure out if it's possible to use winsock on an AIX system? If not, is there any native support in C++ for unix based machines and e-mail support, without importing 3rd party libraries? | |
Hey Everyone, I've applied for grad school this coming Fall and would like to get your opinions on it. I'm currently working full-time at a software engineering company, and will be taking one to two classes per semester. Has anyone gone through a similar experience while working in the field? … | |
| |
Hey everyone, I'm trying to do something like this: [code=c++]typedef void * socktag int gensock_connect (char * hostname, char * service, socktag * pst) { int retval; connection * conn = new connection; if ((retval = conn->get_connected (hostname, service))) { gensock_close(0); *pst = 0; return (0); } *pst = conn; … | |
Anyone with dbx experience know how I can watch a variable? | |
What happens if I have a method declaration of: [code=c++]int method( char * a, char * b, int * c );[/code] and then I pass in: [code=c++] char a; char b; int c; method(a, b, &c); [/code] This has me a little puzzled. What values will be passed by reference? | |
Is it possible to somehow use the winsock API on a unix machine? | |
Does anyone know what this is? It's in a piece of code I'm trying to debug, and I've never seen it: [code=c++] typedef void FAR * socktag; [/code] Also, could someone explain the difference between these two lines (after the typedef executes): [code=c++] socktag SMTPSock; int SMTPSock; [/code] | |
Can someone [B]please[/B] provide some insight on this: [code=c++] int get_smtp_line( void ) { char ch = '.'; char in_data [255]; char * index; int retval = 0; index = in_data; while (ch != '\n') { if ( (retval = gensock_getchar (SMTPSock, 0, &ch) ) ) { gensock_error ("gensock_getchar", retval); … | |
I'm not positive this is the right place to post this. We're starting analysis for converting to UTF-8 on our application. During testing, all of our test data is displayed incorrectly in visual studio - our two-bye UTF-8 characters are being displayed as two one-byte ASCII characters. Is there a … | |
Would it be possible to have negative reputation left by someone who has been banned or is still under "newbie" status or that may be a personal attack hidden? I sometimes post questions asking for help related to an issue at work - I hand out the threads to fellow … | |
Hey everyone, My computer (nvidia fx480) is experiencing some pixelation. At random times (haven't noticed a pattern) my monitor (HP 2509m) will show green pixels in darker areas on the screen. Usually refreshing the background image or something similar with correct this, but I'd really like to get it fixed. … | |
Hey all, I'm trying to write a batch file to parse a text file I have. Here's the pseudo code I'm trying to pull off: Example makefile.txt: [quote] text text text text text text text text text text text text text text text text text text text text text T1 … | |
Hey everyone, I'm trying to get started with SQLite. My app keeps force closing on this activity: [code=java]public class ViewActivity extends Activity { private TextView company; private BillMeDB dh; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.all); company = (TextView) findViewById(R.id.Company1); BillMeDB db = new BillMeDB(this); db.open(); long id; id = … | |
When I see a thread in C++, and the last poster is "Ancient Dragon" or "Narue", I just don't bother even opening the thread. It would be like Han Solo explaining The Force to someone who just got off the phone with Yoda... amirite? | |
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 … | |
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 … | |
Hey guys, I can't install gpmc because it says some .NET framework is required.... | |
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 … | |
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 … | |
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 … | |
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 … | |
Is there a way to automatically be subscribed to threads I start? | |
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 … | |
Thought this would get a lot of response... Is DaniWeb comprised of more men or women? |
The End.