679 Posted Topics
Re: What does "multiple polymorphism" mean to you? | |
Re: [QUOTE=TotoTitus;1399145]When switching from 'wireframe' to 'solid', what would be a basic algorithm to render surfaces of an object? In a cube, for example, what surfaces are visible, and what surfaces are not?[/QUOTE] You're talking about [URL="http://en.wikipedia.org/wiki/Back-face_culling"]back-face culling[/URL]. One way to do this: Don't draw surfaces that have a normal vector … | |
Re: You also might look at [URL="http://msdn.microsoft.com/en-us/library/d4tt83f9.aspx"]String.Trim(char[])[/URL] | |
Re: [QUOTE=Nathaniel10;1362932]What is Stroupstrup trying to get at with this exercise?[/QUOTE] The point is that you have to be careful. If you keep allocating and never free anything, you will run out of memory. [QUOTE=Nathaniel10;1362932]What will happen if I run a program with an infinite loop? I am very reluctant to … | |
Re: [QUOTE=speedy94519;1354444]I was given a set of binary number to assemble it into gray code sequence: 111 000 110 011 001 100. Is their a specific way I have to do this? From What I read in the internet I think the following solution would be this: Gray Code 000 001 … | |
Re: The same idea works for UDP too. Every IP packet [URL="http://en.wikipedia.org/wiki/IPv4#Packet_structure"]indicates the source IP address[/URL], so you still know where it came from. The client sends a datagram to the server, the server stores the client's IP address somewhere, and from then on the server can send whatever datagrams it … | |
Re: Maybe Nintendo DS homebrew? [URL="http://sourceforge.net/projects/devkitpro/"]http://sourceforge.net/projects/devkitpro/[/URL] | |
Re: [QUOTE=fernandofranca;1338920]Can I get the control of an object just knowing its name?[/QUOTE] If you're asking what I think you're asking, no. Why: Setting the value of [ICODE]a.Name[/ICODE] doesn't have anything to do with what type of control it is. [ICODE]a as ComboBox[/ICODE] will always return [ICODE]null[/ICODE] because here, [ICODE]a[/ICODE] is … | |
Re: [QUOTE=k-chi;1330531]Need Help to fix this code because I can not find the errors so they can read successfully.[/QUOTE] Can you be more specific? What isn't this code doing right? Does it compile, does it run, does is produce any useful output? Also, please use CODE tags. It will prevent the … | |
Re: "How to connect" is going to depend on what kind of database you are using. Is there a specific database you must connect to, or are you able to choose your own? | |
Re: Here's a hint: Compare the [I]binary[/I] representations of the ASCII codes for A-Z and a-z. Do you see a pattern? | |
Re: Oh my. That's one ridiculous infomercial website. [QUOTE=PythonNewbie2;1304461]What do you think it was coded in?[/QUOTE] If you take the time to read the page, it's right there in the middle of his sales pitch: "...all the software I develop is created using Adobe Flash." [QUOTE=PythonNewbie2;1304461]And how long do you think … | |
Re: What is the specific query you were trying to run? Access isn't able to handle some kinds of deletes that other database systems can. | |
![]() | Re: [QUOTE=Smithy566;1302039][CODE] String hexString = "0x5C"; Byte myNewByte; myNewByte = Byte.Parse(hexString); [/CODE] [B]Error: "The input string was not in a correct format"[/B][/QUOTE] [URL="http://msdn.microsoft.com/en-us/library/k0s9b1y3.aspx"]Byte.Parse() with just a string parameter[/URL] doesn't know that "0x" means hexadecimal. What you need is [URL="http://msdn.microsoft.com/en-us/library/4eszwye3.aspx"]the overload of Byte.Parse()[/URL] that lets you tell it to look for hex. … ![]() |
Re: [QUOTE=FrancoisvdHeide;1300028]The only method that I can think of to improve my licensing to make it more secure, is to encrypt the license file contents with a key that I hold secret on my side. Then I want to have a different key hard coded in the system which will be … | |
Re: [QUOTE=iamcreasy;1300218]But "make" command in unknown in my command prompt.I have MinGW installed which comes with codeblocks.[/QUOTE] My Code::Blocks distribution came with "mingw32-make.exe"; check your C::B installation folder to see what came with it, [I]e.g.[/I], [ICODE]C:\Program Files\CodeBlocks\MinGW\bin[/ICODE]. | |
Re: SP is just a pointer to somewhere in memory; nothing enforces stack discipline. If there's more code in the example than the one line you provided here, the rest of it might prove enlightening. Could you post anything else that came with the MOV instruction? | |
Re: [QUOTE=PythonNewbie2;1298944]I've read lots of definitions of it, but I don't quite understand it.[/QUOTE] I'm assuming you're talking about this one: [CODE]Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including … | |
Re: [QUOTE=darknoobie;1097012]Im having trouble understanding offsets in computer science.[/QUOTE] Segment and offset registers are used to represent memory addresses that are larger than your register size. Two registers are combined to create an address that you couldn't represent using just one register. Various CPUs do this differently. If you're talking about … | |
Re: Strings in C# are reference types, as indicated by [URL="http://msdn.microsoft.com/en-us/library/490f96s2(v=VS.80).aspx"]the C# Reference on MSDN[/URL]. Maximum string length will depend on your machine's architecture and memory allocation situation, but the [URL="http://msdn.microsoft.com/en-us/library/system.string.length.aspx"]String.Length property[/URL] is a 32-bit integer, so there's an effective upper bound of [URL="http://msdn.microsoft.com/en-us/library/system.int32.maxvalue.aspx"]Int32.MaxValue[/URL]. Running (and developing) .NET applications on Linux … | |
Re: Yes, and yes. My $0.02: A real stock management application would most likely need a proper server-based database system. For a class project, however, may I suggest [URL="http://www.sqlite.org/"]SQLite[/URL]? It runs as part of your application, so there's no overhead of installing, configuring, and maintaining a server, but it's still a … | |
Re: [QUOTE=sadhawan;1292012]I am unzipping a folder into a new folder and then wants to read all the files from the folder .My code is as follows.I dont want to create a folder but i cnt figure out a way to read all the files froma compressed folder and now when i … | |
Re: [QUOTE=SoulMazer;1290381]This week, I've changed my development to a newer computer with a brand new graphics card. When I ran my game, everything was moving WAY too fast. I think I know what caused this. Since my current computer is so much faster, the game loop runs more quickly which in … | |
Re: [QUOTE=george61;1290900]Is there any other way of visualizing the play field without document.write?[/QUOTE] Just as an example, [URL="http://patorjk.com/games/snake/"]here's a JavaScript snake game[/URL] that doesn't use [ICODE]document.write[/ICODE]; it looks like it uses [URL="http://en.wikipedia.org/wiki/Yahoo!_UI_Library"]YUI[/URL]. You could probably use JavaScript to update the DOM directly; different playing field states (empty, snake, food) could just … | |
Re: If you want help, please post a specific question. What about this code is troubling you? | |
Re: [QUOTE=CodeAerial;1287614]Umm, does the trick work at basic C? I'm not sure since we've only been taught of Basic C at the moment. so far, with loops. Oh, and at <stdio.h>.[/QUOTE] You can do this in C. Don't focus too much on the technology; the question is about a mathematical algorithm, … | |
Re: Looks like you're not generating the update command. It isn't actually created until you call [URL="http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommandbuilder.getupdatecommand.aspx"]SqlCommandBuilder.GetUpdateCommand()[/URL]. You'll need something like this: [CODE=C#]MovAdapt.UpdateCommand = cb.GetUpdateCommand[/CODE] [URL="http://davidhayden.com/blog/dave/archive/2006/01/21/2742.aspx"]This article[/URL] has a good explanation of how it works. | |
Re: [QUOTE=XxPKMNxX;1278112]the clock starts when the program is run and after 8 secs, FIVE moves position. When i press F, i want FIVE to reset its position [which it does], and to reset the clock(), so that after 8 secs, FIVE will move again. Anyway to do this? Using Windows 7, … | |
Re: [QUOTE=johndoe444;1278317]I am working with g++. I always remove warning before running it. I don't know what happened. Thanks anyways.[/QUOTE] Turn on warnings; [URL="http://www.cprogramming.com/tutorial/compiler_warnings.html"]they are useful[/URL]. If you actually bother to read and understand compiler warnings, it will help you understand what you're doing when you write code. | |
Re: [QUOTE=largedimples;1276251]What compiler can I use to build/run an flex scanner? I tried mircle and visual studio 2010 neither one would run the program.[/QUOTE] [QUOTE=kings_mitra;1276418]I think you can use [B]gcc[/B] for the purpose along with flex...[/QUOTE] Most C compilers should readily compile the code that flex generates. By "run the program" … | |
Re: [QUOTE=judithSampathwa;1278193]why dosen’t it allow me to use 2. using Admin_Application.PresentationLayer.*; can’t I use it the second way??[/QUOTE] That's just the way the C# language is designed; there is no '[ICODE]*[/ICODE]' like with Java's [ICODE]import[/ICODE] directive. What you [I]can[/I] do, though, is this: [CODE] using Admin_Application.PresentationLayer; [/CODE] Then you can refer … | |
Re: [QUOTE=jtltgl;1270425]I am trying to loop until length is meet but it only creates one char and I am trying to when it gets to certain char to skip and do nothing but loop until length is meet.[/QUOTE] [CODE]char symbol,symbols; string password; for(int d=0; d < numericUpDown1->Value;++d) { symbol = rand() … | |
Re: [QUOTE=judithSampathwa;1263159]when i try to validate it it gives an invalidCastException.(the line is bolded, this is tha place where the error occurs) ... how can i solve this.[/QUOTE] Rephrasing your question: "Why isn't [ICODE]e.FormattedValue[/ICODE] a [ICODE]DateTime[/ICODE]?" A good next step is to figure out what type of object it really is. … | |
Re: [QUOTE=moroccanplaya;1245092]no one uses C these days[/QUOTE] Says who? C is alive and well. For example, [URL="http://en.wikipedia.org/wiki/Category:Free_software_programmed_in_C"]here's a list of free software written in C[/URL]. | |
Re: Try moving the sound playback from the form constructor to an event handler for [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.form.load.aspx"]Form.Load[/URL]--I'm not sure if this will fix it, but I've run into other kinds of problems related to doing too much in form constructors. | |
Re: [QUOTE=neithan;1248224]When i run it, ALL objects have the same dying age, so weird. So I added a breakpoint in the function that generates the dying age and guess what, it works perfectly when debugging but not in a normal run. So it's like the function doesn't have enough time to … | |
Re: [QUOTE=mick3339;1247545]A friend of mine told me to use function pointers and then use a shared object or DLL to specify the external functions. Then the config file could tell the code where the DLL is and what the corresponding function names are.[/QUOTE] That's one way to do it, but it … | |
Re: [QUOTE=daviddoria;1247721]What you have described is called "rejection sampling". That sounds like a reasonable way to go about this to me. If you use std::vector to to store the elements you can then use find() from the stl to do the search. It shouldn't be that bad for something as small … | |
Re: [QUOTE=Alexpap;1246480]I have a treeview, in wich the user adds/removes dynamicaly nodes and a button wich should save the treeview structure in a database table when clicked. The thing is, that the depth is not known, so i need a way that i can get all-depth nodes and save the whole … | |
Re: [QUOTE=comput scince;1242889]How would you benefit from such information so that you minimize the search time?[/QUOTE] I'm trying to think of a way to point you in the right direction without just giving you an answer... what have you come up with so far? | |
Re: [ICODE]int a;[/ICODE] counts as a [URL="http://blogs.sun.com/ali/entry/what_are_tentative_symbols"]tentative declaration[/URL] in C. If you don't write in a default value, you can declare the variable again later. Try providing a value both times you declare it and you should get an error: [CODE]#include <stdio.h> int a = 42; int a = 42; int … | |
Re: Server-based: [URL="http://www.mysql.com/downloads/mysql/"]MySQL Community Server[/URL] with [URL="http://www.mysql.com/downloads/connector/net/"]MySQL Connector/Net[/URL] File-based: [URL="http://sqlite.phxsoftware.com/"]System.Data.SQLite[/URL] | |
Re: So if I'm reading this right, you have a file handle that was returned by [ICODE]io.open[/ICODE] at some previous point, but you need the filename that was used to create the handle so you can truncate it. Yes? For now, I'm assuming that we're talking about Lua 5.1.4 because it's … | |
Re: [QUOTE=jonnyboy12;1200246]Hello all. This is a quick question. I have learned quite a bit of assembly so far. One thing confused me though. Why would one push a register with nothing in it . for example [CODE]push eax[/CODE] I have see this happen in code even when nothing has been moved … | |
Re: A few seconds with any Internet search will get you any number of articles on that subject you want. [URL="http://msdn.microsoft.com/en-us/library/scsyfw1d.aspx"]Here's one from Microsoft[/URL] ...and [URL="http://www.google.com/search?q=c%23+interface+or+abstract"]here's an Internet search[/URL] if you don't want to type it yourself. | |
Re: [QUOTE=Krstevski;1203514]One calculator can make two operations (multiply and subtract). Return the minimum number of operations needed to get to target (or -1). Example: Your multiply number is 5 Your subtract number is 7 Your target number is 20 Starting with 1, we have: 1*5*5=25 25-7-7-7=4 4*5=20 Since we used 3 … | |
Re: [QUOTE=bs5134;1201838]The program sums correctly but instead of only outputting one row's sum, it sums up all of the rows up until the input row and adds them all together.[/QUOTE] This appears to be your problem: [QUOTE=bs5134;1201838][CODE]cout<<"Which row would you like to sum? (0-39)\n"; cin>>sumnumber; for(rows = 0; rows < sumnumber; … | |
Re: [QUOTE=krishnisilva;1194526]it give a value "System.Data.DataRowView" in the combo box.The code i wrote is added below. [CODE]cmbPI.DisplayMember = "FirstName" + " " + "LastName";[/CODE][/QUOTE] This is happening because there is no property of [URL="http://msdn.microsoft.com/en-us/library/system.data.datarowview.aspx"]DataRowView[/URL] called "FirstName LastName". It couldn't, because there's a space in there. If you read the [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.displaymember(v=VS.100).aspx"]MSDN documentation … | |
Re: [QUOTE=simbomatic;1186965]The project will basically need to track changes that occur within a string so they can be highlighted.[/QUOTE] It looks like you need some kind of [URL="http://en.wikipedia.org/wiki/Diff"]diff[/URL] feature for your project. This is a well-understood problem, and you should be able to find an implementation that meets your needs. One … | |
Re: [QUOTE=thariqrasheed;1093966]Please explain about the Right and Left shift operators in java.. I am new to programming concepts.. So please explain me with examples..[/QUOTE] [URL="http://www.google.com/search?q=java+shift+operator"]Google is your friend[/URL]. They are bitwise shift operators. [URL="http://en.wikipedia.org/wiki/Logical_shift"]Here[/URL] are [URL="http://java.sun.com/docs/books/tutorial/java/nutsandbolts/op3.html"]some[/URL] [URL="http://www.sap-img.com/java/java-bitwise-shift-operators.htm"]links[/URL] to get you started. |
The End.