43,549 Solved Topics
Remove Filter ![]() | |
Windows: 98 2000 XP Home Vista Windows 7 -Thanks Software Development windows-vista | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 … | |
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, … | |
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 | |
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 | |
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. | |
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 | |
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 | |
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 | |
Hey kind people! How do I remove duplicate Rectangles from my List<Rectangle> in C#? Thank you Software Development c# | |
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 | |
The title basically says it all. How would I include a DLL for use in another project? Software Development | |
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 | |
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 … | |
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 | |
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 … | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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++ | |
(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++ | |
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++ | |
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 | |
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 | |
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? | |
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 … | |
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 | |
![]() | 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 ![]() |
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++ | |
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 | |
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 | |
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++ | |
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> - … | |
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 … | |
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 | |
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 | |
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++ | |
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 |
The End.