679 Posted Topics
Re: [QUOTE=subith86;1743007]You are calling a non-const function by a const object. Hence the error. Make the functions as const and you'll get rid of this error. [CODE]int statistic::length() const { return amount; }[/CODE][/QUOTE] This is a good practice in general--if your member functions don't change the object, declare them [ICODE]const[/ICODE]. [QUOTE=subith86;1743007]There … | |
Re: If you prefer a database, but need an offline save file, and don't want to install a database server, you might look at [URL="http://www.sqlite.org/"]SQLite[/URL]. | |
Re: [QUOTE=IanKent;1749514]The problem I am having is that the program will run, and go through the first loop, but when it comes to the point of calling the functions, it just skips over them.[/QUOTE] Look at these lines carefully: [QUOTE=IanKent;1749514][CODE]float sum(int sales[], int size); cout << "The sum of the Figures … | |
Re: Also: [URL="http://msdn.microsoft.com/en-us/library/57a79xd0.aspx"]String.Join[/URL] | |
Re: [QUOTE=macdunk11;1753991]What I need help with is getting the correct code for all of the neighbors that each cell has and also the code for each generation to correctly mutate.[/QUOTE] All of those [ICODE]if[/ICODE] statements are making my head spin. Are you familiar with [URL="http://www.cafeaulait.org/course/week2/15.html"]the [ICODE]%[/ICODE] operator[/URL]? | |
Re: [QUOTE=deceptikon;1753669]Of course not. The idea that professional developers are always masters of the craft is a romanticized fantasy that hobbyists dream up. The reality is that only a small fraction of professional developers are more than average programmers.[/QUOTE] Seconded; I've had to deal with some pretty awful code written by … | |
![]() | Re: [QUOTE=gowans07;1753260]i know what the unencrypted files look like but that doesnt help with the decrpytion surely?[/QUOTE] If the file contains encrypted data only, then you're right. However, the program that saved the file may have included other information with the encrypted data for some reason. It's worth looking at. ![]() |
Re: This line: [CODE]Decimal.dTemp = 0[/CODE] There shouldn't be a dot there; it tells the compiler to look for a member of [ICODE]Decimal[/ICODE] called [ICODE]dTemp[/ICODE]. You meant this: [CODE]Decimal dTemp = 0[/CODE] But that's C#... how about: [CODE]Dim dTemp As Decimal = 0[/CODE] | |
Re: I'd say that to be a successful software engineer, you should at least be comfortable with basic algebra. You've got that covered already, so stopping now shouldn't hold you back. But. Any math class you take or technique you learn will prove useful and make you better at software engineering. … | |
Re: [QUOTE=Tumlee;1749349]He's expecting the compiler it to align all instances of this structure to 4-byte boundaries via padding. I'm not entirely sure if this should actually change the value returned by sizeof().[/QUOTE] [URL="http://en.wikipedia.org/wiki/Sizeof#Structure_padding"]It should[/URL]. | |
Re: You can use [URL="http://www.deadnode.org/sw/bin2h/"]something like this[/URL] to turn the binaries into code, then write them out using the standard library. If you want to get fancy with the linker, you can also [URL="http://stackoverflow.com/questions/2627004/embedding-binary-blobs-using-gcc-mingw"]link them to your application directly[/URL]. | |
Re: Get rid of this line: [CODE]#include "StdAfx.h"[/CODE] It's not really necessary, unless you absolutely must use precompiled headers. I'm guessing you don't need them. | |
Re: Depending on your application, it might not matter too much, but there can be a significant performance penalty for getting all twenty fields instead of the four you need. Not just because of the amount of data sent across the wire, but also if you have multiple instances of your … | |
Re: [QUOTE=thines01;1735180]They could say it is false because the base class is not modified. It does not add functionality to the base class; it adds functionality to the class inheriting from the base class.[/QUOTE] Read the statement again: [QUOTE=andur92;1735158]"Inheritance increases the functionality of a base class by adding additional features to … | |
Re: You have: [CODE]ptr[M][N] = (double) 1000 + i * N + j;[/CODE] [ICODE]M[/ICODE] and [ICODE]N[/ICODE] will always be outside of the array, and are the same every time through the loop. You probably meant: [CODE]ptr[i][j] = (double) 1000 + i * N + j;[/CODE] Same goes for the [ICODE]cout[/ICODE] immediately … | |
Re: [QUOTE=WolfShield;1735134]The way I think it's done is: - Write the code that displays the GUI ( Window, Button etc ) and put it in functions. - Give the programmer access to the functions. So, in essence, if I wanted to write a GUI toolkit for the Windows operating system and … | |
Re: [QUOTE=galhajaj;1744069]1. there is an elegant way of doing things more clean and not a list of files that i very confusing?[/QUOTE] A common practice is to use a different folder for each namespace, with one type per file. This is automatically supported by some IDEs--Visual Studio and SharpDevelop come to … | |
Re: Also: [URL="http://en.wikipedia.org/wiki/List_of_revision_control_software"]List of revision control software[/URL] | |
Re: [url]http://www.json.org/[/url] has a giant list of libraries. You might look under "C#"; the language doesn't matter as long as it targets the .NET platform. | |
Re: [QUOTE=ambageo;1739064]I'm asked which are the ISR addresses of the h/w interrupts TRAP, RST5.5, RST6.5 and of the s/w interrupts RTS5, RST6 and RST7. I am confused, as I thought that all those interrupts have their addresses, eg. TRAP is always located in 0024, RST5.5 in 002C etc. Could someone please … | |
Re: [QUOTE=adam_k;1739289]I think we need to know what you are trying (inside the try...catch block). Also would be nice to know how you are connecting to SQL.[/QUOTE] Seconded; please post your connection string. | |
Re: Please post the error message and the code where the error happens; we can't help if we don't know what's going wrong. | |
Re: [QUOTE=Chuckleluck;1735166]Problem is, it appears the [ICODE]#ifndef[/ICODE] and [ICODE]#define[/ICODE] tags aren't stopping Secondary.cpp from redeclaring HelloWorld. Does anyone know what I did wrong?[/QUOTE] Your include guard is correct, but it is designed for a different kind of problem, like this: [CODE]// Main.cpp #include "Main.h" #include "Main.h" int main() { cout << … | |
Re: [QUOTE=stakeMyHeart;1729786]i'm trying to study this paper: [url]http://db.grinnell.edu/sigcse/iticse2007/Program/viewAcceptedProposal.asp?sessionType=paper&sessionNumber=113[/url] it has the 'linearization' in its title. i just want to know what is its meaning. i searched google but it gave me something like calculus which i dont get.[/QUOTE] No calculus involved :) The paper describes a method that analyzes source code, … | |
Re: [QUOTE=capton;1730717]Please i want to end a program in a function outside function main.[/QUOTE] Is [URL="http://www.cplusplus.com/reference/clibrary/cstdlib/exit/"]exit[/URL] what you want? [QUOTE=capton;1730717]also want to end executing a function of type void without allowing it to end[/QUOTE] Not sure what "it" is at the end there... if you want to exit a void function, … | |
Re: >i was trying to move a circle inside a square and was unable to do it Don't despair; you're almost there. (Hey, that rhymes!) What you're missing is the fact that `glutMainLoop` does not call your display function repeatedly. You need a way to tell the GLUT code that it's … | |
Re: [QUOTE=phorce;1730834]I can't seem to find out if it's possible to encode JSON in C#, are there any libraries out there?[/QUOTE] [URL="http://www.json.org/"]The main JSON page[/URL] has a giant list of links to libraries in all sorts of languages, including C#. How hard did you look, really? | |
Re: The first few sections of [URL="http://paulbourke.net/miscellaneous/sphere_cylinder/"]this page[/URL] may be relevant. | |
Re: [QUOTE=Ron2794;1730414]i have seen that some amount of the memory like my 8GB pendrive on linux PC which has one unit = 1000 which is exactly same used by the pendrive sellers.....is somewhat less than 8GB. it is 7.9 GB, why ?[/QUOTE] The file system takes up a certain amount of … | |
Re: [QUOTE=PoovenM;1730392]I have investigated using an [b]IntPtr[/b]: I have no way of knowing the length of the data coming out of the dll method so I can't successfully copy the data to a [b]byte[][/b]. If there was a way to iterate over the data [b]IntPtr[/b] provides access to then I would … | |
Re: [QUOTE=galhajaj;1727389]Hi :)i heard about mvvm & mvc design pattern but when i search for them i get only things that relative to asp & wpf... and those are (if i dont get it wrong) web developers[/QUOTE] [URL="http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller"]MVC = Model/View/Controller[/URL] You're getting a lot of ASP links because of Microsoft's [URL="http://www.asp.net/mvc/tutorials/overview/asp-net-mvc-overview"]ASP.NET … | |
Re: > Private Sub Button_Click() Handles Button1.Click, Button2.Click, Button3.Click > MsgBox() > End Sub > >Can anyone tell me how can we print that which button is clicked????? The [Click event](http://msdn.microsoft.com/en-us/library/system.windows.forms.control.click.aspx) is an [EventHandler](http://msdn.microsoft.com/en-us/library/system.eventhandler(v=VS.100).aspx), which takes two parameters, the first of which is the object that caused the event--in this case, … | |
Re: [QUOTE=khelly;1725115]at first, plec correct me this one... [code]if(item_code=='A') explanation='BABY WEAR';[/code] BABY WEAR and others was error, what should i put? [/QUOTE] Chars use single quotes, strings use double quotes: [CODE]if(item_code == 'A') explanation = "BABY WEAR";[/CODE] | |
Re: [QUOTE=kkevinnnn;1725868]Well anybody pls try this: i will give an address that is 0xB8000 Now u write a function in which we can write a string and define its colour so you write the string in that memory area and increment it, and again write the colour info in that area … | |
Re: [QUOTE=lxXTaCoXxl;1724307]I'm trying to create a struct for an 8 bit signed integer, I need information on how to build structs so that they can be assigned values such as: [code]private Int8 Input8Bit = 0;[/code] Using a struct like: [code]public struct Int8 { }[/code] But I don't even know where to … | |
Re: See also [URL="http://msdn.microsoft.com/en-us/library/system.console.readkey.aspx"]Console.ReadKey[/URL] Put it at the very end of your 'Main' method. | |
Re: [QUOTE=protestor;1725056]Hi, I use an msp430f16 and I want to calculate the execution time of a code (in milliseconds) any idea? thanks[/QUOTE] It looks like your chip has [URL="http://mspsci.blogspot.com/2010/08/tutorial-09-timers.html"]timers[/URL]; I don't know the MSP430 series myself, but I bet you could set up an interrupt to keep track of running time. … | |
Re: [QUOTE=squares86;1723953]It is from Chapter 10 of jeff duntemann's book on assembly language. I tried to write some code by myself but I can't get it to work properly. I need some insight please. I hope I can get some help this time. Last time I post one thread, there was … | |
Re: I'm with SasseMan; learning OpenGL will allow you to target a much wider variety of platforms. Something to be aware of: OpenGL only handles the graphics. It doesn't specify how you create a basic window, or if there is even a window involved. You'll still have to rely on OS-specific … | |
Re: If the data will always come in the same format, a simple solution is to [URL="http://msdn.microsoft.com/en-us/library/system.string.remove.aspx"]remove[/URL] the spaces and extract the [URL="http://msdn.microsoft.com/en-us/library/system.string.substring(v=VS.100).aspx"]substring[/URL] that contains the serial number. | |
Re: [QUOTE=Moschops;1716667][B]undefined reference[/B] indicates that the compilation is fine, but the linking is not. Check which libraries you need to link against. Linking just against glut32.lib is not enough.[/QUOTE] Normally you'd need [ICODE]opengl32[/ICODE], [ICODE]glu32[/ICODE], and [ICODE]glut32[/ICODE]. | |
Re: [QUOTE=akkbkht;1720853]I am making an application like an antivirus, My question is that I am able to detect the infected hash value, can I delete or remove this infected hash value from this file?[/QUOTE] Either you're confused or I am. Would you please elaborate on how you're deriving this "infected hash … | |
Re: Those are x86 instructions, and judging from the directives and comments, you could probably compile this code with [URL="http://en.wikipedia.org/wiki/GNU_Assembler"]GAS[/URL]. | |
Re: Here's a more general-purpose regular expression: [ICODE]href=(['"])(?!.+://)(?<url>.+?)\1[/ICODE] It finds hrefs to [URL="http://www.w3.org/TR/WD-html40-970708/htmlweb.html#h-4.1.2"]relative URLs[/URL]; from your example, they seem to be what you're looking for. | |
Re: [URL="http://en.wikipedia.org/wiki/Test_plan"]Start here[/URL]. | |
Re: I see that you're using pointers to [ICODE]entry[/ICODE] in some places, and not others... change your code so it's consistent, [I]i.e.[/I] use [ICODE]entry*[/ICODE] everywhere in your [ICODE]Queue[/ICODE] and related classes. I tested this, and your code returns the following when it's all pointers: [QUOTE]c b a[/QUOTE] | |
Re: A template class won't quite do it because the 'fly' and 'speed up' functions have different names in each struct... you can't write a single template that knows how to call the different methods of each airplane; you'd need a common interface for the airplanes, your lack of which is … | |
Re: It looks like we're talking about [URL="http://en.wikipedia.org/wiki/Canonicalization#Unicode"]Unicode[/URL] [URL="http://en.wikipedia.org/wiki/Unicode_equivalence"]canonicalization[/URL] here... so the canonical form may depend on the encoding used. | |
Re: Also you appear to have an extra [ICODE])[/ICODE] here: [CODE]if (guessedword.equals(word)) {System.out.println(win)[B][COLOR="Red"][U])[/U][/COLOR][/B];}[/CODE] | |
Re: [QUOTE=farshadak2004;1711554]My problem is I don't know how to write the code to detect the Mouse Idle time for two seconds and perform a double-click to highlight the text. the rest I can do. I just want to know how can I recognize the mouse IDLE time and assign a double … |
The End.