132,726 Archived Topics
Remove Filter ![]() | |
Srpn is a reverse polish notation calculator with the extra feature that all arithmetic is saturated (i.e. when it reaches the maximum value that can be stored in a variable, it stays at the maximum rather than wrapping around). Program must be able to input at least two numbers and … Software Development python | |
Hello, I've to make a c program with the next specs: Write a function that is specified as follows: bool lees_file (char *, int [] [KOLOMMEN_IN]); The function has as parameters a pointer to a file name and a two dimensional integer array and a return value of type boolean. … Software Development c | |
how to access xml resource file in C# wpf application? i have made xml file a resource file but i cant access it . here is a code: private static string MessageExtract(string tagName) { XmlDocument messageTags = new XmlDocument(); messageTags.Load(@"//resources//Messages.xml");//this dont work XmlElement messageRoot= (XmlElement)messageTags.GetElementsByTagName(tagName)[0]; return messageRoot.GetElementsByTagName(AppManager.GetCurrentLanguage())[0].InnerText; } Software Development xml | |
Hi, I want to copy a row from a 2d vector in an existing 1d vector. I found a similar tread, which copies into a newly defined vector as such: [CODE]vector< data_type > copyRow( vec2d[3].begin(), vec2d[3].end());[/CODE] Now I want to change this code, so that copyRow already exists. My idea … Software Development c++ | |
hi, I try to write a app to automatically re-organize my mails (thunderbird). The first thing I try is to re-create my folders tree, once for each year. So i need to read mbox files and rewrite them [CODE=python] import mailbox mbx=mailbox.mbox("./in_mbox") mbx.lock() of=open("out_mbox", "w") for k, m in mbx.iteritems(): … Software Development python | |
Hi, Im trying to write some code which adds the combined height and weight of two dogs, returns the result and then displays it..The problem is, the result returned is wrong (i think the operation is just adding two memory addresses)..The =operator code is returning rubbish as well, i think … Software Development c++ | |
I am getting the following two errors, i am lost on how to fix them: Exc_3.cpp(54) : error C2082: redefinition of formal parameter 'name' Exc_3.cpp(54) : error C2440: 'initializing' : cannot convert from 'char[]' to 'char' Here was my original prompt, I think i did part B wrong.....wasn't sure how … Software Development c++ | |
Hi all I have a empty GUI , what i need to do now is to put the algorithms I have into the GUI. Im not very sure how im supposed to go about doing it. Calling of files would be easier to me as i do not have to … | |
can anybody give me a link or anything that can help me understand switch loops a little bit more im a newbie to C++ so any help wud be highly appreciated Software Development c++ | |
hi anyone who can help me with this project? <EMAIL SNIPPED> Please see the attachment Software Development email visual-basic | |
Hi folks, I'm writing some utility classes for a project, and I've written an abstract class called "XPObjectTable" that displays a table of objects of a given type. To refresh this, I'm using "AbstractTableModel.fireTableDataChanged()". Now I'm writing a similar class for JList, but can't find a similar method (i.e. "AbstractListModel.fireListDataChanged()"). … Software Development java | |
Hey i want to open Tabpage 2 when i click button 1 on Tabpage 2, how to do it? :) Software Development vb.net | |
Hello aLL I need a small help from you guys.. I am creating project in VB6.0 and access 2003, form has combobox,tab control,textbox msflexgrid .. I am trying to retrive data from database.I have a sub procedure which is nicely working for all controls except combobox. while debugging I found … Software Development visual-basic | |
hi all, i just doing Django..tried the first example in Django book...i encountered problem at admin page. it says that admin is not defined. i followed each step in tutorial and i am able to run django server also. pls help me to solve it. i am adding error output … Software Development python python-django | |
Hi there I want to know if there is a way to display data in a datagrid for the person that is logged in to my application? It's very simple: A user will log in to my program. Then he/she can go to his/her time management form and fill their … Software Development | |
Hi guys! i am stuck in my fraction program. i hope you guys can solve it. here i have posted my code. i am trying to get for e.g. 4/2 need to get me answer like 2/1 or 2/4 show me 1/2. i hope you can help me out. i … Software Development c++ | |
I am searching for a automation to create exe of VC++ project but I don't want to open VC++ IDE. I want to create exe file using command prompt. please help. | |
How can I come to know that the system has done a rounding during a calculation or not? I mean for example 4/2=2 is an exact calculation of doubles because 4 and 2 are represented exactly. But for example 4/3 is not an exact calculation. I would like to know … Software Development c++ | |
How can I create a code for this task? *You are given a natural number m and natural number n =2, .,.,.. 16. Print the number m in counting system with base n. | |
[CODE]myclass::myclass(const std::wstring& processName,const std::wstring& dllName) { if ( (isValidDll(fileName)) && (isValidProcess(processName)) ) { this->dllName = dllName; this->processName = processName; memoryAddress = NULL; } else { throw; // what kind of exception should i throw for invalid arguments? } }[/CODE] im quite new to c++ exceptions and im curious to what … Software Development c++ | |
Write a program that asks the user to enter today's sales for five stores. The program should display a bar chart comparing each store's sales. Create each bear in the bar chart by displaying a row of asterisks. Each asterisk should represent $100 of sales. Here is an example of … Software Development java java-swing | |
hey, I don't know if you have seen my other post or not, but I have been working on a small code lately to get the users credentials such as their password and username. As you can see, the code gives a warning and says there is a problem with … Software Development python | |
OK. I need help with my homework. I a few problems to complete I was able to get pass the first few but I'm stuck. They are progresive problems So If I can get this one going I think I will be OK with the rest. This is what I … Software Development java | |
Hello, I'm trying to take a C array of char's and trying to take all of the spaces out of it. Yet I keep running into a segmentation fault. Can anyone help me here? [code] #include <stdio.h> #include <stdlib.h> int strlen(char* Str) { int toret=0; int i=0; char tmp = … Software Development c++ | |
So i am working on a platformer which has tiled graphics. The physics system on the other hand is not tiled, it uses vector boxes as an efficient way of doing collisions and the actual tiling is done at draw time. Heres the problem, all of my tiles are 16x16px … Software Development c++ | |
Hi, i am new on vb.net and MySql, and i have a problem. My database name is "plant3", i have a table named "itemlist" which has a field named "itemname", "task", and "status". I want to show the itemname on combobox and when user choice an itemname the program will … | |
Hello, I currently have been coding this. [CODE]Imports System.IO Imports System.IO.Compression Imports System.Windows.Forms Imports System Imports Ionic.Zip Imports System.IO.Path Imports System.Net.WebException Imports System.Net Imports System.Text Imports System.Net.Sockets Imports System.Security.Cryptography Public Class Main ' FTP upload Private Sub FTPU() If ListBox2.SelectedItem = Nothing Then MsgBox("Select world.") Else Dim clsRequest As System.Net.FtpWebRequest … Software Development file-stream vb.net | |
How do I make an array (or an abstract data type) which can hold different data types? Then use those data types to create instances. I want to do the following: [code] int arrayType[3] = {bool, int, char}; /*arrayType[0]*/ myBool = true; /*arrayType[1]*/ myInt = 2; /*arrayType[2]*/ myChar = "a"; … Software Development c++ | |
i want to known that i am starting to work on chip programming so i cant understand my first step.The programming language on which i used to work is java and still working.so my question is that how can i program a chip and i don't have any info about … Software Development assembly | |
Hello, I have to continously update an image based on screen capture. So how can I memorize only the part of the image that changes from one picture to another (from one frame to another)(pixels?)... Think of a remote desktop. It's not a good thing to send a 200K desktop … Software Development image | |
I have asked my instructor to help me with this error so I can move on to the next part of the program which is due Sunday, but no help to give I guess my problem is that when i try to compile my program I get a class, interface,enum … Software Development gui java java-swing | |
I cannot seem to correct the remaining errors in the code. This is the header [CODE]#ifndef DECIMAL_H #define DECIMAL_H #include <iostream> using std::ostream; using std::istream; // class Decimal definition class Decimal { public: friend istream operator>>( istream &, Decimal & ); Decimal( double = 0.0 ); void setInteger( double ); … Software Development c++ | |
Hi I have some practice problems for an upcoming quiz. Can someone answer them correctly so I can use that as a reference to study? I would great appreciate it. Write a program that will print multiples of 2. (0, 2, 4, 6, 8, ...) First complete the constructor and … Software Development java | |
Im having problems with my input validation. Its not working correctly. Keeps repeating the validation loop even when i enter something that should be correct. basically im trying to make it so that the only valid answer is either uppercase or lower case letters a-d. [CODE]#include <iostream> using namespace std; … Software Development c++ | |
I have just started using python and am trying to write a program that generates 200 random numbers in the range (1,50),then counts the number of occurrences of each number and prints the frequency of occurrence. I have created the part of the code which generates the random numbers. I … Software Development python | |
Hi, All. I created several basic programs on Visual C# Express and now I'd like to get into the Web Developing / ASP.NET side of Visual Studio. I downloaded Visual Web Developer and all my previous C# programs are now accessible and editable with Visual Web Developer. So, my question … Software Development asp.net c# visual-basic visual-studio | |
Can some one please suggest a good advanced book on Concurrent Processes. I am a bit week in it and would like to give a lot of time to improve Software Development java | |
hi guys, I have a program using a JTabbedPane where I 3 classes, 2 are JPanels and one is a JFrame which contains a JTabbedPane. I am trying to swap one JPanel when a button is clicked. The first JPanel is a login and when user is verified I have … Software Development java | |
Hello. So, I'm a newbie, and this is my second hard assignment. In this assignment, I have to decrypt the message from the teacher (well, not only this, it should open and decrypt any text file). So, the example line would be: [I][B]Ftq Pqoxmdmfuaz ar Uzpqbqzpqzoq ar ftq Ftudfqqz Oaxazuqe … Software Development c++ | |
Hi. I have a function that needs to split a string on the seperators given by the function. so if i had the seperators as !.?: then it should split the string at those points. if i have a string 'hello. world! hello.' how can i return a list with … | |
I am going to keep this discussion fairly abstract initially in hopes that I will get a broad range of approaches. Here goes... I am working on an application which uses paint() to fill a JFrame with a "background" (a game table) and several ancillary elements (table markings, chips, etc.) … Software Development java | |
Hi All, I am trying to create an XML file that saves email addresses and files. This would then be read by another application and will send the emails and attach the files to the email. I am using the OpenFileDialog to get the file path and name. But when … Software Development file-system pdf xml | |
I have a feeling my logic is off here.....crashes randomly depending on input [CODE]//Exc_6.cpp - practice with arrays #include<iostream> using namespace std; void fillArray(double array[], int size); void showArray(const double array[], int size); void reverseTheArray(double array[], double reveseArray[], int size); int main() { int size; cout << "Please enter the … Software Development c++ | |
Hi guys, I need some help with sprintf. I get the general idea, and I think everything works, but my MessageBox will not diplay the right text. [CODE]int a = 25; char buf [80]; sprintf(buf, "%d", a ); MessageBox(NULL, (LPCWSTR)buf, L"Sel Change", MB_OK);[/CODE] Software Development c++ | |
Hello Members, The following Client/Server does a simple chat where I am able to send and receive one line at a time. How should I proceed if I were to send at aleast 4-5 lines at a time. Any help (with some sample pseudocode) would be of immense help. Thank … Software Development client-server java | |
This is supposed to be a code for a video game store [CODE]#include<iostream> #include<fstream> using namespace std; ifstream infile; struct VideoGame { string Name; string Genre; string Publisher; string Developer; string Platform; string Price; int count; VideoGame *link; }; void CreateList(VideoGame*& first, VideoGame*& last); void CheckOut(VideoGame*& first, string title); bool … Software Development c++ linked-list microsoft-windows | |
Here is my code, I want it so you type something in to the textfield and then you press the button next to it which puts the text in the textArea. It compiles but when you click the JButton it errors out, I'm a beginner to Java anyone know what … Software Development java java-swing | |
Dear programmers)) Please tell me - why in ะก# this line [CODE]string [this.LevelNumber] mass = new string [this.LevelNumber];[/CODE] isn't permissible? What can be an equivalent for it? Thank you for your answers) Software Development c# | |
I'm trying to sort a 3D array and having little success. I have read various methods on how this is done for two dimensions, but I can't seem to scale it up. example array: [CODE]r =[[['steve',1, 40], ['steve',3, 20], ['steve',2, 30]], [['john',5, 50], ['john',6, 40], ['john',4, 30]]][/CODE] I want this … Software Development python | |
i want to run my java program as autorun as plug in the usb but i cant figure out hopw to. i am come out with a method below it is [autorun] open=fun.java // my program name action=Run fun Program icon=fun.exe label=extemer i made this file in notepad and saved … Software Development java |
The End.