132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for CodyM

So my readPoly fct assigns the values i want to my dynamic array, but when the fct send Polynomial p back to main to be assigned to a and b(fct called twice) the first value of the array is set to 0. I've output the array inside readPoly and it …

Software Development c++
Member Avatar for CodyM
0
289
Member Avatar for d8m9

Hi, Iam trying to post a form with cookies using [Requests module](http://docs.python-requests.org/en/latest/). When I post the form and see the page with the results, there is an error in the page, saying that I didnt fill one field right. Iam absolute sure I fill that field right. When I post …

Software Development python session ubuntu web-browser
Member Avatar for d8m9
0
2K
Member Avatar for WolfShield

So, While I was working on a project I accidentally closed down my Form1.cs[Designer] window and I haven't been able to find how to open it again. I am using Microsoft Visual C# Express Edition. I have looked around in the program and haven't been able to find a way …

Software Development c# microsoft
Member Avatar for Momerath
0
1K
Member Avatar for kenomote

hey guys i need some help on my Search button It seems that it is not accepting the data on the cboSI.text which contains the Field Names of the Table Heres the Code: Private Sub cmdSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSearch.Click Try Dim d3 As New …

Software Development vb.net
Member Avatar for adam_k
0
192
Member Avatar for SaaDwTk

I have created a function to add the text from a file inside another text file, if I had to add only one block of code it would be okay, but the problem is when I have to insert more than one block into a same source file. Example: FileDest1.txt, …

Software Development vb.net
0
258
Member Avatar for daniel.moore.5099940

Hey everyone, i need help with this program im doing for a class, now i havent used c++ in a while so thats why im considerably fresh in all this. any at all help would be greatly apprecietated. ALso i can NOT spell to save my life. the problem states …

Software Development algorithm c++
0
147
Member Avatar for foofdude

Okay, so I'm working on a battleship game, and I added these two tables which are throwing all sorts of errors, like: * Illegal Start of Expression, * Not a Statement, * ';' expected, * ']' expected, * <identifier> expected. I have no idea why... Help, please? import java.awt.*; import …

Software Development java java-swing
Member Avatar for JamesCherrill
0
448
Member Avatar for Dio1080

Hello, I need help making a table based off my tax code I made, the tax code was a little, but I need help with the table part also. The table should look like this: Income Single Married Joint Married Separate Head of house 50000 9846 7296 10398 8506 50050 …

Software Development java java-swing
Member Avatar for JamesCherrill
0
185
Member Avatar for rami sohaill

Hi everyone .. so i'm creating this project for college it's a system for airplane reservation i'm using multi dimensional array of objects i have two classes ticket and passenger .. this is the main /** * Name = Rami sohail Mohammed Jamous * ID = 1324057 * Java 203 …

Software Development java
Member Avatar for JamesCherrill
0
341
Member Avatar for deleted1234

[COLOR="Green"][CODE]Private Sub Text1_Change() Text1 = Format(Text1, "#,###") Text1.SelStart = Len(Text1.Text) End Sub[/CODE] This code formats the textbox value to include a comma for every 3 digits to the left. Problem is, it doesn't allow to type decimals like 3,000,000.50 What can I do?[/COLOR]

Software Development visual-basic
Member Avatar for AndreRet
0
6K
Member Avatar for mahela

