132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for alex55

So i have a string say string A = junk#crap i want to separate it to separate strings b=junk c=crap how would i go about doing that while throwing out the #?

Software Development c++
Member Avatar for alex55
0
148
Member Avatar for fallen_prisoner

hi i am new to programming and have had problems installing C++ on vista. Is it possible to get C++ working on vista or will I need to switch back to XP or ubuntu? Does Bloodshed work on vista?

Software Development c c# c++ ubuntu
Member Avatar for asmail2020
0
177
Member Avatar for python01

whenever i want to use urllib or urllib2, i get this error IOError: [Errno socket error] (10035, 'The socket operation could not complete without blocking') i have tried googling it yet i havent found anything helpful any help is apreciated, python 01

Software Development python
Member Avatar for python01
0
169
Member Avatar for David_Omid

This is a section of code: [CODE] this->SquareImage1->Visible = false; this->SquareImage2->Visible = false; this->SquareImage3->Visible = false; this->SquareImage4->Visible = false; this->SquareImage5->Visible = false; this->SquareImage6->Visible = false; this->SquareImage7->Visible = false; this->SquareImage8->Visible = false; this->SquareImage9->Visible = false; this->SquareImage10->Visible = false; this->SquareImage11->Visible = false; this->SquareImage12->Visible = false; this->SquareImage13->Visible = false; this->SquareImage14->Visible = false; this->SquareImage15->Visible …

Software Development c++
Member Avatar for David_Omid
0
99
Member Avatar for JOSheaIV

Okay I am working on a group project in class and I have to learn XML for it, would anyone be able to point me in the right direction. If I recall right we are using XML to communicate with a flash program we're building. ALso if anyone knows anything …

Software Development flash xml
Member Avatar for iceandrews
0
100
Member Avatar for ITStrawberry

Hello guys, Can someone help me? I have a scanned document in my system. It's a tiff file. You will see below the code i have written. The problem is that i get an error message. The message is like this "A Graphics object cannot be created from an image …

Software Development image vb.net
Member Avatar for codeorder
0
140
Member Avatar for jems5

I would like to sort a list (from a text file "sales.txt")that has text, int and float values. The problem I have is, my output only produces the last set of values. I would like to produce a table with as the final output. Please help me. [CODE]public class Sales …

Software Development java
Member Avatar for jems5
0
164
Member Avatar for arsnic

Hey guys (and girls) I'm not new to C++ but it has been a while since I've used it. I'm having an issue that I can't seem to place my finger on. I have the two bits of code below. The first comes out fine, or as I expect the …

Software Development c++
Member Avatar for arsnic
0
223
Member Avatar for eddster10

Ok wild stab in the dark as i am new to this. I am trying to sutomate an FTP from UNIX box to another UNIX box. Further to aumating an FTP, the file needs to be renamed and a small amount of editing which is the same editing each time. …

Software Development shell-scripting unix
Member Avatar for martin8484
0
95
Member Avatar for sahil1991

hi, i know structures are basically used for holding data members whereas classes can hold both functions and data members. but contrary to the definition of structures can they also hold functions?? i read that they can but there wasn't any explanation about it. hopefully,some of few can come up …

Software Development c++
Member Avatar for sahil1991
0
107
Member Avatar for gedas

