43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for xcarbonx

Hi, I'm having trouble lining up data from a file with their respectable columns in a list box. I am using print zones to space out data evenly, but when i run the program the output is still messy. So I need help lining up columns properly together. As of …

Software Development vb.net
Member Avatar for xcarbonx
0
1K
Member Avatar for marvolo1300

Hi, Im trying code something which will launch an executable file. I have tried system("example") but the only problem is that the file which has been launched has to be closed before the rest of the code is executed. Does anyone have an alternative to this method?

Software Development c++
Member Avatar for Stefano Mtangoo
0
211
Member Avatar for NewOrder

is the initialization happens in this order? The order of variable initiation is the following: 1) Static variable/methods are initialized first. 2) The object. 3) Object variables.

Software Development
Member Avatar for NewOrder
0
63
Member Avatar for choosenalpha

Hello All, I am getting the infamous Argument ___ isn't numeric in sprintf. I've looked around but I can't seem to fix the issue. It seems to occur if it has a 0. in front of the numeric pattern that causes it. Does anyone have any idea of what I …

Software Development html-css perl vbscript
Member Avatar for choosenalpha
0
414
Member Avatar for Mona..

Hi.. this is my code: [code] import java.util.Scanner; public class Arrays { //private variables private int[][] list = new int [12][2]; private int highest; private int lowest; //public functions Arrays(){ highest = 55; lowest = 5; list = new int[12][2]; } public int getData(){ Scanner input = new Scanner(System.in); for …

Software Development java
Member Avatar for Mona..
0
155
Member Avatar for marboleon

I'm new to Python, so bear with me..... I'm calling the Dislin plotting package from python to plot in a wxPython panel. This works OK but the plot gets grayed out when another window is moved over it. There is a Dislin function, sendbf, which updates the graphics window with …

Software Development python
Member Avatar for TrustyTony
0
181
Member Avatar for dspjm

Suppose I have these two functions: [CODE]template<class T> bool largerthan(T a, T b) { if(a>b) return true; return false; } template<class T> int reduce(T ar[], int n) { list<T> buffer; buffer.insert(buffer.begin(), ar, ar+n); [COLOR="Red"]buffer.sort(largerthan);[/COLOR] buffer.unique(); copy(buffer.begin(),buffer.end(), ar); return buffer.size(); } [/CODE] I have two kinds of arrays for reduce(): string …

Software Development c++
Member Avatar for vijayan121
0
107
Member Avatar for Alerwiali

Could some one here tell me how to resolve the problem it says duplicate DecimalToString Dos that mean i cant use a macro twice in the same program if yes how to print more than one number Thanks in advance [CODE];Author :Alerwi Ali ; function: Calculate the sum of ; …

Software Development assembly
Member Avatar for Alerwiali
0
291
Member Avatar for hwalsh

I can't get my userName variable right, it prints out user name the first time, but the second time it prints out null...I've been at this same problem for nearly 24 hours. [CODE]import java.util.Random; import java.util.ArrayList; import java.util.Scanner; public class mlab { // instance variables - this instance will get …

Software Development java
Member Avatar for hwalsh
0
88
Member Avatar for fraky

Hi, I am new in python and programming basically. I have a code that compare 2 files by the first column and prints a file with the common lines. But i need it to compare the first 3 columns and print the file. I kind of have and idea of …

Software Development python
Member Avatar for TrustyTony
0
145
Member Avatar for modesto916

Hi, I know that there are many topics about this, but, i read a lot of them, and no one solved my problem. I doing some exercises of the book "Deitel How to Program, 5", and in the exercise 4.27 i need to write a program that get a binary …

Software Development c++
Member Avatar for modesto916
0
98
Member Avatar for Joey_Brown

Hello I have a question regarding this program in c. My assignement is as follows : *read the angle in degrees *convert that angle in radians *Apply the formula for calculating cosine function with factorials *Then, automate the above calculating procedure by using loops *Afterwords calculate the absolute error between …

Software Development c
Member Avatar for Joey_Brown
0
124
Member Avatar for AKJo

Hello, I have an application with two MediaPlayers. MediaPlayer1 I want to play a video and MediaPlayer2 I want to play a sound file. My problem is that I don't know how to control the sound volume from MediaPlayer1. How can I set sound volume to zero for MediaPlayer1?

Software Development pascal
Member Avatar for AKJo
0
926
Member Avatar for wobuaini

hey, can anyone help me with these comlexity problems? I tried with myself but still want some clarifications..cheer,here is the code: [CODE](a) public void printPow2(int[] values) { for (int i = 1; i < values.length; i *= 2) System.out.println(values[i]); } (b) public void maxDifference(int[] values) { int max = 0; …

Software Development algorithm java
Member Avatar for apines
0
159
Member Avatar for v30

Hey guys, I'm new here and a n00b in Java, trying to figure things out though :) I want to make a polygon move in a Java Applet but I keep struggling with the keylistener (aka it doesn't do anything) Maybe someone can help me please? Here's my code: (I'll …

Software Development java
Member Avatar for apines
0
146
Member Avatar for Sunshineserene

Hi, I have a text file that I'm going to read, and then parse it. After parsing it, how do I return it into it's original position or layout as before? Because now after parsing it, my output is printed out individually, instead of printing it out how it looks …

Software Development java
Member Avatar for Sunshineserene
0
207
Member Avatar for Protoroll

I am writing a toString method where a it returns three integers. If any of them are less than ten I have to add a zero before the number. For example if I had the variables 5, 6, and 2 it would read 05:06:02. I really can't figure out how …

Software Development java
Member Avatar for Buffalo101
0
106
Member Avatar for Weird Nerd

Hi, I need some help with my C++ program. I've got these custom-made PlaySound(char[MAX_PATH]) and PlayMusic(char[MAX_PATH], bool) functions that use the BASS sound engine. When I call an instance of OPENFILENAME (found in the samples), the sound (.wav and .mp3) plays perfectly. My problem is that once the sound declared …

Software Development c c# c++
Member Avatar for Weird Nerd
0
329
Member Avatar for testie

Hi all, Ive been working on this little piece of code down there that removes the odd numbers from a list of numbers. I get an "IndexError: list index out of range" whenever I try to run it. From what I understand, it means that l[i] is attempting to use …

Software Development python
Member Avatar for Gribouillis
0
145
Member Avatar for seekdestroy

Ok, I'm getting a little confused on how to do this. Basically i got N stacks of cards. And need to check the topCard of every stack and check that N - 1 cards match then remove them. I peeked every stack of cards to get the top card, and …

Software Development java
Member Avatar for apines
0
13K
Member Avatar for JDevelop

Dear all, First of all I must say that I have just started with C. I've been doing some Java and C# as well but not very much of them too. In my new course of C, which goes on much rapidly than one can catch something, I am given …

Software Development c
Member Avatar for JDevelop
0
325
Member Avatar for jems5

I am writing a program that reads text but must ignore case, spaces and punctuation while evaluating a string for palindrome. When I use the following the case issue is solved. [CODE] String str = ""; if (str.toLowerCase().charAt(LHS) != str.toLowerCase().charAt(RHS)) [/CODE] ...but when I use the following I get IndexOutOfBoundsException …

Software Development java
Member Avatar for jems5
0
3K
Member Avatar for Awesomeness

I have an application I'm making... And it has a canvas in it. The problem is, on the y axis, my canvas is offset by ten pixels downward and I can't figure out why. You can see what I'm talking about in the screenshot. Do you know what's wrong?

Software Development gui java
Member Avatar for Awesomeness
0
122
Member Avatar for Stefano Mtangoo

Hi, I have decided to learn C# and since I have good knowledge of C++, I hope it would be easy. I have faced an error I dont understand. It says [COLOR="Red"]Polygon' does not contain a constructor that takes '1' arguments (CS1729)[/COLOR] AFAICS, all is well and constructor does take …

Software Development
Member Avatar for Stefano Mtangoo
0
200
Member Avatar for Caeon

This is what my program is supposed to do: [LIST=1] [*]Print the vector (m1) [*]Print the matrix (m2) [*]Multiply the vector and matrix together and display results [/LIST] The only thing wrong with my program is that I can't quite get the right results displayed. The correct display of values …

Software Development c matrix-multiplication
Member Avatar for Caeon
0
12K
Member Avatar for James0l9l

The first time my code loops through my nested while loop it works. But the second time it doesn't- I don't know why. Could someone tell me the reason. [CODE]m = [['__', '__', '__'],['__', '__', '__'],['__', '__', '__']] z=1 count=9 f=[0,2] from random import choice w=choice(f) from random import choice …

Software Development python
Member Avatar for woooee
0
102
Member Avatar for shakssage

I can't think of a way to get rows out of a table. It was easy doing it with VB.Net and I'm just finding vc++ really difficult. This is what I have so far. I've connected to the database file and I am able to get the data shown onto …

Software Development c++ dataset open-source sqlite
Member Avatar for Stefano Mtangoo
0
261
Member Avatar for LianaN

Hi! I've decided to open a new thread for discussing the problem with uploading a file to a SUB-FOLDER at the FTP Server. So, I'm using Apache Commons library and I can upload my file to the Home Directory of the FTP server. However, if I want to upload it …

Software Development apache client-server file-system java
Member Avatar for LianaN
0
1K
Member Avatar for BlueZephyr

I get this error: variable or field 'calc_score' declared void and I am pretty much stuck. Here is my code, it obviously isn't finished but I need to be able to get this void to compile to continue on. [CODE] #include <fstream> #include <iostream> #include <cstdlib> #include <iomanip> using namespace …

Software Development c++
Member Avatar for packetpirate
0
274
Member Avatar for choosenalpha

Hello All, I am trying to find where the error is when I compile this Perl script but I can't seem to locate it. It is stating that it "Can't find the string terminator "FOOTER" anywhere before EOF at reddrill.pl line 54. I have went through and checked for extra …

Software Development html-css perl vbscript
Member Avatar for d5e5
0
210
Member Avatar for Brickmack

Is there a way in python to look through a file line by line and find a word in that line, but only if the word is the first word in the line? Like if it was looking for the word "apple" then it would only notice if the line …

Software Development apple python
Member Avatar for richieking
0
955
Member Avatar for Donnovan

Hi everyone, how do i push item with a givin index in a linkedlist. e.g. linkedlist.add(element e, int index); this is my function [CODE]public void push(Student s, int index){ if(isEmpty()){ start = s; }else{ last.next = s; } last = s; size++; }[/CODE]

Software Development java
Member Avatar for Donnovan
0
101
Member Avatar for sairakhalid

i want to know whats the error over here. i just want to store the three value in a node and making a linked list but after storing two nodes that is headptr and than temptr, when the third node is made it stops. I think my error is somewhere …

Software Development c++ linked-list
Member Avatar for sairakhalid
0
177
Member Avatar for LianaN

Hi! I would like to develop a software that will allow me to find a file (using JFileChooser) on a local machine and save it to a remote machine. I know an IP address of the remote machine. Please, give me some explanations or a link to some tutorials regarding …

Software Development java
Member Avatar for LianaN
0
3K
Member Avatar for rcanter

Having a little problem with my code. I'm thinking it is a name somewhere that is the problem, but cannot find it. Getting warning that inventoryTable is never assigned to and will always have default value null. I have read that this warning can be disabled but when I try …

Software Development
Member Avatar for rcanter
0
205
Member Avatar for samsons17

Hi all :) Recently i got a an assignment to be done which need to deal with c++ pointer.. This is the question : [B] Write a function that accepts a pointer to a C-string as its argument. The function should return the character that appears most frequently in the …

Software Development c++
Member Avatar for samsons17
0
409
Member Avatar for NewOrder

when is it called in an inheritance hierarcy. is the base static constructor called before the derived static constructor?

Software Development
Member Avatar for Momerath
0
80
Member Avatar for mangopearapples

Is there anyway to play an mp3 file in java? P.S I'm new here, hello world?

Software Development java
Member Avatar for mangopearapples
0
172
Member Avatar for ceyesuma

Hi. I can't figure out how to remove an element from an array. will I have to move get the element to be removed and swap it out with the last element and use the pop()?

Software Development java
Member Avatar for ceyesuma
0
321
Member Avatar for SpyrosMet

Hi everybody. I need to pass the value of a pointer to a struct for a server program to a client program. my code is the following for the server: [CODE] write(ns, &fixedparkpnt, sizeof(fixedparkpnt)); write(ns, &fixeddriverpnt, sizeof(fixeddriverpnt));[/CODE] and for the client: [CODE] read(sock2, &fixedparkpnt, sizeof(fixedparkpnt)); read(sock2, &fixeddriverpnt, sizeof(fixeddriverpnt)); [/CODE] sock2 …

Software Development c client-server
Member Avatar for SpyrosMet
0
156
Member Avatar for birdlover2010

Hello, I am a current Java student and am having a problem when I run my compiled program from an in chapter lab assignment called "Stock Tracker". I receive a message from a dialog box "Cannot locate sun.jdbc.odbc.jbcOdbc Driver. Class not found exception creating database object. Following are a list …

Member Avatar for ~s.o.s~
0
274
Member Avatar for chupoi

Hi there ! I have a tree view control and a button in Form1. The button takes me to Form2 which has a text box and a save button. What I'm trying to do is get the button on Form2 to add what i have typed in the textbox as …

Software Development data-structure
Member Avatar for kvprajapati
0
140
Member Avatar for BLUEC0RE

I have numbers represented as chars (eg. '11.27') I want to type cast it to a double but im getting "pointer value used where a floating point value was expected". Any ideas?

Software Development c
Member Avatar for BLUEC0RE
0
71
Member Avatar for compe_dsd

Hi! I have a project in school about a grocery list...can someone help me make a code for this? I really need it....thank you so much! here's the problem: This application is called the “DAWLIMs Grocery Store”. The team has closed a contract deal to develop an application of a …

Software Development java
Member Avatar for compe_dsd
-1
200
Member Avatar for HoneyBadger

Hi guys, I am trying to iterate through a list. This is my code: [CODE] #assume this is the list: list1 = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] def iter_list(a): for s in a: return s #here it is when it runs: print iter_list(list1) a [/CODE] why doesn't it …

Software Development python
Member Avatar for HoneyBadger
0
112
Member Avatar for linezero

I was trying to get this work, but couldn't find a way to work this out. I'm new to vb.net. In a text box, the user enters a number for example a 9 digit number. I want the user enter to enter a 9 digit number that is starting from …

Software Development vb.net
Member Avatar for codeorder
0
129
Member Avatar for Awesomeness

I have a tree, and I want to find the depth of it. For example for this tree: [CODE]0 root / \ 1 5 1 / \ 2 1 3 | 3 2[/CODE] It should give a depth of 3. [CODE] public int getDepth() { int maxDepth = 0; if(this.hasChildren()) …

Software Development data-structure java
Member Avatar for Awesomeness
0
112
Member Avatar for linezero

how to validate a text box to accept only alphabets and numbers. no special characters. in vb.net i have tried the following code but it doesn't allow numbers but it allows alphabets only [CODE]Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox2.KeyPress If (Microsoft.VisualBasic.Asc(e.KeyChar) < 65) _ …

Software Development vb.net
Member Avatar for kvprajapati
0
3K
Member Avatar for vnorbi

Hello everyone! I'm making a tetris program, and now I'm stucked a bit. I have to use the simple getch() function, but in a special way. I need to use it for exact time, and when the time is up, I need to break the function, even if I haven't …

Software Development c++
Member Avatar for WaltP
0
232
Member Avatar for Finki

I just want to know if this is done right. And some suggestions on the commented line. [CODE]msg = ... import re msg = re.sub("[^\w ]", " ", msg) names = [] for x in msg.split(): if (x[0].isupper()) and not (x[1].isupper()):# I think this should be done in a different …

Software Development python
Member Avatar for TrustyTony
0
2K

The End.