132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cwtliew

Hello! I'm practising 2d-arrays for my upcoming test so pls help! i cant figure out what went wrong :((((( Q: A factory has 3 divisions and stocks 4 products. An inventory data is updated for each division and for each product as they are received. The current inventory data is …

Software Development c
Member Avatar for cwtliew
0
95
Member Avatar for Fox5

Hey all, I'm trying to write a python networking program that is capable of recieving arbitrary files, as well as sending them. However, I can't really get it working, though occasionally a string seems to get through in tact. If someone could look through my code and maybe run it …

Software Development client-server python
Member Avatar for Fox5
0
82
Member Avatar for zandiago

Good day. My infile contains the following: [CODE] TFFTFFTFFTFFTFTFTFTFFF A33 TFFTFFTFFFFFTFTFTFFFFT Z27 TFFTFFTFFTFFTFTFTFTFFT X12 TFTT FTFFTFFFT FTFTFFF H44 TFFTFFTFFTFFFFTFTFFTFF Q19 FFFFFFFFFFFFTFTFTFFFFF D72 TFFTFFTFFTFF FFFFFTFFF W32 FFFTFFTFFTFFTFTFTFFTTT Y09 TFFTFFTFFTFFTFFTTFFTTT S44 TFFTFFTFFTFFTFTFTFTFFF G11 FFTFFTFFTFFTFTFTTFTFFF J21 TFFTFFFFFTFFTFTFTFTFTT K61 TFFTFFTFFTFFTFTFTFTFT M03 TFFTFFTFFFFFTFTFTFTFFT P24 TFFTFFTFFTFFTFTFTFFFFT N54 FTFFTFFTFT TFF FTFTFFF F33 TFFTFFTFFTFFTFTFTFTFFF Z21 TFFTFFFTTFTTFFTFTFTFTF V39 TFFFTTFTTFTTFTFTFTTFFF …

Software Development c c# c++
Member Avatar for zandiago
0
3K
Member Avatar for jliu66

Hi, my friends, I try to use csv module to input data in csv format but split does not work. Could you please help? The input data is 2 column data separated in comma as csv format. The code is following: reader = csv.reader(open('Indices.csv', 'r'), delimiter = ',') line = …

Software Development python
Member Avatar for BearofNH
0
259
Member Avatar for sreejithps

Hi, I created a python script and trying to run it as a windows service. In my script I am reading some data from a configuration file . My problem is , if I run the script in python editor it will work fine and when running the same as …

Software Development python windows-server
Member Avatar for BearofNH
0
1K
Member Avatar for Cecilia_notes

I have a ListView showing all the words from a file, the code is checking these words all the time to see whether they meet certain condition, or so, I would like the checkbox of that list item checked. I have 2 problems here: 1. How can I prevent the …

Software Development asp.net listview vb.net
Member Avatar for hollystyles
0
174
Member Avatar for donaldunca

I have small question: How can I create a random string from 'a' to 'z'? thank you!

Software Development c
Member Avatar for donaldunca
0
163
Member Avatar for Pareshja

Hi Guys, I am a newbie and need some help. Is it possible to extend the message box functions to include buton "Yes to all and "no to all" in vb6 Kind regards

Software Development visual-basic
Member Avatar for Pareshja
0
150
Member Avatar for jammy's

Hello can some one say how to use tracing in turbo c and to show the trace like we do manully is their any function how do watch options work plz say me i am a student and beginner in c guys help me experts professional and any one plz

Software Development c c# c++
Member Avatar for Fast
0
98
Member Avatar for manjusaharan

Hi All, I m creating a MDI from in c# and want to add a main menu control at design time.But the Mainmenu control is notactivated even if I m Selecting the MDI Form. Any one please Help me in getting rid of this problem. Thanx in advance.

Software Development c#
Member Avatar for manjusaharan
0
109
Member Avatar for jch

Please pardon the simplicity of this question, I kind of got thrown into these responsibilities at the last minute without training. I I need to move a file called status10.dat to a different directory using korn scripting. [code = korn] cp status10.dat* /cerner/d_p19/ccluserdir [/code] I only want to do this …

Software Development shell-scripting
Member Avatar for ghostdog74
0
98
Member Avatar for appuguy

