132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for masterinex

Hi guys , Im new at pythons . Hope you all can help me out here : Im trying to write a code which prints the elements from every list as a line . so If my lists are : l1 = ['0000002', '0000003', '0000004', '0000005', '0000008', '0000009', '0000010'] l2 …

Software Development file-system ide python
Member Avatar for masterinex
0
290
Member Avatar for hanntaa

hey guys, i was wondering if anyone could help, basicly at the moment (for the last few hours) iv been tring to find a way to align an container, to enable me to have my current work on one side (left or right) and a JTextArea on the other. the …

Software Development gui java java-swing
Member Avatar for kinger29
0
167
Member Avatar for johndoe444

HI, From the following code: [CODE] 1 import java.util.*; 2 3 public class t2 { 4 public static void main(String[] args) { 5 List aList = new ArrayList(); 6 7 aList.add("a"); 8 aList.add("b"); 9 aList.add("c"); 10 aList.add("d"); 11 12 List bList = new ArrayList(); 13 14 bList.add(aList.get(1)); 15 bList.add(aList.get(3)); 16 …

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

I have a java aplpet in eclipse. How do i get my java applet to load in an html web page. I put the .class file from the bin director in the same directory as my web page. I tried applet tag but it gives me an empty white box. …

Software Development java
Member Avatar for kinger29
0
498
Member Avatar for NinjaLink

Hello I am trying to determine whether a word is a palindrome or not using queues in my program below. However, I am currently having a problem. When I compile and execute my program, the output screen comes up and disappears very fast. Afterwards, I ran the program using the …

Software Development c++ queue
Member Avatar for jonsca
0
109
Member Avatar for smd5049

is there a way to caputre the values in a datagrid and bind them to a sql table? I have a datagrid bound to a sql query with some editable cells and I wanted to know if the updates could be sent back to the sql table. is there a …

Software Development dataset sql vb.net
Member Avatar for jireh
0
103
Member Avatar for ninja_girl

Hello, I'm a C newbie (first time using C at university) and after reading a few books, I still have problem implementing & understanding structures and pointers. I have the following structure: [CODE]typedef struct data { double average; }Tdata; Tdata stat = {0};[/CODE] Now I have two functions which are …

Software Development c data-structure
Member Avatar for Ancient Dragon
0
91
Member Avatar for bethesda

When I do this: [CODE]la $a1, 9($t1)[/CODE] the code works, but when I do this: [CODE]marker: .word 9 la $a1, marker($t1)[/CODE] The code doesn't work.... I don't understand why....?

Software Development assembly
Member Avatar for bethesda
0
90
Member Avatar for Ecanto

[CODE]#include <iostream> using namespace std; int main() { char flip; int coin, flipnum, flipint, count, evod; string you, enemy; int hityou, hitenemy, youhealth, enemyhealth; srand(time(0)); //makes rand work cout<<"CHOOSE YOUR MANBEAST: "; //Choose a fighter getline(cin,you); youhealth = rand() % 15 + 95; //Your fighter's health cout<<endl<<endl<<"WHO SHALL CHALLENGE HIM?: …

Software Development c++
Member Avatar for restrictment
0
224
Member Avatar for hedwards09

Dear all, I have a test tomorrow and I just wanted to double check on my answer for this review question. Write a method negativePositive that takes an array of integers, and returns an array that contains 3 integers. The first value in the returned array is the number of …

Software Development java
Member Avatar for hedwards09
0
97
Member Avatar for katharnakh

I am facing problem connecting problem connecting remote MySQL server which is firewall protected. I used the valid user name and password, but it throws me the error [I]OperationalError: (2003, "Can't connect to MySQL server on 'www.myreomtemysqlserver.com' (10061)")[/I] I want to connect from python. I searched in Google is there …

Software Development google mysql python unix
Member Avatar for wendymclee
0
261
Member Avatar for confusedndazed

Hello all, I'm working with exponentiation and I have an assignment to write a code for loop initialization and loop body but unfortunately, I don't even know what that means. I was given the following information: Input x // can be any float Input y // has to be a …

Software Development c++
Member Avatar for confusedndazed
0
83
Member Avatar for evilsithgirl

Hello. I'm pretty new to debugging with visual c++. I've tried reading some tutorials but none of them seem to cover what my program is doing. i enter the command arguements for my code which is the file ./input.txt. I then get the following error. [code] 1>c:\documents and settings\jennifer\my documents\visual …

Software Development c++ visual-studio
Member Avatar for JasonHippy
0
140
Member Avatar for CurtisEClark

I am trying to make pygame draw a shape from a list of shapes imported with fileIO but i get a pygame import error please help [CODE]import random import pygame w = 640 h = 480 x = open("shapes.txt") z = x.readlines()[n] n = random.randrange(6) screen = pygame.display.set_mode((w, h)) pygame.draw.z(screen, …

Software Development python
Member Avatar for CurtisEClark
0
491
Member Avatar for shmeeps

I'm working on a project for school. Normally I'm a C++ guy, but I have to go through standard C before that, so I'm struggling with certain aspects being different, such as getline. Here's essentially what I'm doing, I have a data file that has a certain about of lines …

Software Development c
Member Avatar for shmeeps
0
173
Member Avatar for orangejediman

Hello,all! I am attempting to make a program in which tetris music is played. However, to get the full effect, I need more than one beep at a time. I cannot use the getsound thing either, i am not allowed. It has to be using 'Beep()'. Is this possible, and, …

Software Development c c# c++
Member Avatar for mrnutty
0
100
Member Avatar for mohsennour

Hilp me please I want to read data of RS232 and store it in Access Data base

Software Development delphi pascal
Member Avatar for AKJo
0
110
Member Avatar for COKEDUDE

Can someone please explain what both of these mean and the good details about them. Please also explain the parameters of how to use it.

Software Development java
Member Avatar for llemes4011
0
459
Member Avatar for bruceaj

I have a GUI window with a JFrame. On this JFrame, I have a JPanel that completely covers the JFrame. I then have another JPanel within this first JPanel that contains a text box and 3 buttons. Within an event handler, I want to expand the JFrame and 2 JPanels …

Software Development gui java
Member Avatar for AndreiDMS
0
152
Member Avatar for Mitja Bonca

I am doing an app which inclueds richTextBox, for inserting text. I put some text into richTextBox and save it into my sql database (column is varbinary(MAX) data type, with this code: [CODE]byte[] myFile = Encoding.UTF8.GetBytes(richTextBox1.Text);[/CODE] Here the text is changed into binary data, and them I add parameters and …

Software Development
Member Avatar for sknake
0
1K
Member Avatar for Stivdion

//Stephen Igbinedion //CMPS 1043 //November 10 //This program plays multiple games of Simple Simon Bridge #include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; ifstream infile; ofstream outfile; void Hand(char c1,char c2,char c3,char c4,char c5); int winner(int R_bid, int W_bid,int I_bid); int main() { int optimus; char gameplayer, …

Software Development c++
Member Avatar for mrnutty
0
83
Member Avatar for bruceaj

When I start NetBeans I get a dialog with the following: [QUOTE][B]Cannot locate java installation in specified jdkhome: C:\Sun\SDK\jdk. Do you want to try the default version.[/[/B]QUOTE] I click Yes and everything seems to work ok. Now, I did have the SDK installed but didn't have any need for it, …

Software Development java java-netbeans
Member Avatar for bruceaj
0
172
Member Avatar for VibhorG

HI!!!! i want to play videos in my application(C# window Application) and videos are playing fine. But I want to maintain security of these videos such that when I give my application to any user as setup file,then how can i include videos in the exe file such that user …

Software Development
Member Avatar for Diamonddrake
0
820
Member Avatar for JustAnotherJoe

Correction: The subject line was supposed to have said BAR CHARTS, not bar codes. Rather than reinventing the wheel, I'd like to know if something already exists that will get going me in the right direction. I have a program that, among other things, ftp's files to multiple computers in …

Software Development image python
Member Avatar for JustAnotherJoe
0
220
Member Avatar for splurchner

This is a program I wrote for class, and its completely done and compiles with no errors, but I keep getting a segmentation fault and even after using GDB and putting print lines (with fflush attached) I cannot figure out what the problem is. I do however think I found …

Software Development apple assembly c
Member Avatar for Dave Sinkula
0
189
Member Avatar for Linky

Oh man, I'm sure you guys are going to have a good time making fun of my newbie self, so enjoy! I have output that looks like this: [' sum\n', '\n', '1257869640: 6.8744400000e-02\n', '1257869660: 6.8744400000e-02\n', '1257869680: 6.8634000000e-02\n', '1257869700: 6.9022750000e-02\n', '1257869720: 7.0189000000e-02\n', '1257869740: 7.0189000000e-02\n', '1257869760: 6.9119800000e-02\n', '1257869780: 6.8245000000e-02\n', '1257869800: 6.8245000000e-02\n', '1257869820: …

Software Development python
Member Avatar for Linky
0
252
Member Avatar for ebrutekim

[CODE]#include <iostream> #include <sstream> #include <fstream> #include <string> #include "Python.h" using namespace std; #define tP PyRun_SimpleString(pyCom.c_str()) double func(double x); int main() { //file to write numbers to ofstream file; file.open("numCache.txt"); //string for int to string conversion string temp; stringstream output; //string that is read from console string numCache; //returned number …

Software Development c++ file-stream python
0
112
Member Avatar for crazybitez

Hi, Does anyone know how i could get a list of all files in a given directory given the directory's path using c++?

Software Development c++
Member Avatar for Ashishinani1756
0
244
Member Avatar for geek_till_itMHZ

I need to make multiple action listeners for 4 radio buttons and a regular button. They all need to call different methods from another class I currently have [CODE]Import javax.swing.*; import java.awt.*; import java.awt.event.*; public class CardGameCH15 extends JFrame { public CardGameCH15() { super("Card Game"); add(new CardTable()); } public static …

Software Development java java-swing
Member Avatar for geek_till_itMHZ
0
183
Member Avatar for Mehwish Shaikh

Well I was just wondering what should be the first step of making a project(school or professional). Ohkay we've conceived it all. But i just make a garbage of ideas. How to make them bit neat n clear. What shud be the steps, a developer should take before going for …

Software Development java
Member Avatar for Mehwish Shaikh
0
157
Member Avatar for mo_91

Drawing Hello 1. Horizontal Hello 2. Diagonal Hello Enter choice: 1 * * ****** * * **** * * * * * * * ******* **** * * * * * * * * * * * * * ****** ****** ****** **** Drawing Hello 1. Horizontal Hello 2. Diagonal …

Software Development c
0
50
Member Avatar for Phil++

Hey there, wonder if you can help me.. I have three classes: 1. Person 2. Accounts 3. Purchases (Accounts and Purchases both inherit from Person) You don't need an account to make a purchase but if you do you'll enter your: name, address etc.. The problem I'm having is association. …

Software Development c++
Member Avatar for VernonDozier
0
114
Member Avatar for anjaly.s

Hi, I am doing windows application prgm using webbrowser control.If I click any links in the webpage,it should open in the same webbrowser control.Otherwise one new windowform should popup with webbrowser control in it. I am in trouble how to proceed If anybody have ever tried this,please let me knw …

Software Development vb.net web-browser
Member Avatar for johnsims194
0
642
Member Avatar for cgyrob

I am creating a gridview dynamically using Itemplate but I have run into an issue where the event handlers I create for my drop down boxes in edititem template are accumulating every time it fires. To be more specific. When I enter edit mode and select a new item in …

Software Development session
Member Avatar for cgyrob
0
129
Member Avatar for Vdub.za

Hi there, Me and a buddy are having trouble in getting shellexecute to work in delphi 7. No matter what permetation of the word shellexecute i use, when i want to run the app shellexecute is not recognized. so how do i get shellexecute to work. been trying to get …

Software Development delphi pascal
Member Avatar for BitFarmer
0
3K
Member Avatar for Yeen

I'm making a small game in which you can choose the amount of points needed for victory. You play until either cpu_point or player_point is equal to (or greater than) the rounds. You get one point per win. What I'm having trouble with is the while check. I'd like to …

Software Development python
Member Avatar for vegaseat
0
306
Member Avatar for TomRandall

Hi All, I'm using a TStringGrid (has to be Delphi 7, and no 3rd party components) I've customised it to allow per-cell colouring/fonts/borders/validation etc, by using a custom onDrawCell method. I really would like to add per-cell tooltips too, but I've been unsuccessful so far. I've modified something I found: …

Software Development delphi pascal
Member Avatar for BitFarmer
0
632
Member Avatar for drabsch

I am using a MDI Form and several documents can be opened using "CommonDialog1.ShowOpen" If i open a file then go back to open another file but click cancel or the "x" then it will open the last file. so i need to know how to clear the "#1" my …

Software Development html-css visual-basic
Member Avatar for vb5prgrmr
0
540
Member Avatar for iamthwee

Hello there, I need 2 learn binary search tree 4 my assinement in java but canot find anything useful. If anyone no of a useful link please tell me. Why is there no source code for deleting a node...that's all i ask how to delete a freaking node arg. :eek:

Software Development java
Member Avatar for kdc
0
183
Member Avatar for alikSmehoff

Hello, how can I open MS Word application in my Delphi program? I think, it is necessary to work with ActiveX or maybe there is any other way or some free software for this purpose?

Software Development delphi pascal
Member Avatar for BitFarmer
0
1K
Member Avatar for AdRock

I don't know if this is the right board for this but here goes I have finsihed writing my program and it compiles fine on windows using the MinGW compiler. Ihave it compiling and running fine I tried compiling on a linux machine to create an executable but i an …

Software Development c c# c++
Member Avatar for AdRock
0
177
Member Avatar for sameh_ba

i need to write a C++ or Java program that will receive as input an IP Address in decimal format 192.168.2.125 The program will identify and print the class of that IP according to the first octet. Then it will perform binary bitwise AND operation between the IP address and …

Software Development c++
Member Avatar for sameh_ba
0
150
Member Avatar for daviddoria

If I have the following setup: [code] Point* MyPoint = Object->GetMyPoint(); if(MyPoint->GetValue() != 2) do something; else do something else; [/code] If MyPoint is NULL or invalid, the MyPoint->GetValue() will cause a segfault. This should fix it: [code] Point* MyPoint = Object->GetMyPoint(); if(MyPoint) { if(MyPoint->GetValue() != 2) do A; else …

Software Development c++
Member Avatar for JasonHippy
0
122
Member Avatar for Ineedhelpplz

So I have an assignment that I have been attempting for 2 weeks now and the class has been given extensions twice now. Everyone seems to be struggling with this part of the assignment. The assignment is to do K&R Exercise 5-13, unix tail command. [COLOR="Red"] Instructions: "The program takes …

Software Development c unix
Member Avatar for Ineedhelpplz
0
247
Member Avatar for seo2005

Hi, This has been discussed ealier, but i would like to know how the loop executes 1. #include<stdio.h> 2. #include<conio.h> 3. void main() 4. { 5. int x,y,z; 6. scanf("%d",&x); 7. if(x>0) 8. { 9. y=x/10; 10 z=x%10; 11. x=y; 12. printf("%d",z); 13. } 14. printf("%d",x); 15. } Suppose I …

Software Development c
Member Avatar for pramodsajwan07
0
116
Member Avatar for Vdub.za

HI I want to calculate the amount of days left between now and let's say 5 days from now using daysbetween. everytime i try to run my app, it says that daysbetween is a an undeclared identifier. i want to use this function to limit the length of time a …

Software Development pascal
Member Avatar for BitFarmer
0
152
Member Avatar for SAINTJAB

Hi, I want to create a mysql table in a database in C#. this table should have unlimited fields where the user can add more information to it without having to overwrite the already existing information. I want to do this cos I will not know the amount of info …

Software Development mysql
Member Avatar for Geekitygeek
0
514
Member Avatar for Vdub.za

Hi guys, I got a another question. i want to know how to go about saving a form1 to disk instead of printing it, so that i can email it to someone in a format that can be opened and read by the recepient. like for instance a home loan …

Software Development pascal
Member Avatar for BitFarmer
0
148
Member Avatar for shakunni

I need to edit every character of a string for an assignment; apply a simple Caesar cipher on it. What is the C equivalent of "charAt()"? I remember my prof saying that all strings are terminated with a certain character in C and that you could run a while loop …

Software Development c
Member Avatar for shakunni
0
81
Member Avatar for gundalav

I tried to print all the possible combination of members of several vectors. Why the function below doesn't return the string as I expected? [CODE=c] #include <iostream> #include <vector> #include <fstream> #include <sstream> using namespace std; string EnumAll(const vector<vector<string> > &allVecs, size_t vecIndex, string strSoFar) { string ResultString; if (vecIndex …

Software Development c++
Member Avatar for Sodabread
0
205

The End.