43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for masa

Hi when I was looking on some thread, a question :?: comes to my mind, when you have a file like the one Log.csv from Aldin post, do you need to put it in a dynamic array to get the max and the min and the date..etc. or you can …

Software Development c first-post
Member Avatar for masa
0
203
Member Avatar for Aldin

[qoute] If you have a folder called Data in your C drive, in Data folder there are day_01.txt, day_02.txt ,……………………day_30.txt . you need to build a program that called the file according to it previous date, so if the date 2/10/2005 you have to call and open file day_01.txt. Notice1: …

Software Development c
Member Avatar for masa
0
463
Member Avatar for TimC

I am having a small problem removing ALL items from a linked list. I have written a function that will remove all discharged patients from the linked list. [code] [COLOR=Red] for(int a=1;a<(S.size()+1);a++) { int x=S.retrieve_status(a); if (x==5) { S.remove(a); } }[/COLOR] [/code] in this function I check to see if …

Software Development c display linked-list
Member Avatar for TimC
0
190
Member Avatar for juergenkemeter

Hi there, Here is a (hopefully) convenient description of my situation: - I have a main folder, containing several subfolders. - Every (sub)folder contains one or more .xls - Workbooks. - Every Workbook contains one or more different Spreadsheets. - The workbooks contain some cells which have Hyperlink addresses to …

Software Development postgresql python
Member Avatar for bumsfeld
0
187
Member Avatar for k_en

I can do a control loop like this in C++ [CODE]int case =0; while( case<0 && case>20){}[/CODE] How am i suppose to implement this in Python? I didn't get any errors if i wrote this, the problem is it doesn't enter the while loop when case<0 and case>5 [CODE] while …

Software Development python
Member Avatar for bumsfeld
0
143
Member Avatar for k_en

Do anyone know why i got this error ? Do i have to import anything in order to use string.lower() & string.upper() ? [CODE][color=RED]sentence = "how are you" newS = string.lower(sentence) NameError: name 'string' is not defined[/CODE][/color]

Software Development python
Member Avatar for k_en
0
186
Member Avatar for Micko

Hello friends, I just want to say that last week a got a job. Since I'm electrical engineer I got job in nearby Thermal power plant. Now, I don't have spare time anymore as I used to have, and I guess it's time to quit my hobbies. Sometimes I'll be …

Software Development engineering python
Member Avatar for vegaseat
0
165
Member Avatar for TimC

[COLOR=Red]Dear All, If i run the code below it will let me input a name. "John Doe" but it will only print out "John". I know how to create a char array[] and I also know how to use cin.getline but can the char array be used with the doctor …

Software Development c++
Member Avatar for SpS
0
161
Member Avatar for bucodi

# Other field creations here.... self.Sfield1 = wx.TextCtrl(id=wxID_SEARCHBROWSERSFIELD1, name=u'Sfield1', parent=self, pos=wx.Point(144, 80), size=wx.Size(216, 21), style=0, value=u'') self.Sfield1.SetToolTipString(u'') self.staticText1 = wx.StaticText(id=wxID_SEARCHBROWSERSTATICTEXT1, label=u'Customer N\xb0', name='staticText1', parent=self, pos=wx.Point(32, 80), size=wx.Size(83, 16), style=0) self.staticText1.SetForegroundColour(wx.Colour(255, 255, 255)) self.staticText1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL, False, u'Verdana')) self.staticText1.SetToolTipString(u'') self.staticText1.SetBackgroundColour(wx.Colour(0, 0, 128)) [B] self.Sfield1.SetFocus()[/B] [B]Why isn't the focus set to …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for TimC

Below I have attached 4 methods from my linked list class. 1) find 2)remove 3)retrieve 4) Insert. what I'm trying to do is write code that will let me MOVE the position of a node to another position in the linked list. Anyone got a clue?? regards Tim [code]SeqItemType Sequence::retrieve(int …

Software Development c linked-list
Member Avatar for TimC
0
141
Member Avatar for shanenin

I have a very simple plugin I wrote for freevo. below is the plugin. it will shutdown your computer after your avi file has finished playing, kind of like a sleep timer. [code] #!/usr/bin/env python import os import time import commands import thread import plugin from gui.PopupBox import PopupBox from …

