43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for stoymigo
Member Avatar for stoymigo
0
86
Member Avatar for I_Empire

Hi everybody, i was writing a small c++ class that uses a list as a data member , i then wrote a small print function to print the numbers in the list [code] #include <iostream> #include <string> #include <sstream> #include <list> using namespace std; class A { private: list<int> number; …

Software Development c++
Member Avatar for I_Empire
0
174
Member Avatar for Darth Vader

I am about to convert this 2D vector to managed code where I instead will use a List<String>. The problem is that I dont know how to do that, I would be happy to see how that could be done. [code] std::vector<std::vector<string> > vector1(1000, std::vector<string>()); [/code]

Software Development c++
Member Avatar for Darth Vader
0
1K
Member Avatar for KirkPatrick

Its been awhile since I have toyed around with java, so I'm a bit rusty. But decided to mess with it today. I have a jPanel that I will be adding objects to, but I want to add the in a new row each time a button is clicked. Anyways …

Software Development java
Member Avatar for KirkPatrick
0
123
Member Avatar for MervinKoops

Hello, I need to create a function which takes parameters for a circle and checks if a given point(x,y) lies within the circle (or on the edge). Like this: [CODE]public static bool PointExistsInCircle(Double CircleX,Double CircleY,Double CircleRadius,Double PointX,Double PointY) { needs to return 'true' if the point is in the circle, …

Software Development mathematics
Member Avatar for MervinKoops
0
185
Member Avatar for Xamas

I need to build a program - hotel, which has from 1 to XXX rooms. It is ok, when I have only the: [CODE=JAVA]private static int[] array_of_rooms; <... CLASS CONSTRUCTOR ...> array_of_rooms = new int[size]; // Size is defined size, of rooms in the hotel. // Fill default room status …

Software Development java
Member Avatar for VernonDozier
0
2K
Member Avatar for jralexander137

I am having trouble understanding how to implement these problems in C using bit operators. I understand the basic logic gates and when I work them out on paper they work just not code wise. Any insight/help would be great. [code=c] /* * bitXor - x^y using only ~ and …

Software Development c legal
Member Avatar for jralexander137
0
914
Member Avatar for serkan sendur

the following escape sequences cause [] in listview. Is there any way to fix it? Form1.cs : [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace newLineInListView { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, …

Software Development c c# c++ listview
Member Avatar for kvprajapati
1
389
Member Avatar for jrosh

I want to trigger an event when ever an item is changed in a combo box...how can i do it? what is the listener & action? thnkx in advance.....

Software Development java
Member Avatar for majestic0110
0
277
Member Avatar for turbomen

Dear ALL, Could you tell me how can I write a program that writes to a text file, the 32 people that are in our hotSeat.txt file. Cheers, turbomen (p.s.: 'the question orginally ask me to write a program that writes to a text file, the 32 people that are …

Software Development file-system pascal
Member Avatar for House_of_Dexter
-1
182
Member Avatar for jamesrobb

How can I extract repeated paragraphs of data from an html document. Every paragrahp is preceded by the line: <p><i>Summary as passed House:</i> <br> Thanks.

Software Development html-css vb.net
Member Avatar for sknake
0
768
Member Avatar for Merovingian

So I've been coding for a few months now and I have a pretty good grasp of most things but I can't wrap my head around getting info from loops. So here is my problem. I have a text file containing text similar to this: [CODE]<domain name="proxies"> <section name="proxy0"> <setting …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
156
Member Avatar for simonches

Hi, I'm trying to make a program in python that solves word puzzles like this: "nj" (the answer to that is "ok") where each letter is off by one, for example a or c instead of b. the program is supposed to generate a list of possible words which will …

Software Development python
Member Avatar for simonches
0
158
Member Avatar for hemchantra

I have datagridview which display 3 columns. i would like to show icon in each rows with different by if column 3 = "OFFLINE" then the icon offline show else online show. the above is my code but not working. it is creating other column. please help me. Chantra. Public …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
2K
Member Avatar for KillerOfDN

Hey kind people! How do I remove duplicate Rectangles from my List<Rectangle> in C#? Thank you

Software Development c#
Member Avatar for KillerOfDN
0
928
Member Avatar for Flapjack

Was wondering if soemone could point me in the right direction with the insertafter function in a double linked list. The function looks like this. [CODE] const LinkedList::Iterator LinkedList::InsertAfter(const Iterator& Iter, const ItemType& Item) { nodePtr nNode = new Node(Item, NULL, NULL); // test if allocation was successful if (nNode …

Software Development c++ linked-list
Member Avatar for Flapjack
0
840
Member Avatar for NargalaX

The title basically says it all. How would I include a DLL for use in another project?

Software Development
Member Avatar for DdoubleD
0
90
Member Avatar for Hanyouslayer

First, I want to thank you for helping if you did, if not, thanks for checking it anyway. Second, I have been working on this for awhile, but I only am getting baby steps towards my goal. I get this far and I get compile correctly, but when I run …

Software Development java
Member Avatar for Dougnukem
1
173
Member Avatar for Friktion

hey everybody i just upgraded from 2.5 to 2.6 and im having problems with building pymedia since there is no binaries out there -.- this is what im doing and getting [CODE] C:\pymedia>python setup.py build Using WINDOWS configuration... Path for OGG: ..\pymedia\libogg-1.1.4 Path for VORBIS: ..\pymedia\libvorbis-1.2.3 Path for FAAD: ..\pymedia\libfaad2 …

Software Development audio python
Member Avatar for Friktion
0
256
Member Avatar for dorkwad

I compiled a project I made in visual studio 2008, but for some reason it only works on the computer it was created on, on any other computer I just get the "... has encountered and error and needs to be closed..." error message. At first I thought it was …

Software Development vb.net visual-studio
Member Avatar for dorkwad
0
125
Member Avatar for papanyquiL

I've got a splash screen that plays a flash video upon form load. My problem is, the method to load the flash video is like this: [code=c#] this.axShockwaveFlash1.LoadMovie(0, @"C:\blahblah\blah.swf"); [/code] However, if this app is installed on somebody elses computer they would either have to move the .swf file into …

Software Development flash video
Member Avatar for papanyquiL
0
205
Member Avatar for Warkthogus

I'm attempting to write a program that will take a word entered by the user and give a concatenation of the corresponding triple quote strings. I've looked at [URL="http://www.daniweb.com/forums/thread189881.html"]http://www.daniweb.com/forums/thread189881.html[/URL], but didn't quite find the piece I'm missing. The idea is fairly simple: User inputs a word (or numbers) Exchanges letters …

Software Development daniweb-feedback python
Member Avatar for Warkthogus
0
228
Member Avatar for Gaiety

Hello, i have written the code for checking a given tree is strict binary or not. i tried the following code but i am not getting the correct result. and i unable to understand how to check. int strict ( BST_t *p ){ if( p == NULL ) return 1; …

Software Development c
Member Avatar for Tom Gunn
0
1K
Member Avatar for helmX

I would like to convert the following code to .NET from VB6 [CODE]While Not rsMem.EOF i = i + 1 lstView.ListItems.Add i, , rsMem.Fields("lname").Value With lstView.ListItems(i) .SubItems(1) = IIf(IsNull(rsMem.Fields("fname").Value), "-", rsMem.Fields("fname").Value) .SubItems(2) = IIf(IsNull(rsMem.Fields("Title").Value), "", rsMem.Fields("Title").Value) .SubItems(3) = IIf(IsNull(rsMem.Fields("telNo").Value), "", rsMem.Fields("telNo").Value) .Tag = rsMem.Fields("per_id").Value End With rsMem.MoveNext Wend[/CODE] lstView is …

Software Development listview vb.net
Member Avatar for kvprajapati
0
92
Member Avatar for D_switch

please help im really stuck in my sorting you see i need to make a program that asks the user 10 names of people then the array of names gets pass to another function where it is sorted in ascending or descending depending on what the user wants. that function …

Software Development c
Member Avatar for D_switch
0
5K
Member Avatar for awa

Hi, I have the following problem: I would like to read from a file between to keywords (KEY1 and a line consisting of ------), skipping 4 lines after the first keyword. What I have is the following: [CODE]import re import string infileName = raw_input("filename ") infile = open(infileName, 'r') data …

Software Development python
Member Avatar for awa
0
305
Member Avatar for yorro

I don't know how to explain this more clearly than I can. The codes in my form are getting too many/long. How do you split the codes into another? and still having the same classes and events in order to [U]reduce the amount of codes in the form.[/U] Sorta like …

Software Development vb.net
Member Avatar for yorro
0
469
Member Avatar for mahela007

I'm a bit confused as to how variables (or fields) of classes are handled in python. I'll give a small example of what I mean. [CODE] class Cow: # the first class that popped into my head legs = 4 moo = cow() [/CODE] now, moo.legs will return 4 and …

Software Development python
Member Avatar for djidjadji
0
175
Member Avatar for Sobakaa

Hi, guys, i need some help, as i can't find a mistake in my code for some hours. I'm expiriencing a problem in function makeCodes, which should make huffman codes for my symbols. In my head this works just fine, recursively making codes, but my Visual Studio crashes on the …

Software Development c++ visual-studio
Member Avatar for Sobakaa
0
112
Member Avatar for AirGear

i have a code with algo that fits my problem, but i get this error message when i compile it.. #8 floating point exception [usually caused by accessing memory out of bounds]. who knows what's this? here is my code [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int …

Software Development c++
Member Avatar for AirGear
0
249
Member Avatar for Wolf CCMLG

I was given some code by my Professor and I had to debug it. I finally found the problem, but I have no idea why it is a problem. Could someone please enlighten me. [B][U]Here is the piece of the code that has been corrected:[/U][/B] [code] . . . //Using …

Software Development c++
Member Avatar for vmanes
0
145
Member Avatar for 2ndmiltia

Hey all. I'm writing a simple bank program with a menu of options, and the first option is to create an account. The user enters an account number and this number is stored in the array in the first empty slot. So for example, if the user enters 100, it …

Software Development c++
Member Avatar for NathanOliver
0
289
Member Avatar for terzenta

(Most frequent character in a string) I've been working on this problem for hours, and I'm just totally lost. I don't know if I'm heading in the right direction at all, and would really appreciate any help. My code isn't working at all, but I've included it. The homework problem …

Software Development c++
Member Avatar for terzenta
0
92
Member Avatar for Wolf CCMLG

Can someone please help me with this error I am getting when compiling: [B]DivSales.obj : error LNK2001: unresolved external symbol "private: static int DivSales::totalSales" (?totalSales@DivSales@@0HA) 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\...\Week 3 - Challenge 7\Debug\Week 3 - Challenge 7.exe : fatal error LNK1120: …

Software Development c++
Member Avatar for Wolf CCMLG
0
207
Member Avatar for vileoxidation

Hello! I am taking a scientific computing class, where we are doing some programming in C, and right now our assignment is to add commentary to an existing program explaining what every line does (starting at the line that says Start here!). As you can see in the code below, …

Software Development c
Member Avatar for vileoxidation
0
123
Member Avatar for jonsca

I'm having a hard time geting access to properties in the var output of the query (I know I can use foreach on the result that I've got but I'm not sure which elements values I'm accessing). I think my query is just plain wrong, so I'd appreciate some help. …

Software Development
Member Avatar for jonsca
0
219
Member Avatar for AutoPython

Okay, I am confused on the global statement. To my knowledge it lets you easily access variables from a function to be used in the session. Now someone said that it's useless and you shouldn't use it in your code. Is this true?

Software Development python session
Member Avatar for AutoPython
0
331
Member Avatar for leverin4

I'm running into an issue with a program. I need a method that takes a string and returns every possible combination of upper and lower case letters for that string. For instance, cat would return: cat caT cAt cAT Cat CaT CAt CAT The string entered could be any length …

Software Development algorithm java
Member Avatar for nomemory
0
795
Member Avatar for vlady

hello, pls can somebody show me a way how to solve the following exercise: A number, a, is a power of b if it is divisible by b and a/b is a power of b. Write a function called is_power that takes parameters a and b and returns True if …

Software Development python
Member Avatar for vlady
0
3K
Member Avatar for arcticM

realy desperate here.. :'( my prog is getting data about problems (computer/electricity..ect (not real C problems)) from txt file..and every line in file has a different problem..so I made one PROBLEM problem; (object) and in my getProbDetails() function I'm getting the first line..reallocing to add one more object (creating array …

Software Development c
Member Avatar for arcticM
0
171
Member Avatar for sfuo

Hey I was wondering how the string class is able to output its self the way it does. For example: [CODE]#include <iostream> #include <string> using namespace std; int main() { string testString; testString = "Hello"; cout << testString << endl; system("PAUSE"); return 0; }[/CODE] If I were to try to …

Software Development c++
Member Avatar for mrnutty
0
253
Member Avatar for Sobakaa

Hi, guys, i need some help, as i can't find a mistake in my code for some hours. I'm expiriencing a problem in function makeCodes, which should make huffman codes for my symbols. In my head this works just fine, recursively making codes, but my Visual Studio crashes on the …

Software Development c visual-studio
Member Avatar for Sobakaa
0
88
Member Avatar for chico2009

Hi All Could you please help me with the following, #Convert C to F def Tc_to_Tf (): Tc = input ("What is the Celsius Temperature ? " ) Tf = 9.0/5.0 * Tc + 32 print 'The temperature is ', Tf, ' Degrees Fahrenheit' I get NameError: name 'Tf' is …

Software Development python
Member Avatar for chico2009
0
195
Member Avatar for sonygamer

Hi everyone, I have to write a code that finds and prints all prime numbers from 2 to whatever number the user inputs, be it 10 or 10,000. So far what i have is this: [code=cplusplus] #include <iostream> using namespace std; int main(){ int n,p,t,limit; cout<<"input the limit:"; cin>>limit; //outer …

Software Development c++
Member Avatar for ashen77
0
151
Member Avatar for ktkevin1222

I'm fairly new to coding VB 2008 I need help converting a text document with a type of code in it. One line looks like this: 52.000000, 400.000000, 1.3107711, 0 I need to convert that to an xml file that looks like this: - <CuePoint> <Time>11619</Time> <Type>event</Type> <Name>Marker 01</Name> - …

Software Development vb.net xml
Member Avatar for ktkevin1222
0
226
Member Avatar for sonia sardana

I want to convert VB.Net to C# code VB.NET- [code] Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try Dim lCount As Integer For lCount = 1 To 5 ListView1.Items.Add(lCount.ToString) Next Catch ex As Exception MsgBox(ex.Message) End Try End Sub Private Sub Button1_Click(ByVal …

Software Development listview vb.net
Member Avatar for DdoubleD
0
234
Member Avatar for jingo1126

ok i can inverse the code like 1234 to 4321..but when i applied jmp and cmp i dont know what goes wrong with my data.. code without loop [code] .model small .stack .data .code start: mov ah,1 int 21h push ax mov ah,1 int 21h push ax mov ah,1 int …

Software Development assembly
Member Avatar for mathematician
0
105
Member Avatar for TechSupportGeek

Hello again guys, this time I need help with the [B]FormClosing()[/B] Event in the Picture Viewing application I made. I wanted it to prompt the user before closing the form (if he had any unsaved changes) and I did it without help. But, the bad thing is, when someone saves …

Software Development vb.net
Member Avatar for sknake
0
246
Member Avatar for jefanot

Hello, I really need help. If anyone could, please tell me what I'm doing wrong. Well, I'm making this program that asks if you're happy. Then if you don't answer yes, it will ask the question again until you do. I thought that it would be fun to have a …

Software Development c++
Member Avatar for William Hemsworth
0
119
Member Avatar for TenaciousC22

I am pretty new to C#, but I do have some experience with programming ("some" being the operative word here). I am wondering what is the best way to completely exit out of code at a certain time. For example, I am writing an application to read in a Photoshop …

Software Development
Member Avatar for sknake
0
102

The End.