Hi could you please tell me how to print array elements with spaces. Please provide an example. I would like to see how a 2 D array is printed.Thanks a lot

Software Development c
Member Avatar for Aia
0
114
Member Avatar for axn

excuse my ignorance, cant find it here in the forum. how do i strip the "|" or the pipe character from a line. i tried this. it splits but doesnt remove the "|" character. output = string.strip (line, '|') # strip the pipe character print output.split() # split output and …

Software Development python
Member Avatar for jrcagle
0
82
Member Avatar for adrive

guys, im trying to get bulleting to work. I've yet to see what's the output for this one, can someone help me out? It kept saying incompatible types between listtemplate, listlevel against variant types. But from all the examples i see on the net, the word document object is a …

Software Development delphi pascal
Member Avatar for adrive
0
389
Member Avatar for yagapapa

Hi All Im creating a financial ratio calculator project. After calculating ratios there is a button that gives the users the option to perform another ratio calculation... Initially i used this: controlname.text = "" but then that is not effective, because when try to calculate ratios still in the same …

Software Development session vb.net
Member Avatar for yagapapa
0
80
Member Avatar for jayrads

Hi all, Have a question regarding an assignment. In a previous assignment we had to implement a program that allows us to enter a system of connected caves within an underground labyrinth. How this is implemented shouldn't matter for this next assignment though. In this assignment, we have to use …

Software Development c++
Member Avatar for zandiago
0
170
Member Avatar for hectic

hi i have used the template in my simulation program but it generate the error, my program line of code that generate the error is (these code are in queue.template file) template <class QueueItem> queue <QueueItem>::~queue() // [B]line25[/B] { } template <class QueueItem> void queue<QueueItem>::push(const QueueItem& entry) //[B]line 42[/B] { …

Software Development c++ queue
Member Avatar for hectic
0
424
Member Avatar for Duki

I'm getting an error in main() saying TitledEmployee is an undeclared identifier? [code=c++]#include <iostream> #include <string> using namespace std ; namespace Employees { class Employee { public: Employee ( ) ; Employee ( string theName , string theSsn ) ; string getName ( ) const ; string getSsn ( ) …

Software Development c++
Member Avatar for Duki
0
91
Member Avatar for danielle2

I have been given a problem that asks me to do the following things. Write a program should be stored in two dimensional array. The program must include the following 1. list 4 qtrly sales for 6 divisions of a company. 2. show each division increase or decrease from the …

Software Development c++
Member Avatar for Lerner
0
318
Member Avatar for theteamdrunk

I am trying to write a program that has to create a structure that has one variable called value and one pointer to the list(making it a linked list). It need to prompt the user for 5 values and store them into the linked list, then print out the list. …

Software Development c linked-list
Member Avatar for Duoas
0
102
Member Avatar for DREAMER546

hi .. please can anyone help me with this .. i need it today i wanna to do swith with this .. can i or not? if ( x>y ) cout<< " x is bigger "; else cout<< " y is bigger "; -- and i wanna to do conditional …

Software Development c++
Member Avatar for DREAMER546
0
120
Member Avatar for Grub

Hi, I am wondering if there is a more graceful manner in which to clear the console window previously printed values apart from using a loop in which the println(); is repeated. Many thanks.

Software Development java
Member Avatar for jwenting
0
70
Member Avatar for hasfoot

I am very new to C++ and am taking a beginners course in college. We have a project due this coming tues. and I am stuck, I was wondering if you could please help me. Background on proj: I am working in the circulation dept of a magazine, and it …

Software Development c++ file-system
Member Avatar for Lerner
0
167
Member Avatar for Phanta

Hello, I'll get straight to the point. I'm making a program which lets you enter a row of characters, finds words in that row (words are characters separated by spaces) and output them in another row in alphabetical order. Firstly I wrote this: [CODE]Program ...; Uses crt,sysutils; const MAX = …

Software Development pascal
Member Avatar for Duoas
0
163
Member Avatar for gerik

I've been trying to work out this error with packages, changing the classpath name in a number of different ways (using set, declaring it in the javac command), but I always get the following errors when I try to compile the following code: import kalut.*; import java.lang.Math.*; public class Koetesti …

Software Development java
Member Avatar for Ezzaral
0
129
Member Avatar for ecestd1