Software Development gui python video
Member Avatar for shanenin
0
3K
Member Avatar for TimC

Dear all, when i run the prog below it works fine when I input an integer but if I enter a char by mistake the output to the screen goes mad. what i want to do is write a piece of code that 1) if char input then print to …

Software Development c++
Member Avatar for TimC
0
163
Member Avatar for bucodi

I'm new to Boa constructor (not to Python) and seem to have a litle problem. It looks to me as Boa creates the focus order in the same order as you create visualy your form. If that is the case, what do you do when you forgot a control and …

Software Development python
Member Avatar for vegaseat
0
141
Member Avatar for TimC

Dear all, I am in the process of writting a hospital/doctor prog. I have the majority working. BUT the program will only work ONCE. when I run the prog and input patient details (No.1), the details are inputed correctly. when I choose (No.5) I am able to correctly input the …

Software Development c++
Member Avatar for winbatch
0
289
Member Avatar for Micko

Little, by little my calculator is getting a look I want. However, I find that using Tkinter is not very intuitive, and i cannot find detail documentation. have a look at this [code] # menu-example-2.py #from Tkinter import * #root = Tk() #def hello(): #print "hello!" ## create a toplevel …

Software Development display python tkinter
Member Avatar for bucodi
0
316
Member Avatar for C++ programer

Dear all; i have a problem with functios. i have a program to write using struct in functions with arrays also. i have the program written in structes with array but not using the functions and i don't no who the do it with functions. if anybody acn help i …

Software Development c
Member Avatar for jim mcnamara
0
138
Member Avatar for Nedals

I'm really new to C++, but not to programming, and don't really know what I'm doing. I had a bunch of programs working OK. Then I was messing with a window application and all my window programs would no longer compile. I get the following error (same for all projects) …

Member Avatar for Nedals
0
385
Member Avatar for TimC

Dear all, I have a prog working and printing to screen. But as my program has grown i.e class/method definitions I need to tidy up my main(); my problem is with printing my results to the screen. [COLOR=Red]///this will print out to screen perfectly. note i left out the class/method …

Software Development c++
Member Avatar for WolfPack
0
164
Member Avatar for ilikerps

Hello, I am having trouble with arrays. Basically, this is what happens: [code] vector <char*> constArray(10); char* changingString = "hello"; constArray[0] = changingString; changingString = "hi"; printf("constArray[0] = %s\nchangingString = %s", constArray[0], changingString); [/code] Output: constArray[0] = hi changingString = hi So, I think constArray[0] is changing because it points …

Software Development c
Member Avatar for ilikerps
0
122
Member Avatar for TimC

Ref Polymorphism: I am trying to get the method `calculate_pay()` to work. As each type of doctor will have a differnt payrate I am trying to call the calculate_pay() but i am having difficulty. Should it be int doctor::calculate_pay() { return (doctor::get_Payrate()*hours); } will this line return each type of …

Software Development c++
Member Avatar for TimC
0
172
Member Avatar for TimC

dear all, when I try and compile the following code I am recieved a linker error. Can some one steer me in the right direction. Also are my use of the virtual statments correct? many thanks tim #include <iostream> #include <stdlib.h> #include <string.h> using namespace std; class doctor{ protected: string …

Software Development c++
Member Avatar for WolfPack
0
102
Member Avatar for fili00

hey everybody, I just wanted to know how I can print out with awk or others only one line and not a whole column what is made by print$1. I have a data which contains 205 lines and I want for example only the 6th line. I tried with this …

Software Development shell-scripting
Member Avatar for fili00
0
196
Member Avatar for ban26ana

I don't really understand arrays. I'm getting myself quite confused here. I have to answer a bunch of questions regarding a 2x3 integer array t. Here are the questions that I'm still having a problem with: 1. Write a nested for structure that initializes each element of t to zero. …

Software Development c
Member Avatar for SpS
0
115
Member Avatar for ilikerps

How does one reset an array, to make it retain its size but get rid of all data it has stored? Would one do it by setting all the array values to '\0'?

Software Development c
Member Avatar for SpS
0
503
Member Avatar for StealthCobra