hey guys, i am looking for source code as simple as possible that would be able to represent the shape of the human body in 3d (it could be almost stick man like or preferably something like this [url]http://www.3dlinks.com/oldsite/tutorials/GENERAL/chapter6_1.cfm[/url]) i would like to use for further development such as a …

Software Development java
Member Avatar for gedas
0
449
Member Avatar for Fbody

I have a couple of template classes "Stats<T>" and "Numerical<T>" within a "Statistics" namespace. The Numerical<T> class inherits publicly from Stats<T>. They are defined as below.[CODE] namespace Statistics { //declare Statistics namespace template <typename T> class Stats { protected: vector<T> dataSet; //contains the actual data set to be analyzed /* …

Software Development c++ data-structure dataset
Member Avatar for Fbody
0
93
Member Avatar for doctorjo5

There are already 2 checkboxes to change to bold and italic. Now I want to make four radio buttons to change the font of the saying "say it with style!". Below is my code. [CODE]//******************************************************************** // StyleOptionsPanel.java Author: Lewis/Loftus // // Demonstrates the use of check boxes. //******************************************************************** import javax.swing.*; …

Software Development gui java java-swing
Member Avatar for kramerd
0
2K
Member Avatar for boiishuvo

When I tried to compile this code, it has one error says ThreadsDemo.java:37: 'else' without 'if' else { ^ I don't know what's wrong with that exactly? [CODE]import java.util.*; class A extends Thread { private static int counter=0; private final int id=++counter; A() { start(); } public void run() { …

Software Development java
Member Avatar for JamesCherrill
0
89
Member Avatar for girlzone

Hello all, I have a question: What are the advantages & disadvantages of the circular linked list compared with: a. Usual linked list b. Doubled linked list Although the implementation of the usual list functions & the circular list functions are similar…when do we have to use it?? or in …

Software Development c data-structure linked-list
Member Avatar for Martin B
0
589
Member Avatar for agaba

This is my Code #include<iostream> using namespace std; struct BankAccount { int accountNum; double accountBal; double rate; }; int main() { const int ACCOUNT = 5; BankAccount info[ACCOUNT]; int sub; double balTotal = 0; double balAverage; int accountNumber; bool isFound = false; for(sub =0; sub<ACCOUNT ; ++sub) { cout<<"Enter Account …

Software Development c++
Member Avatar for agaba
0
105
Member Avatar for Dean_Grobler

Hi there, In the code below my ImageIcon isn't showing when I run the program. I always struggle with adding Images in my GUIs and it's irritating. Is there some all important rule that I should know or something? [CODE] //Create window Components JLabel lblrequest = new JLabel("Enter amount of …

Software Development gui java
Member Avatar for JamesCherrill
0
4K
Member Avatar for alex55

i need to write a program that takes this style of input Enter customer name: Kristopher Ann#Nugent and seperates the name to look like this Customer name: Nugent, Kristopher Ann so far i have decided to separate the name into 3 separate character strings but i can only get two …

Software Development c++
Member Avatar for alex55
0
324
Member Avatar for Mega brains

I am developing a java application that should run entirely from a CD. I should not install anything on the machine but now I am in need of a database. Is there any DB that I could use to sort out my problem? Thank you.

Software Development java
Member Avatar for Ezzaral
0
77
Member Avatar for jimlaver

Hello to all and thank you for your attention. I need to do a few programs using Turbo C 3.0, but I have a problem when I use it on my notebook (running on WinXP SP2). It starts OK: it goes into MS-DOS mode (fullscreen) and all seems good, but …

Software Development c
Member Avatar for varshini gowda
0
146
Member Avatar for dalip_007

Hi Guys I require a Java applet (and web service on server) permitting upload of large files to the server. Client side: The applet UI should simply permit selection of a file for upload from the local directory structure. The server URL will be hard-coded in the applet. When the …

Software Development client-server file-system java web-server
Member Avatar for dalip_007
0
155
Member Avatar for jemimaloh

Hi there. I am currently trying programme my code[COLOR="Red"](P)[/COLOR] to lookup a hashtable from another class[COLOR="Green"](F)[/COLOR]. IS that possible? Given that the hashtable is in the main method of [COLOR="Green"](F)[/COLOR]. Should I apply a toString() in [COLOR="Green"](F)[/COLOR] and make it a String variable before I call it into[COLOR="Red"](P)[/COLOR]? If I …

Software Development java
Member Avatar for jemimaloh
0
524
Member Avatar for ali_zdn

[code] List<object> ap = new List<object>(); [/code] my object classes are the classes that i have created. for example; [code] class istanbul { public istanbul(string a , int b) {this.a = a ; this.b = b ; } public string a ; public int b ; } ap.add(new istanbul("dsklfjsf", 12)) …

Software Development c c# c++
Member Avatar for Geekitygeek
0
172
Member Avatar for ja0

I am having an error using the following code, [CODE]DataView dtView = new DataView(dt); columname = "ItemNo"; Cond procedure = Cond.checknum; //I had a public enum Cond { checknum, checkspace } procedure.Equals(null); //Null because I am changing the procedure below in the program List<string> Mapcol = new List<string>(); foreach (string …

Software Development
Member Avatar for Momerath
0
876
Member Avatar for PaulStat

I'm trying to use pythons logging.handlers.SMTPHandler with a configuration file (so that I don't have to have passwords etc. inside of the script) Now the guide I'm following is [URL="http://docs.python.org/library/logging.html#configuration-file-format"]here[/URL], now the RotatingFileHandler is working, but I never receive an email, or an error for the SMTPHandler. Anyway here's the …

Software Development python
Member Avatar for Gribouillis
0
1K
Member Avatar for michrob15

I am a brand new programmer (took a semester of it during the winter at college) and it really kicked my butt. I want to major in computer science, so i know that i'll be taking a lot of programming classes and will need to better all of my skills. …

Software Development c
Member Avatar for Schol-R-LEA
0
144
Member Avatar for AirGear

I want to add sound in my Java program. I searched in Internet, and what I found was only how to add sound to java applet. Isn't there any way to insert sound into the desktop application java? Thanks in advance Regards, AG

Software Development java
Member Avatar for AirGear
0
141
Member Avatar for fisch

Hello, it is necessary to create a callback function to handle the messages of an windows dialog box. The DialogBox() Function call requires a function pointer to this callback function. If I don't use classes my sample code works fine but when I try to encapsulate my code in classes …

Software Development c++ gui
Member Avatar for ashish.maske
0
1K
Member Avatar for keskor

Hello guys we've been given this project at skul to create a chess game using c++ , so what i have in mind now is as follows: i need to create different classes ,lyk i need a king,queen,horse and the other classes bt i don't know which one will be …

Software Development c++
Member Avatar for csurfer
0
812
Member Avatar for ftl25

Hi. I have just downloaded infozip for integration with some of our vb6 software. I got it working however, when I check the zip folder, I see that a directory structure has been created for each path contained in the filenames. E.g., I have a list of files as follows: …

Software Development visual-basic
0
83
Member Avatar for poojabi

can any one give a slight hint about the alogirthm to evaluate a prefix expression using queue.i tried a lot bt now atthe dead end,

Software Development c queue
Member Avatar for Schol-R-LEA
0
1K
Member Avatar for eri24

i'm new to c++, but am taking a intro to computer science class. we have to write a 2 player game. Game Rules: There are three stacks (A, B and C) of sticks on the table. Each stack is initialized with a random number of sticks between 3 and 10 …

Software Development c++ gaming
Member Avatar for eme21
0
171
Member Avatar for sakurayana

hye friends..... i need your help.....does anyone know how to select 2 databases simultaneously?i want to select certain data from database 1 and database 2.please help me for this....thanks in advance....

Software Development sql
Member Avatar for destruct0
0
86
Member Avatar for Suzie999

Hi. I need to check a folder for the existance of a specific file extension. I've been successful checking for a full filename including extension, but Its just any instance of a filetype I'm after. My question is, Is there an existing method in a library anyone knows about that …

Software Development c++
Member Avatar for Suzie999
0
91
Member Avatar for python01

hi all, im fairly new to python and am struggling to find out how to read javascript values from a site. Help is much appreciated. thanks, Python01

Software Development java python
Member Avatar for python01
0
276
Member Avatar for dustbunny000

Say I have two lists: list1=[a,b,c,d,e,f,a,b,c] list2=[a,c,d] How could I compare list1 and list2 such that I would get an output like: list3=[match,-,match,match,-,-,-,-,-] So that it goes in order Here's my code: [CODE]h=[] for i in range(len(change2)): for j in range(len(atom)): if atom[j]==atom[i]: h.append("H") else: h.append("-") print h[/CODE] Both change2 …

Software Development python
Member Avatar for Gribouillis
0
127
Member Avatar for airy joy

Please heLP me in my finAl pRojEct pLLZz,,guyZz!!!All about C program in quincy that reads the year and day of the week of the first day of the year.Then the progrAm prints the calendAr for that year.Allow the user to pause for each month of the year.Note also for the …

Software Development c
Member Avatar for Software guy
0
117
Member Avatar for pentagenius

Hi all, I am having a problem with threads as demonstrated below: I have four very small and simple files. They are as follows: [CODE] 1) public class MainClass { private static SchedulerTest sch = null; public static void main(String[] args) { try{ sch = new SchedulerTest(); ThreadController tc = …

Software Development java
Member Avatar for ashams001
0
195
Member Avatar for rv_mup08

hello i need help about getting the Unique characters from inputed String.. in Turbo Pascal...thanks in advance! Sample Output: Enter a String: Mississippi Unique Characters: Misp any clue or ideas...or simply the code... :-)

Software Development pascal
Member Avatar for Wolfgan
0
103
Member Avatar for The physicist

Hi - I'm trying to get the filename and path of a file I'm opening with the OpenFileDialog in Visual C++. I can open and display the contents of the file OK, but I'm having problems accessing the filename and path, I guess they're stored in a structure somewhere? Code …

Software Development c++ display
Member Avatar for The physicist
0
522
Member Avatar for burcin erek

[CODE]#include <cstdlib> #include <iostream> #include <conio.h> using namespace std; void x(); void x(char); void x(char,int); void x(char,int,char); void x(int); void x(char); int main(int argc, char *argv[]) { x(); x('B'); x('E',30); x('B',30,'E'); x(10); x('V'); getch(); } void x() { for(int j=0;j<50;j++) cout << '*'; cout << endl; } void x(char xx) …

Software Development c++
Member Avatar for burcin erek
0
117
Member Avatar for drummer123

This is Homework related. I've been struggling in this C++ class for some time now and my teacher basically hands us the book and says learn it and will not help or assist... and sometimes i can manage to get something that runs but this one takes the cake... i'm …

Software Development c++
Member Avatar for Schol-R-LEA
0
128
Member Avatar for kchadek

Ok so I'm brand new to programming and Java so go easy on me. The assignment is to take fractions and do all the operations to them, add, subtract, multiply, and divide. We are also required to do this with a test file and then the actual file. So far …

Software Development java
Member Avatar for kchadek
0
89
Member Avatar for Metsuba

[CODE]using namespace std; #include <iostream> #include <fstream> #include <string> #include <cstring> int main() { ifstream InStream; string InFile; string InToken; cout << "Please enter the filename: " << endl; cin >> InFile; InStream.open( InFile.c_str(), ios::in ); if (InStream.fail()) { cerr << "Unable to open '" << InFile << "' for …

Software Development c++ file-system ios
Member Avatar for Metsuba
0
75
Member Avatar for Radio2006

I am trying to start this java program using the requirements below, but I have no idea where to start. Just so you guys know, I am just starting out in this language. i have experience in Javascript programming, but this is completely different. I am used to Java programs …

Software Development java oop
Member Avatar for Radio2006
0
247
Member Avatar for NV43

I'm having a few issues with my code and trying to figure out the last problems with it. It would be a great help if someone could look this over and guide me in the right direction. This program is basically supposed to take the entered date, and tell you …

Software Development c++
Member Avatar for NV43
0
148
Member Avatar for charat

So i am a college student and my assignment is to create a code that determines if an entered number is a palindrome or not. the assignment is as follows: "Write the following two methods: //Return the reversal of an integer, i.e. revers(456) returns 654 public static int reverse(int number) …

Software Development java
Member Avatar for weathernerd1990
0
3K
Member Avatar for Ana_Developer

I am using hash_map<string, Word *> dict to store my Word objects. Each Word is a class that inherits from my Node class. The value in the label variable in the Word class is read from a text file. Once I start adding the objects to the dict structure, I …

Software Development c++
Member Avatar for Ana_Developer
0
223
Member Avatar for Talguy

Does anyone know of an web based programming utility where I can program C++ in a web page and have it compile on my remote server. I run an LAMP server

Software Development c++ web-server
Member Avatar for Ancient Dragon
0
540
Member Avatar for chamnab

WHO know the best C++ Compiler for window 7 64 bit ?? thx for reply

Software Development c c# c++
Member Avatar for alex55
0
153

The End.