how do you implement a copy constructor for this pointer-based ADT queue [code] #include "Queuep.h" #include <cassert> #include <new> using namespace std; Queue::Queue () : backPtr (0), frontPtr(0) { } Queue::Queue(const Queue& Q) throw(OutOfStorageException) { //implement here }//end copy constructor Queue::~Queue() { while ( !isEmpty() ) { dequeue(); }//end while …

Software Development c++ queue
Member Avatar for ecestd1
0
1K
Member Avatar for sarwar

Hi, I am seeking your help on following pthread_create issue on linux OS. The senario is I have a main program which generates new child threads on user request.The new child executes a module and closes. It is working perfectly if there are less then 245 new threads after that …

Software Development c peer-to-peer session
Member Avatar for Salem
0
178
Member Avatar for abar_sow

can anyone tel wat error i made in the below code..I want to assign the list of strings stored in one variable to one string array.wordlist contains list of variables. [code] for (int s=0; s <=wordlist; s++) { String wordlisting[s]=new wordlist; System.out.println(wordlisting[s]); } [/code] [U]error[/U] D:\program files\Java\jdk1.5.0\bin>javac Main.java Main.java:86: ']' …

Software Development java
Member Avatar for Ezzaral
0
114
Member Avatar for appuguy

Sample Input:o 0 4 0 5 0 8 0 7 0 Press any key to continue . . . This is what I have so far for the code [ [code=c] #include <stdio.h> #include <stdlib.h> #define ARRAY_SIZE 81 int nArray[ARRAY_SIZE]; /*Function prototypes */ void PopulateArray( int nArray[9][9]); void PrintArray(const int …

Software Development c
Member Avatar for WaltP
0
255
Member Avatar for navy2005

Im doing a program that asks to enter a student's grades on four exams, I have to display the four grades and the average of the four grades, to the nearest tenth. The most problem im having is using the variable call total_grade which i have to initialize to zero. …

Software Development c++ ios
Member Avatar for navy2005
0
275
Member Avatar for tnvkrishna

is the syntax used below is correct? [code=cplusplus] class zz { private : string s; //constructor private: friend zz operator-(zz z); //assume definition of operator<< }; //constructor //operator<< zz operator-(zz z) { string s; s=z.s+"hello"; return zz(s); } int main() { zz a("fsd"); cout<<(-a); } [/code] i am new to …

Software Development c++
Member Avatar for Duoas
0
152
Member Avatar for cmoodc

given the equations is it possible to develop midpoint algorithm for: hyperbola :ellipse :parabola :circle ??

Software Development algorithm c++ opengl
Member Avatar for twomers
0
119
Member Avatar for parthiban

Hi all, I'm learning Serialization in JAVA . I learned that [B]"an array object is serializable as long as the things in the array are serilizable"[/B] . [COLOR=Green] I just need a clarification on that statement[/COLOR] . To understand that concept I myself coined a simple program . Here it's …

Software Development java
Member Avatar for parthiban
0
103
Member Avatar for parthiban

Hi all , [U]Here are my questions :[/U] I like to know when to use Serialization and when should the preference will be given to Database to persist an Object . To use a database with Java at what level a programmer should be good in Database ? what are …

Software Development java
Member Avatar for parthiban
0
108
Member Avatar for anirudhbsg

hi there ... i am programming in dev c++ although it is very similar to tc++ but there is a certain difference between the two. so does anyone has an ebook on it or a link of any such ebook..... my email address is [i]removed[/i]

Software Development c++
Member Avatar for anirudhbsg
0
94
Member Avatar for hawisme000

hello every1, it really makes my mind :confused: about converting sytaxes especially when converting DAO coding to ADO.. for example in making a Login form, usually you can see sample Login form in the net, but most of them is made of DAO, and i cant use DAO ,since im …

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
76
Member Avatar for dilasing

Hi I am Dilawar Singh from IBM. I noticed some threads listing issues related to XML database management. We have a great product called pureXML, an excellent feature of DB2 9 that provides new data type to store the XML data. Anyone interested in knowing more, or has any questions …

Software Development xml
Member Avatar for dilasing
0
108
Member Avatar for chunchuwar

Dear all, I have written a small script which will send me mail on status of server. I have tested it working fine. I am facing only with message subject The last part of my script is as below, cat dailystatus.txt| mail -s "Daily Server Status Report-$yr-$mm-$dd" [email]root@ecms.co.in[/email] The script …

Software Development shell-scripting
Member Avatar for chunchuwar
0
105
Member Avatar for people123

So after a day or two of trying i finally found out how to do this, my question is, is there any way to do this that is more efficient without using the prime function? [code]#include <iostream> using namespace std; int main() { std::string line; int i, p, x; for(i …

Software Development c++
Member Avatar for WaltP
0
147
Member Avatar for spick

I have to write a code with netbeans for my homework and this is what I need to do "please create Main.java to test the Account class. In the main() method, create an Account object named myAcct with an account ID of 1122, a balace of $20000, and an annual …

Software Development java java-netbeans
Member Avatar for spick
0
135
Member Avatar for iron_man08

Hey I need help with creating this program. It's supposed to take the values I've assigned in int[]A and put them into int[]C in order from least to greatest (for example, C[0] would be 1, C[1] would be 3, etc.) Yes, this is a homework problem, but I've been trying …

Software Development java
Member Avatar for nschessnerd
0
121
Member Avatar for Barefootsanders

Hey everyone, I'm using Dev-C++ to compile the following program. It's simple but for some reason its not working. [CODE] #include <stdio.h> #include <unistd.h> int main() { int n, fd[2], pid; const int MAXLINE = 4096; char line[MAXLINE]; if(pipe(fd) < 0) { printf("Pipe error"); } if((pid = port()) < 0) …

Software Development c
Member Avatar for Duoas
0
318
Member Avatar for theteamdrunk

I need to add prompts for the number, integer and character inputs separatly instead of all at once. I want it to say "enter a number" wait for input, "enter an integer" wait for input and "enter a character" wait for input. Then it is suppose to combine the inputs …

Software Development c
Member Avatar for Duoas
0
122
Member Avatar for phalaris_trip

Hi guys, How do I pass arguments into into the constructor if I'm using new to creat an array of objects? So for example: CParticle* parts; parts = new CParticle[100]; parts is declared globally, but initialised later on in the code.. my lecturer suggested this strange syntax: parts = new …

Software Development c++
Member Avatar for Duoas
0
2K
Member Avatar for DemonSpeeding

[code] if (decision == "B" || decision == "b"){ for (k =0; k < rows; k++){ for (m =0; m < cols; m++) switch (image[k][m] = image[k][m] + brightcount) { case '0' : cout <<" "; break; case '1' : cout <<"-"; break; case '2' : cout <<"="; break; case …

Software Development c++
Member Avatar for Duoas
0
148
Member Avatar for jliu66

Hi, I have a question ask you or expert. Can python's function return a class at the end of function definition. The class have only a set of data members like struct in C. Please help and thanks in advance. Any good reference on this topic? John

Software Development python
Member Avatar for jliu66
0
13K
Member Avatar for appuguy

Hello I need help with a C program that I solves Sudoku puzzle. I am suppose to write two functions one to populate the arrays from the user input. This function should take as parameters the arrays to fill.Second function to print the 9 by9 array passed to it.This function …

Software Development c puzzle
Member Avatar for Ancient Dragon
0
107
Member Avatar for Artis_Croatia

Hi to all I need help with this program, i have problem, i must write it out from left to right not from right to left, but i do not know how to do it, when i change something in program, than it is not working :( here is the …

Software Development c++ pascal visual-studio
Member Avatar for zandiago
0
94
Member Avatar for dabu

Shouldn't [I]continue[/I] in my [I]else[/I] statement return me to the top [I]do...while[/I] loop and print the following again? [code] #include <iostream> #include <string> using namespace std; int main() { double withdraw, deposit, balance, newBalance, amount; char ans; string choice; balance = 1000; cout << "Welcome to Whatever ATM!" << endl; …

Software Development c++
Member Avatar for dabu
0
126
Member Avatar for Ccrobinson001

This is my first time posting an I need some quick help. I need to get this program to work for two players. once Player 1 loses Player 2 gets their turn. the program works fine just can't figure out the while loop for 2 player. [code=cplusplus] /* header files …

Software Development c++
Member Avatar for WaltP
0
270

The End.