I am getting these error can someone help? subscript requires array or pointer type -- point to lowest[x] = lowest; subscript requires array or pointer type -- average[x] = average; [code] #include <iostream> #include <iomanip> #include <string> using namespace std; void studentName(string name[4]); void getScores(double grades[4][5]); void findLowest(double grades[4][5], double …

Software Development c c# c++ display
Member Avatar for StealthCobra
0
118
Member Avatar for loganb

Ok I'm working on a class project for C programming and I'm having problems opening 2 data files I need. When I execute the code it gives me the error opening files message. To execute I've been getting into the proper directory and then typing finalproject population path finalproject is …

Software Development c
Member Avatar for winbatch
0
74
Member Avatar for ilikerps

Hello, I am having a problem with sockets. Not the sockets themselves, exactly, but more of the recieving and accepting of messages and connections (respectively) at the same time. My program runs a loop where it will wait to accept a connection (using accept()), and then wait to recieve a …

Software Development c++ client-server multithreading
Member Avatar for ilikerps
0
131
Member Avatar for kdw3

Im trying to create a simple RLC program. Im n ot sure the best way about it, but im trying to to use to 20 character arrays. One to read in the characters to be compressed (buffer) and the other is used to as a check. Either way, the buffer[20] …

Software Development c++
Member Avatar for Ancient Dragon
0
297
Member Avatar for TimC

Now that my program is growing in size and I have quiet a few display functions is it possible to put all these display functions in another header file eg. display_functions.h My objective is to clean up my main() file so I dont have to scroll up and down all …

Software Development c++ display
Member Avatar for winbatch
0
264
Member Avatar for TimC

I have 2 functions in my main(). When I call the first function void patient_main_menu(); it will leave me input all the required fields and it also will print to screen EXACTLY what I had inputed originally. When the second function is called void doctor_main_menu(); it SKIPS/ Will not leave …

Software Development c++ display
Member Avatar for TimC
0
229
Member Avatar for shanenin

I am not sure if any of you use a pvr. Linux offers some good choices. One of the choices is freevo, it is fully implemented in python. Of cource it uses tools like mplayer(video player) and others that are written in c/c++ . I wrote python script that makes …

Software Development gui python user-interface video
Member Avatar for vegaseat
0
234
Member Avatar for Avner .H.

Hello everyone..! I'm having a problem with gtk.ListStore class, while i'm trying to insert values into it. It seems that after I create the class object and use each one of the functions which responsible for values insertion (insert, append, prepend etc...), the only value that gets inserted to the …

Software Development python
Member Avatar for vegaseat
0
212
Member Avatar for Avner .H.

Hello people! does anyone know in what way can you edit a default value inside a gtk.ComboBox?

Software Development python
Member Avatar for Avner .H.
0
172
Member Avatar for superiorss

JOB: Telecommute Python Programmer - IMMEDIATE NEED Please see [url]www.superiorss.com/jobs.htm[/url] ---- Python, Zope, and Plone Jobs [url]http://groups.yahoo.com/group/pythonzopejobs[/url]

Software Development python
0
120
Member Avatar for nisaa15

Hi all, I am trying to take a list of words (from a text file) and then split each word into characters how can I do this? The code I currently have just reads in all the words (at, as, ate, apple, apply) found in text file and prints them …

Software Development apple java
Member Avatar for mmiikkee12
0
211
Member Avatar for winbatch

I have developed a set of libraries/common classes that I use in all my apps (this is on unix), and compiled them into a shared object (.so). Then, when I compile my individual apps, I link the library with the executable with -L /libs/ -l mylib . When running any …

Software Development c++ unix
Member Avatar for winbatch
0
243
Member Avatar for lallous

Forgive me for my questions but i am still an extreme beginner with VB I'm just practicing some programming so i decided to code a simple program which will help users convert between different units of measurement. I started with Temperature conversion and what do u know i got stuck …

Software Development visual-basic
Member Avatar for Comatose
0
132
Member Avatar for kdw3

I am trying to create a simple program to read in words from a file, count the words, and output a histogram of word lengths normalised to 1. I am having trouble reading in the words from the file. If anyone could help, it would be greatly appreciated. Regards Kevin

Software Development c c# c++
Member Avatar for Dave Sinkula
0
187
Member Avatar for shanenin