Im using listbox with style = 1-checkbox. "project.mdb" is the database name "goods" is the table name. "tabno" and "tabid" are fields in the table. dim d as database dim table as recordset dim b as integer dim c as integer Private Sub Form_Load() Set d = OpenDatabase(App.Path & "\" …

Software Development visual-basic
Member Avatar for AndreRet
0
162
Member Avatar for Aditya.gtbit

Hi I am trying to make an java application to compress file and folders in .zip format.. i want to add additional functionality of adding password to a zip file,for this i want to use aes-256 algorithm but i am stuck with this,i can't figure it out. if i apply …

Software Development algorithm api file-system java
Member Avatar for Taywin
0
343
Member Avatar for arslan.haroon

Hey! I am stuck on a problem in which i have to print an isosceles triangle (two sides equal) with any character. It would be really helpful if someone could tell me the code, the triangle should look like this: * *** ***** *******

Software Development c++
Member Avatar for hariskhank
0
106
Member Avatar for prathiyus

just writing and testing the code using arrays, int main() { int i,n; int arr[14]; printf("\nEnter the array ",n); scanf("%d",&n); int lastindex = n-1; int *l; l = &lastindex; for(i = 0;i<n;i++) { scanf("%d",&arr[i]); } for(i = 0;i<n;i++) printf("\n%d\n",arr[i]); printf("%d",*l); //arr[i] = lastindex + 2; //printf("\n%d",arr[i]); if(arr[lastindex[arr]] < lastindex) { …

Software Development c
Member Avatar for Ancient Dragon
0
230
Member Avatar for eljainc

Hello, I'm having a problem with the ODBCDataReader Class in C# (Visual Studio 2005). I am able to open the database and query the tables in the code below. The problem is that the .read() loop returns over 7,000 records when in fact there is only one record matching the …

Software Development visual-studio
Member Avatar for eljainc
0
284
Member Avatar for vargabbaruah

I have been learning Python for a month now and just finished coding my first Markov chain. def markovmaker(filename): import random fhin = open(filename, 'r') worddict = {} newlist = [] wordlimiter = 0 for line in fhin: wordlist = line.split() for word in wordlist[:-1]: pos = wordlist.index(word) if word …

Software Development python
Member Avatar for woooee
0
161
Member Avatar for 9tontruck

Here's what I am trying to do: **1. As long as my generic handler gets HttpRequest, push it into a queue and just return empty response so that the request sender does not wait for the long process. 2. A thread keeps checking if there is anything is the queue. …

Software Development asp.net career queue
Member Avatar for 9tontruck
0
445
Member Avatar for SaaDwTk

I remember that I had a code of a multithread that you could start it how many times you want (it had no arrays). And I remember I only had to get the "Dim t1 as....(I dont rembemer)" line and insert t1.start to make it work. Also, it auto-dispose when …

Software Development vb.net
0
93
Member Avatar for primeru333

I am using NetBeans to re-create monopoly board game. I attached my board file into the attachments. I have already gotten the board, dice, players drawn to the screen. My question is how do I get the values from the dice roll so that my images can be moved around …

Software Development java
Member Avatar for JamesCherrill
0
562
Member Avatar for akashi

hi! can anyone solve this string-array problem or give me just an example about it * Write a program that converts a sentence input by the user into pig latin. You can assume that the sentence contains no punctuation. The rules for pig latin are as follows: a) For words …

Software Development c++
Member Avatar for Lucaci Andrew
0
927
Member Avatar for katsmiley

In this program i have put numeric value in char variable. Trying to observe what happens when using %d and %c specifier. void main() { char ch=23; printf("value:%c",ch); getch(); } here when i use %d i get value:23 when i use %c i get some odd char. why the result …

Software Development c display
Member Avatar for Tumlee
0
323
Member Avatar for Yoink

Hi, I'm writing a simple program that runs a vending machine. I thought I had everything working fine untill I messed around with the money input some more. In my program I obviously compare money values and check to make sure the values match up exactly to buy an item. …

Software Development daniweb-bug java
Member Avatar for Yoink
0
530
Member Avatar for SaaDwTk

How can I unzip an archive using VB.NET? Actually I'm using this method, but it takes too long to extract: http://www.codeproject.com/Tips/257193/Easily-zip-unzip-files-using-Windows-Shell32 Do you know a faster way?

Software Development vb.net
Member Avatar for Reverend Jim
0
121
Member Avatar for SaaDwTk

Why this command wont execute the path properly? The path have spaces, but with the path inside quotes, it was suposed to work. Why it's not reading the fully path? Path: 'C:\Users\Administrador\documents\visual' is not recognized as an internal or external command Dim myProcess As Process = New Process() myProcess.StartInfo.FileName = …

Software Development vb.net
Member Avatar for Reverend Jim
0
673
Member Avatar for jaimin4829

Hi i m trying to connect with .mdf database file from vs2005. it gives error failed to create user instance .....i hv installed visual studio managemant express2005

Software Development vb.net visual-studio
Member Avatar for jaimin4829
0
112
Member Avatar for maraghuram

I am trying to delete the leaf nodes in a bst which i have created non-recursively. The problem is when i am trying to delete the leaf node i hit a segmentation fault and i have no clue as to why its happening. I believe the code which i have …

Software Development c
Member Avatar for Gonbe
0
788
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to programmatically import a dll containing a form. Example: When i press a button it will open the form from the dll. NOTE: I need to programmatically import the dll. Please help

Software Development vb.net visual-basic
Member Avatar for Begginnerdev
0
294
Member Avatar for Kronolynx

hi. i got some problems with the dot and the C in th calculator i'm making. 1. when i press the C button it clears the screen but the next number i enter is also ignored even though it appears on the screen. 2. the dot is not working as …

Software Development java
Member Avatar for JamesCherrill
0
263
Member Avatar for rajeshyadav6382

program to read list of words in randomly and displays them in alphabetical order using function and comparison operator.

Software Development c++
Member Avatar for Lucaci Andrew
0
45
Member Avatar for krystosan

I have downloaded [PyDev](http://nchc.dl.sourceforge.net/project/pydev/pydev/PyDev%202.7.1/PyDev%202.7.1.zip) But I dont understand how to or what file to run...I know its a basic question but I am windows ga; used to run apps by clicking on icons...

Software Development python
Member Avatar for krystosan
0
161
Member Avatar for techyworld

Can someone tell me what is the difference between while(1) and while (true) in python?

Software Development python
Member Avatar for TrustyTony
0
141
Member Avatar for King1010

Inline Code Example Here package mariabakeshop; import java.text.Numb * @param message * the prompt string to display * @return a String input value */ public static String prompt(String message) { String value = ""; Scanner in = new Scanner(System.in); System.out.print(message); value = in.nextLine(); return value; } /** * Convert a …

Software Development java
Member Avatar for King1010
0
300
Member Avatar for jamesmadison43

The goal of the program is to make a sparse matrix using circularly linked lists. basically its a matix what only has values at the locations entered, and the rest of the lactions are not defined. the question i have is the logic for the code. how would i go …

Software Development java linked-list matrix-multiplication
Member Avatar for jalpesh_007
0
274
Member Avatar for RozenKristal

import java.util.*; public class List { public static INode head; public List() { head = new INode(8); } public static void main (String[] args) { INode a = new INode(8); int data = a.getValue(); System.out.println(data); System.out.println(head.getValue()); } } And my Node class: public class INode { private int value; private …

Software Development java linked-list
Member Avatar for jalpesh_007
0
226
Member Avatar for jeeter19

Hi, I am trying to copy all contents from one directory over to another directory. This is the code I have so far: [CODE] #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #define MAXNAME 80 #define R_FLAGS O_RDONLY #define W_FLAGS (O_WRONLY | …

Software Development c open-source
Member Avatar for fkjhadslf
0
2K
Member Avatar for engrjawad

**Can any one explain this library of java for me?**

Software Development java java-swing
Member Avatar for jalpesh_007
0
197
Member Avatar for ctclements

public class StringSet { public static void main(String[] args){ StringSet ss1 = new StringSet(); ss1.insert("the"); System.out.println(ss1); } /** * Creates an empty StringSet object. */ private String[] data; public StringSet () { data = new String[0]; } /** * If e is null, throws an IllegalArgumentException. * Else, if there …

Software Development java
Member Avatar for jalpesh_007
0
120
Member Avatar for Frensi

Hi all, I'm trying to do this challenge from the book I'm following, but I'm so confused. I need to get a variable from one class, and use it as data in another class. As you see in my code, in the Shuttle class, I need to get the score …

Software Development python
Member Avatar for TrustyTony
0
262
Member Avatar for k3na26

Hi, I kind of need help with my homework. I already have a code but it doesn't seem to work. I'm confused about the parameters I put. I don't know which part I actually messed up. I don't know what else to do. Thank you so much in advance for …

Software Development c++
Member Avatar for satabios
0
3K
Member Avatar for Icekilla

Hey guys, I'm building a program in C that can get powers of 2. The user inputs the value of n, and the program calculates 2^n. Here's the code #include <stdio.h> double power(int n) { int q; double c=2; for (q=n; q>1; q--) {c=2*c;} return c; } int main() { …

Software Development c
Member Avatar for Adak
0
176
Member Avatar for shills300

hi guys. our teacher posted a bonus a while ago that has me scratching my head. he still will not show us how to do it. i was wondering if u guys could crack it. here are the instructions: [Click Here](http://prntscr.com/inqqz) there are also **2 ** files to supplement: **.txt** …

Software Development python
Member Avatar for shills300
0
556
Member Avatar for Carc369

How do you do that? This code reads in the book. It reads in fine. Now I just have to alter it so it doesn't read in repeat words in the book. How would I do that? void readInStory(){ ifstream inStream; // declare an input stream for my use int …

Software Development c++ file-stream
Member Avatar for vijayan121
0
701
Member Avatar for Carc369

I've tried cin >> userInput; and it stops reading the word after it hits a space. but then I tried cin.get and it just skips all the other cins. Then I tried cin.getline and it skips over the userInput cin and goes right to the next cin (cin >> direction). …

Software Development c++ encryption
Member Avatar for vijayan121
0
570
Member Avatar for flyboy567

Afternoon everyone, I'm having a bit of trouble writing a program just to open the serial port for communications, its the first time ive really dabled in c# so if i'm missing something really obvious let me know as im only using it to open the serial port. Many Thanks! …

Software Development
Member Avatar for Momerath
0
175
Member Avatar for Hakoo

Hello, I am facing this difficulty here : First I'll give code public class Game extends JFrame { private JPanel contentPane; //private JPanel settingPane; protected JLabel lblPlayerName2; // I am using this one for my testing JLabel[] lbls = new JLabel[9]; private final ButtonGroup buttonGroup = new ButtonGroup(); public static …

Software Development ide java java-swing
Member Avatar for Hakoo
0
293
Member Avatar for SaaDwTk

I have tried this command but is not working, can someone tell me why? Dim myProcess As Process = New Process() myProcess.StartInfo.FileName = "cmd.exe" myProcess.StartInfo.Arguments = "/C " & "rabcasm.exe " & "\Source\" & "3.3.0-1\3.3.0-1.main.asasm" myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden myProcess.StartInfo.CreateNoWindow = True myProcess.Start() myProcess.WaitForExit(1000) If Not myProcess.HasExited Then myProcess.Kill() End If …

Software Development vb.net
Member Avatar for Reverend Jim
0
1K
Member Avatar for mcmanuel20

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package primenumber; /** * * @author mcmanuel */ public class PrimeNumber { /** * @param args the command line arguments */ public static void main(String[] args) { int num, a, b, …

Software Development java
Member Avatar for Taywin
0
171
Member Avatar for ritchonson101

Hi all...I really need someones help and real fast. I am trying to read a textfile with multiple columns that are each separated by a #. eg: Inventory.txt Nokia Lumia 610#Nokia#Touch#8GB#8#Tango OS#3899.00# Blackberry Curve 9380#Blackberry#Both#1GB#8#Blackberry OS 7#3499.00# Samsung Galaxy S3#Samsung#Touch#32GB#8#Andriod#6999.00# iPhone 4S#Apple#Touch#16GB#8#IOS#7899.00# I am trying to save each bit of …

Software Development apple c++ data-structure ios iphone
Member Avatar for mLearning
0
165
Member Avatar for ThePythonNoob

Hi I need some help with this code, at the moment I am just trying to get the commandline function to work. It should when I type a command like help or exit react to it, however I have to type the command 3 times for it to work which …

Software Development python
Member Avatar for ThePythonNoob
0
181
Member Avatar for s1994

I'm missing something obvious here I think I'm trying to check for the existence of a file, and I hear this is possible with ifstream's .good property. Not even managing to get that far. Forgive me on this, I'm new to C++ Created a new VS console application. I then …

Software Development c++
Member Avatar for mLearning
0
1K

The End.