679 Posted Topics

Member Avatar for bennetk2

[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 …

Member Avatar for gusano79
0
336
Member Avatar for neartoyou

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].

Member Avatar for neartoyou
0
256
Member Avatar for IanKent

[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 …

Member Avatar for therockon7throw
0
348
Member Avatar for juce

Also: [URL="http://msdn.microsoft.com/en-us/library/57a79xd0.aspx"]String.Join[/URL]

Member Avatar for thines01
0
295
Member Avatar for macdunk11

[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]?

Member Avatar for gusano79
0
176
Member Avatar for drico7041

[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 …

Member Avatar for WaltP
-1
267
Member Avatar for gowans07

[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.

Member Avatar for gowans07
0
366
Member Avatar for Kalle21

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]

Member Avatar for Kalle21
0
167
Member Avatar for vaironl

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. …

Member Avatar for vaironl
0
220
Member Avatar for mrprassad

[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].

Member Avatar for gusano79
0
90
Member Avatar for zekstein

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].

Member Avatar for zekstein
0
154
Member Avatar for Desi991

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.

Member Avatar for thines01
0
238
Member Avatar for zachattack05

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 …

Member Avatar for zachattack05
0
155
Member Avatar for andur92

[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 …

Member Avatar for mani-hellboy
0
205
Member Avatar for james6754

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 …

Member Avatar for james6754
0
145
Member Avatar for WolfShield

[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 …

Member Avatar for WolfShield
0
489
Member Avatar for galhajaj

[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 …

Member Avatar for gusano79
0
141
Member Avatar for galhajaj

Also: [URL="http://en.wikipedia.org/wiki/List_of_revision_control_software"]List of revision control software[/URL]

Member Avatar for gusano79
0
144
Member Avatar for dashawk

[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.

Member Avatar for gusano79
0
598
Member Avatar for ambageo

[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 …

Member Avatar for gusano79
0
143
Member Avatar for SyncMaster170

[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.

Member Avatar for SyncMaster170
0
177
Member Avatar for stepmaster

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.

Member Avatar for gusano79
0
114
Member Avatar for Chuckleluck

[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 << …

Member Avatar for gusano79
0
2K
Member Avatar for stakeMyHeart

[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, …

Member Avatar for stakeMyHeart
0
113
Member Avatar for capton

[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, …

Member Avatar for AceStryker
0
2K
Member Avatar for diamondfist

>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 …

Member Avatar for diamondfist
0
235
Member Avatar for phorce

[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?

Member Avatar for gusano79
0
128
Member Avatar for cool_zephyr

The first few sections of [URL="http://paulbourke.net/miscellaneous/sphere_cylinder/"]this page[/URL] may be relevant.

Member Avatar for cool_zephyr
0
1K
Member Avatar for Ron2794

[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 …

Member Avatar for Rashakil Fol
0
99
Member Avatar for PoovenM

[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 …

Member Avatar for gusano79
0
638
Member Avatar for galhajaj

[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 …

Member Avatar for surajrai
0
293
Member Avatar for sanket044

> 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, …

Member Avatar for Reverend Jim
0
754
Member Avatar for khelly

[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]

Member Avatar for gusano79
0
164
Member Avatar for kkevinnnn

[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 …

Member Avatar for gusano79
0
164
Member Avatar for lxXTaCoXxl

[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 …

Member Avatar for gusano79
0
132
Member Avatar for lbgladson

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.

Member Avatar for Begginnerdev
0
252
Member Avatar for protestor

[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. …

Member Avatar for rubberman
0
178
Member Avatar for squares86

[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 …

Member Avatar for sbesch
0
263
Member Avatar for evaldaskowka

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 …

Member Avatar for SasseMan
0
165
Member Avatar for STiwari0130

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.

Member Avatar for STiwari0130
0
313
Member Avatar for ben1996123

[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].

Member Avatar for Moschops
0
560
Member Avatar for akkbkht

[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 …

Member Avatar for gusano79
0
193
Member Avatar for toantk_55

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].

Member Avatar for gusano79
0
89
Member Avatar for AndyPants

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.

Member Avatar for gusano79
0
385
Member Avatar for Hsalih
Member Avatar for gusano79
0
54
Member Avatar for eavila

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]

Member Avatar for gusano79
0
145
Member Avatar for stereomatching

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 …

Member Avatar for stereomatching
0
105
Member Avatar for coolsport04

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.

Member Avatar for gusano79
0
104
Member Avatar for JerryRong

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]

Member Avatar for stultuske
0
310
Member Avatar for farshadak2004

[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 …

Member Avatar for cool_zephyr
0
441

The End.