I am trying to use distutils to install a pyhon module. below is an idea of the code I want to use [code] #!/usr/bin/env python from distutils.core import setup setup(name="freevo_cropit", version="0.1", description="A Freevo plugin for wirting mplayer config files", author="me", author_email="shane@test.com", url="http://test.com", py_modules=['cropit.py']) [/code] I have the cropit.py module in …

Software Development python video
Member Avatar for shanenin
0
163
Member Avatar for anbarblue

Here is my code so far. I'm not sure what I'm doing wrong, but I cannot get it to compile. Incompatible Types (Lines 90 - 92) . Please Please Help. My ultimate task is to write an Applet Mortgage Calculator. import javax.swing.*; import java.awt.*; import java.util.*; import java.awt.event.*; import javax.swing.JOptionPane; …

Software Development java java-swing
Member Avatar for anbarblue
0
266
Member Avatar for Micko

Hello, I start learning Python GUI using Tkinter as IDE I'm using wing IDE 2.0.3 trial. I'm using Tkinter mainly because of very good debugger. Belive it or not I get exception in this code: [code] from Tkinter import * root = Tk ( ) my_container = Frame ( root …

Software Development gui ide python tkinter
Member Avatar for Micko
0
376
Member Avatar for rockStar60608

I'm having problem loading a java gui into a html page as an applet. I believe the problem is the init method. this is the first time i've had to make one and i don't think i did it right. here is my java code: [HTML]code[/HTML] package gui; import java.awt.*; …

Software Development gui html-css java java-swing
Member Avatar for rockStar60608
0
205
Member Avatar for Micko

Hi, folks I'm really having a bad time learning Tkinter. I started this morning and it was gooing pretty wel, but I cam accross this problem. How to make application windows of fixed size i.e. maximize button in the title bar is disabled? And also is there any way to …

Software Development python tkinter
Member Avatar for Micko
0
149
Member Avatar for PKort

What is the easiest way of installing wxPython on Mandriva LE 2005 ? I have tried it several times but didn't worked. ( I am not a Linux guru ). I just want to see if the simple programs I've made runs on linux to. Also tried Kubuntu but tha …

Software Development python
Member Avatar for shanenin
0
150
Member Avatar for tayspen

ok, on a button click how could i have the listview selected item jump to the next. so if there was a list view with 3 items and the second was selected. On a button clickhow could i make it jump to the third? -T

Software Development listview
Member Avatar for tayspen
0
247
Member Avatar for Micko

I wonder it it is possiblibe to write function to swap two variables like in C [code] void swap (int* x, int*y) { int temp; temp = *x; *x=*y; *y = temp; } [/code] I already tried with soemthing like this: [code] def swap (x, y): tmp = x x …

Software Development python
Member Avatar for Micko
0
3K
Member Avatar for bumsfeld

I am trying things with wxStaticText (a label). I can chnage background colour, but not the text colour: [code]import wx class MyPanel(wx.Panel): def __init__(self, parent, id): wx.Panel.__init__(self, parent, id) str1 = "Camembert cheese is the best!" self.label1 = wx.StaticText(self, -1, str1 , wx.Point(15, 30)) self.label2 = wx.StaticText(self, -1, str1 , …

Software Development python
Member Avatar for vegaseat
0
901
Member Avatar for tayspen

I mam having problems doing somthing fairly simple. ;) . What i have is a listview with about 1000 items in it. All files paths that i have scanned from a directory. And there are 4 colums. First the name, then the size, extesion ect. the last is the path …

Software Development listview
Member Avatar for tayspen
0
121
Member Avatar for guideseeq

Hi all, I've programmed [B]C[/B] & [B]C++[/B] during my college days. I understood its [I]OO model[/I] and coded many examples (this helped me in OO [I]PHP[/I] now). I used something called [I]Turbo C++[/I], a set of some confusing files, which can be carried in a floppy or two. [QUOTE]I now …

Software Development apache c++ perl redhat web-server
Member Avatar for perniciosus
0
457
Member Avatar for danizzil14

I am using Tkinter as my gui programming addon for python but i think it would be better to lean something else.... do you know where there are any good pyWin32 or wxPython tutortials? Help is apprecaited. :cheesy:

Software Development gui python tkinter
Member Avatar for vegaseat
0
416

The End.