132,726 Archived Topics
Remove Filter ![]() | |
How do I test a byte string in Python? I want to manually convert (no libraries or functions) a UTF-8 string into UTF-16. My basic solution is to reading from the stream some number of UTF-8 bytes, convert them into codepoints, then convert those codepoints into UTF-16 bytes. I want … Software Development python | |
this is my code.. i got both my work database and my master database on the datagrid views in my form...but how do i go about comparing.. and generating the crystal report ? [QUOTE] imports System.Data.oledb Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles … Software Development dataset open-source vb.net | |
Hi I m trying to create a map of STL which has set as one of it's element. Following is snippet of my code [code=c] .. std::map<std:string,std::set<int,int> > map_of_set; int a=9; int b=10; std::string str="test"; map_of_set.clear(); map_of_set.insert(test,9,10); //This gives compilation error [/code] kindly help Software Development c++ | |
I have a script with a wx.Python GUI that monitors game files for changes and then makes a .tar.gz backup of each turn. If I run the test script (.py extension) the program works well and I can play the game without noticing the python script running in the background. … | |
I keep hearing that Python is about as slow as Java. Does anybody have experience with speeding things up? Software Development python | |
This program needs to read the infile and calculate the temperatures for each function. I can only get it to output 0's. Can someone explain the steps needed to make this code work correctly? What am I missing? Should I be passing by reference? If so how?? [ICODE]#include <iostream> #include … Software Development c++ | |
Hey guys, I'm parsing this WaveFront .obj file, still (for those that have read the previous post), but it has some really weird error in it that I haven't seen in a program before. The parsing algorithm starts out like this: [code]Open the file in textmode. Get filesize Allocate buffer … Software Development algorithm c file-system | |
I have declared a vector with 3 Dimensions with the first code below. Then I have managed to push_back all the 3 dimensions so my vector is filled up like this: vector1[2][2][2] [code] typedef std::vector<string> String1D; typedef std::vector<String1D> String2D; typedef std::vector<String2D> String3D; String3D vector1; [/code] What I now need to … Software Development c++ | |
This one is on References. [url]http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/cplr110.htm[/url] in the above link (from IBM), they clearly mention that a reference to a (pointer to a reference ) is not allowed.They also say that a reference to other references is not allowed. However, when i tried out both these cases in code, it … | |
I am trying to create a program that will count and display the number of vowels, consonants, spaces and full-stops within a 50 character limit. There is one error that the compiler keeps bringing up and when i try to fix it by changing the text it creates more errors … Software Development c | |
I cant find anything wrong with my program, any suggestions? [CODE]#include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" int main() { int s, r, h, w, l, t, shape; string box; string cube; string cylinder; printf("Please enter the shape; "); shape = GetLine(); switch(shape) { case 1:cube();break; case 2:box();break; case … Software Development c | |
Dear Sir, Please tell me the way(code) of accessing another PC within LAN. Software Development visual-basic | |
Hello, long time no see... I've been getting along fine with Python lately and I just need to ask you a question: Is it possible to just write to, NOT OVER , an Excel file, in a certain area, using a certain python module?. This way results from an application … Software Development python | |
Hi all, I just wrote a small problem to check gettimeofday in a multi-cores environment. [code] int timediff(double fTimeQvs, double fTimeTcp) { int iTimeDiff; iTimeDiff = (((((int)fTimeQvs)/10000) - (((int)fTimeTcp)/10000)) * 3600) * 1000000; iTimeDiff += ((((((int)fTimeQvs)/100)%100) - ((((int)fTimeTcp)/100)%100)) * 60) * 1000000; iTimeDiff += ((((int)fTimeQvs)%100) - (((int)fTimeTcp)%100)) * 1000000; iTimeDiff … Software Development c++ | |
Can any one tell about the difference between the Abstract Class and Interface? Can abstract class replaces Interface? If all things can be done in Abstract class Why we need Interface? Software Development java | |
im a beginner in C sharp. im stuck with the following. i hope someone can get me on the track again. i want to add a validation for user input such as making sure the year of the yearTextBox is not greater than the current year +2. [CODE]private void yearTextBox_Validating(object … Software Development | |
Hi I need to find out if a specific cmd window is opened on the pc, and I need to hide it I looking for that cmd window by its name (cause i know it ) Ive used the EnumWindows with a callback function: [code] BOOL vFound=((::EnumWindows(mFindWindowOnlyByCustomTitle,0))); [/code] and this … Software Development c++ | |
I think I have a memory problem since this code keeps outputting large negative numbers. The file that it reads includes- lastname, firstname, identification number, then 5 decimal numbers. ZDoes anyone know what the problem is? [CODE]#include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; const int rows … Software Development c++ | |
Hi, I have an xml file, corresponding to an xsd. If there some tool, which would take this xml and xsd and give me an object. And also take the object and xsd and give me xml. I read about couple of tools like JAXB, xstrem and xmlBeans. The issue … | |
Hello again, I have the following situation: I have a script which allows the commands of several instruments. for some of them, their configuration is easy and simply launching the application with [B]os.system()[/B] or through [B]telnetlib [/B]allows me to do what I need. But I have stumbled across something which … | |
hello sir!!! i need the answer as soon as possible!! can you change this code and execute it using the JOptionPane... Please help me!!! You may send your answers to this address... <snip email> Thanks a lot!!! import java.io.*; [code=juva] public class ToyoradaII { public static void main(String []lyn) throws … Software Development java | |
Hi everybody, I want to save the what each attendee has written in chat window during the meeting. So, I need to access the chat object and get the writings of each user. To solve this problem, I think that I should write an software that knows which windows is … Software Development | |
Hi everyone, I am trying figure out is there a "more proper" way to show the multiple lowest values in an array. My array has 2 of the values that are lowest among the 8 values. I would like to know is there a way to show both of them … Software Development java | |
Hi all, I'm wondering if it is possible to convert an object reference to a string and vica versa? Thanks Software Development python | |
Hai friends, I'm stuck with a input validation where if nothing is entered and enter is pressed, then i need to display a message saying please enter some value. Software Development c++ | |
I am Mritunjay from India.I want to study C programming language.As I want to be a PHP developer.I have heard that one should know C before knowing PHP. How can I get daily classes for C? What is the initial step for it?I want to start with with abc of … Software Development c | |
I have a tree structure containing nodes and child attributes. Each node has got a unique key as an attribute.I have got the the value of the key and I need to access its parent node using this key. Please suggest the way to solve this problem. Regards, Dinil Software Development visual-basic | |
[ATTACH]6798[/ATTACH] i hv an interface sumthing like this. i/m using VB6 and i wanna find record in MS Access using find command button. firstly user will key in an employee number as a key to find that user record in MS Access. after that, the data will appear in the … Software Development user-interface visual-basic | |
I was spending a lot of time looking around this site to practice with beginner programs. I found one posted by sniper1. And, I tried to make it work. But, now am stuck! Can someone please tell me what is wrong with my code. Problem: 1. [SOLO] Write a program … Software Development c++ | |
Good Day! I'm working on my homework for the past 5 hrs now, i really need some help. I need to create a program that will generate a random point on the Panel. the problem is i cant seem to make the point appear on my panel. any help is … Software Development java java-swing | |
I mean I can use VB.net to make the same program..and If I want wep page services I can use asp.net......Can you give me some advantages using c sharp because I will start study now c sharp If is necessary | |
Is the best way to check for 2 words of same type in a string to make a stringtokenizer and story every word in an array then compare it in a for loop? seems like a hassle for comparing for same words i was wondering if theres a better way? Software Development java | |
This is just for my information and I don't really have much need for it... But, I would like to know anyway :D. #1. Is a for or while statement faster than one another? As in, if someone put a for would it be faster (application-wise, not when their typing … Software Development c++ | |
hello im using pascal with lazurus and i want to know if theres a way to make a batch file so that i can drop a windows 32 and convert it to linux / mac etc. im working with pleasant character darkbyte on cheat engine and im mostly a script … Software Development pascal | |
Hey, I'm just starting to learn C++ and I need some help with a header file. I'm using a Dummies Guide book and it says that I need to create a header file with the extension .h. SO I created a source file called header.h and put this at the … | |
Hello, I have seriously tried to work on this in different manners and now I am back to an infinite output. I have posted for the past 3 days and the responses have just been questions so I am not sure if this is something difficult but I really need … | |
Hey guys, An char* to string conversion looks to be generating a segfault. I'm pretty sure that's not it, but that's when GDB says it received one... Well, here's the, what I think, relevant code. If you think more code is relevant I'll post that too of course. Entity.h (objLocation … Software Development c++ | |
Hello, I have a C# GUI that is supposed to call a backend I have in a C++ CLI/CLR shared library. That library calls another DLL that was created by MATLAB, but I can't get the second DLL called... Is it a mistake to put the backend in a DLL? … | |
The idea of program is to change the images between them. Images here is stored in Icon Labels. If i click on image(label), i need to memorize this image, and change with the second image. Like a puzzle game. I can to return the last two clicked image, but when … Software Development java java-swing puzzle | |
Quick Question. For some reason I can't figure out how to get an array of structures if I am defining the size dynamically. I can do it for a pointer i.e [CODE] struct DB { string name; int age; string ice; }; //some lines DB* data1p; data1p= new DB[no1]; [/CODE] … Software Development c++ | |
When can you determine if you are using too many threads? Assuming I have complete control and mutex locks and what not, when does it slow my program down, rather than speed it up by splitting up processing into sectons and passing between FIFO queues. Thanks. Software Development c++ | |
I have a program that deals with anagrams and for the most part the program works but on a few of the words that should be it says that they aren't and one says it is and it's not. can someone help? [code=c++] #include <iostream> #include <iomanip> #include <string> #include … Software Development c++ ![]() | |
Help the error states: .cpp(31) : error C2337: 'count' : attribute not found referring to new[count] = value; as the problem. My code is the following: [code] int main() { int size = 20; new double[size]; for(int count = 0; count <= size; count++) { int value; cout << "Enter … Software Development c++ | |
Help, I still cannot understand why the following function will not write the change to my program correctly. For my other functions (add a record and delete record, it wrote all the records perfectly to the file, but for some reason when I go to update a record it does … Software Development c++ file-system | |
Hello, I'm currently helping a few ladies out setting up a dedicated server. I do not have physical access to this server. Since other people have had their hands in the server, I would like to attempt to construct a program to test several of ports to see if they … Software Development c++ engineering open-source | |
How would I add just the columns in this 2-dimensional array? [CODE]#include <iostream> #include <fstream> #include <iomanip> using namespace std; const int rows = 5; const int cols = 5; int main () { ifstream inData; int numbers[rows][cols]; int i,j; inData.open("data.txt"); while (!inData.eof()){ for (i=0; i<rows; i++) { for (j=0; … Software Development c++ | |
hi ppl im back here with a kinda major problem thing is i made this program for some company that sends letters or packages, and has 3 types of services: to send it the next day with priority, the next day but whithout the priority, or to send it in … Software Development c++ | |
When an object is instantiated, the constructor gets called ? How is this internally implemented ? Who Calls the Constructor ? Is it the OS ? | |
I am using a xbee rf transmission device and i have it connected to my pc via usb. As per the data of the device the information it recieves comes to the pc as it would be coming throgh a com port. I am now trying to create a program … Software Development c++ |
The End.