132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rjmiller

alright, so i'm trying to import text from a file into an array so that I have the ability to edit data, find certain functions, etc. This is currently what my program looks like....(I haven't gotten very far) from scipy import * from numpy import * def Radiograph_data: try: file('c:/users/ross/desktop/radiograph_data.txt') …

Software Development python
Member Avatar for pythopian
0
217
Member Avatar for GEOFFSISCO

Hello all, I am not a coder but I have a code problem you might say. I have found myself in quite a conundrum using the SetSuspendState. I want to be able to wake on event and I do not know how to toggle the SetSuspendState at all. By default …

Software Development c++
Member Avatar for GEOFFSISCO
0
86
Member Avatar for abbz375

Hi everyone, I'm new to this forum and it has helped me a lot with the project I am currently working on. Using VS2008 and created an MFC dialog based application. I just started learning C++ and am finding it difficult to solve this problem. What I'm trying to do …

Software Development app-store c++ file-system ios
Member Avatar for abbz375
0
2K
Member Avatar for jakal121

Hi, I am kind of stuck on how to display numbers between an inputted number and a specifed number, for example 10 and 5, how would I go about doing this? can anyone help me please?

Software Development display java
Member Avatar for javaAddict
0
106
Member Avatar for m610

How to do it? I'm using *.dir in my filter and this does the job of getting OpenDialog to display only directories, but it seems I still have to select a file to select a directory. Is it possible to use the OpenDialog to select a directory? Using ExtratFilepath does …

Software Development delphi pascal
Member Avatar for BitFarmer
0
4K
Member Avatar for gabec94

Hi, I am trying to write a binary search. The main method randomly makes an array of 1 mil int's, and the binary search returns if an entered int is in the array, but I seem to be having trouble getting it to work, I've been working on it for …

Software Development java
Member Avatar for gabec94
0
116
Member Avatar for sathya8819

Hi. I am implementing the Kuwahara Filter in c#. The code for this is given below. [CODE] unsafe { Bitmap bmps = (Bitmap)pictureBox1.Image; Bitmap bmpd = (Bitmap)pictureBox1.Image.Clone(); BitmapData bms = bmps.LockBits(new Rectangle(0, 0, bmps.Width, bmps.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); BitmapData bmd = bmpd.LockBits(new Rectangle(0, 0, bmpd.Width, bmpd.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); byte* b1 = …

Software Development image
Member Avatar for Geekitygeek
0
306
Member Avatar for Areej N

hiiiii :) i am new here i hope to get enough help to finish my simple project. i am working on a simple program to show the union and intersection between 2 sets. i program it the intersection is working good but the union is not working!!! i am DIEING …

Software Development c++
Member Avatar for Areej N
0
75
Member Avatar for bravo659

Hello everyone, I am working on a project that when a user select an item in the listbox data will display in the textboxes. I saw a thread named "Experiment with ListBox in C#", this thread does cover what I am trying to implement on my project. I copied and …

Software Development
Member Avatar for Geekitygeek
0
2K
Member Avatar for longbart

Hai all, I have the following problem to solve: The users of my application can specify an xpath like e.g. format-date(current-date(),'[D]/[M]/[Y]', 'en', (), ()) this xpath is caught in an xslt file as just being a string (the user could also have typed in a string and then I need …

Software Development xml
Member Avatar for longbart
0
77
Member Avatar for jacsme

Help please!!!! Is there anyone has a sample code on how to call the backup and restore of SLQ server using VB6. I already have it but, unfortunately the backend of my program is Ms access and I want it to use as SQL server. Any help is highly appreciated.... …

Software Development visual-basic
Member Avatar for abu taher
0
172
Member Avatar for sathya8819

I am implementing an image processing related code in C#. It works almost fine, but I find a problem that I am anable to solve. When I run the project, I get the output perfectly. But when I minimize the screen and expand it, the originial image appears distorted. I …

Software Development image
Member Avatar for sathya8819
0
703
Member Avatar for Web_Sailor

I want to control the number of clicks in my button group which is inside DefaultTableModel of JTable. Like only one click for a certain Radiobutton. Suppose I have 3 radio buttons in a button group: 1) A 2) B 3) C If a user clicks A he can select …

Software Development java
Member Avatar for javaAddict
0
134
Member Avatar for Ulukay

Im trying to make 400 textlabels at runtime but i dont see them , Why not ? [CODE]Private orderArray(41, 10) As Label for x=1 to 40 For u = 1 To 10 orderArray(x, u) = New Label orderArray(x, u).BorderStyle = BorderStyle.Fixed3D orderArray(x, u).Text = "----klhjk--" orderArray(x, u).Height = 20 orderArray(x, …

Software Development vb.net
Member Avatar for Ulukay
0
98
Member Avatar for kimzstuf

This was a past assignment (it was last week's assignment), but I couldn't complete it. Could anyone help me finish it? I'm new to the function calls. The professor said I didn't call them from main properly. Although I've already received a grade on this assignment, we now have a …

Software Development c++
Member Avatar for kimzstuf
0
92
Member Avatar for vinochick

[CODE]#include <iostream> #include <iomanip> #include <cmath> using namespace std; //function prototype double calcPayment (double, double, int); int main() { //declare variables double carPrice = 0.0; double rebate = 0.0; double creditRate = 0.0; double dealerRate = 0.0; int term = 0; double creditPayment = 0.0; double dealerPayment = 0.0; char …

Software Development c++
Member Avatar for zortec
0
114
Member Avatar for Jalwes

Could anyone tell me why, in the following code, getline doesn't allow the user to enter any input? Thanks in advance. [CODE] #include <cstdlib> #include <iostream> #include <vector> #include <string> using namespace std; int main(int argc, char *argv[]) { char answer = 'n'; int selection; vector <string> strings; do { …

Software Development c++
Member Avatar for jonsca
0
97
Member Avatar for jdm

I'm helping a friend out with some code and I'm having the hardest time figuring out how to do this. I know it is simple, but for the life of me I can't remember how to do it. Any help or advice would be welcomed. Thanks for the help in …

Software Development c++
Member Avatar for jonsca
0
119
Member Avatar for Iam3R

[CODE] enum fivenums {Z,O,T,TH,F,FI} int main() { char ch; int num; do{ scanf("%d",&num); switch(num) { case Z: printf("ZERO\n"); break; case O: printf("ONE\n"); break; case T: printf("TWO\n"); break; case TH: printf("THREE\n"); break; case F: printf("FOUR\n"); break; case FI: printf("FIVE\n"); break; default : printf("Invalid\n"); break; } getchar();// to eat '\n' terminator so …

Software Development c
Member Avatar for kvprajapati
0
83
Member Avatar for satedoflove14

How to set up the page into landscape in data report vb6?

Software Development visual-basic
Member Avatar for abu taher
0
68
Member Avatar for smjabbar

Dear Sir, I would like to change page setup to be landscape to print a data report in VB6. I need the full details.Is there is procedure or function pls. help me how to make it, where to write the code Thank you in advance A.jabbar

Software Development visual-basic
Member Avatar for abu taher
0
105
Member Avatar for RThomasM

Hey there, so I am new to this forum and to C++ it is my first year in computer science and I am having some problems with this assignment, which is easy enough but I have hit a hitch and would appreciate if someone could point me in the right …

Software Development c++
Member Avatar for RThomasM
0
203
Member Avatar for mtusk

I have a program, call it X, that uses two classes: call them Y and Z. X uses Y which uses Z. Y contains an array of Z's. How do I construct an array of Z's and still allow me to set Z's variables. For example I know how to …

Software Development c++
Member Avatar for mtusk
0
119
Member Avatar for DaBunBun

For some reason netbean hates me, as well as eclipse. So i set cygwin as the compiler and debugger and everything, and tried a simple print statement and all i got was: The system cannot find the path specifiedProcess is started in an external terminal ... RUN FAILED Any help …

Software Development c++
Member Avatar for DaBunBun
0
131
Member Avatar for Sabaa

Hi, My problem is that in my C++ program (not written yet!) I have to login to a website (like [url]www.example.com[/url]) first. Simply I don't know how to do this! I did not find any useful tutorial or code by searching. I would be so grateful if you can help …

Software Development c++
Member Avatar for taylorc8
0
235
Member Avatar for klackey19

Hey everyone, I'm coding a program in C and have a pointer called pRoot. I need to do (2 * pRoot) .. but the compiler says I cannot. Is there some legal way of implementing this pointer arithmetic? Thanks in advance for your help!

Software Development c legal
Member Avatar for Narue
0
142
Member Avatar for tootaa

hi every body i have a problem whit the condition to check if the element is duplicate element or not this is the problem Duplicate Elimination Use a one-dimensional array to solve the following problem: Write an application that inputs 10 integers. As each number is read, display it only …

Software Development java
Member Avatar for mrnutty
0
954
Member Avatar for Doughnuts

Hello, I am trying to get the coordinates of the cursor when the user left clicks the mouse. I read that you can use this: [CODE]if (WM_LBUTTONDOWN) { int x = LOWORD( LPARAM ); int y = HIWORD( LPARAM ); }[/CODE] However, when i compile, it gives me this error: …

Software Development c++
Member Avatar for Intrade
0
4K
Member Avatar for jonathanYoung

problem; im currently in highschool, and the school uses an older version of visualc++ that does not support strings with all of the functions. the function im talking about is the one when you try to "open" a file to write onto it. what i need to do is find …

Software Development c++
Member Avatar for Doughnuts
0
118
Member Avatar for tomtetlaw

What kind of debugging features are there in VC++ 2008? I'm looking for things like: -Something to show which functions are being called and what functions are they calling, but limiting what it shows to only functions in my source files. -Something to show me if there are any recursive …

Software Development c++
Member Avatar for jonsca
0
98
Member Avatar for sexyzebra19

I've put so much effort into making this program and it keeps crashing! I previously had the two functions in separate files which were working fine, but I combined them into 2 - the poly function is still working fine, but the bisection function crashes at the line: "Enter the …

Software Development c++
Member Avatar for jonsca
0
126
Member Avatar for Nada_ward

Hi all How I can send file from server to another server in network??

Software Development vb.net
Member Avatar for Nada_ward
0
111
Member Avatar for neithan

Hi, i'm just mixing file handling and struct types and pointers to learn, but i'm a little stuck on this. I might be doing something awfull i can tell, sorry for that. Can anyone help? What's the best way to pass [CODE]#include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> struct …

Software Development c
Member Avatar for Narue
0
117
Member Avatar for sexyzebra19

This program was working fine yesterday, and then all of a sudden today it isn't working and I haven't changed anything?! It complies OK, but for for easy functions that I enter and know the roots of, it says there is no root. Can anyone please explain what is going …

Software Development c++
Member Avatar for sexyzebra19
0
155
Member Avatar for Jaydenn

Well, I have a main form (Form1) and a second form (Form2) which is a preference box. Anyways, I made a combobox and a button on the second form, and a button on the first form which opens up the new one. Everything works well until you try to use …

Software Development
Member Avatar for Jaydenn
0
97
Member Avatar for ellimist14

I have my BST built and it's working. But the only thing that doesn't seem to be working are the following functions which I built to print out the maximum and minimum of the gpa's (each tree node contains a struct of an ID, gpa, and age). It prints out …

Software Development c++
Member Avatar for Intrade
0
139
Member Avatar for Archenemie

Just like in the title, instead of renaming the files in the "target folder" it just renames all possible files in the python directory, and im not sure how to fix it, although this is my best attempt. [CODE] #!usr/local/bin/python import re, os from os.path import join as pjoin targetfolder …

Software Development python
Member Avatar for Archenemie
0
197
Member Avatar for Stefano Mtangoo

Hello, is there any other site that is dedicated on python exercises from standard Library to external? I plan to start doing exercise to measure my muscles in python and enrich my understanding! I have seen here some exercises which I'll do them (on stickies) Thanks all Steve

Software Development python
Member Avatar for elasolova
0
184
Member Avatar for tkud

Hi everyone, I just downloaded and registered Visual c++ 2008 express edition so that i can learn win32 programming. How do I get started? any help will be very much appreciated(I have been using borland C++ !!) [I]<<fake signature, [URL="http://www.daniweb.com/forums/profile.php?do=editsignature"]click here[/URL] to make a signature>>[/I]

Software Development c++
Member Avatar for jonsca
0
99
Member Avatar for Der_sed

What would be the psuedo code to : recursively draws squares. The picture shown below depicts squares drawn recursively on each of the 4 corners of a square. • The base case is draw nothing for n = 0. • The reduction step is to draw, on each corner of …

Software Development c++ gui
Member Avatar for sirdanman10
0
2K
Member Avatar for Instinctlol

So I made a class with an array with a bunch of numbers. I want to know how I can add up all those numbers and get an average for them. [CODE]#include <iostream> #include <string> using namespace std; class WeatherStation { string StationDesignation; //Identifies the station string StationAgent; //Who's responsible …

Software Development c++
Member Avatar for jonsca
0
102
Member Avatar for Soileau

I am trying to write a function to add two arrays. The catch is that the arrays have to parts of a structure. So here is what I have so far: [CODE]#include <stdio.h> struct poly { array1[]; array2[]; length; }; void polyadd(int array1[],int array2[],int length) { int i; struct poly …

Software Development c
Member Avatar for dan63043
0
126
Member Avatar for Diamonddrake

When I installed windows 7 I opted to do a fresh clean install, but the key I purchased was an upgrade key and required that I performed an upgrade. The disk itself was bootable so I performed a clean install and modified some registry keys and ran a vb script …

Software Development legal microsoft
Member Avatar for DdoubleD
0
105
Member Avatar for pac-man

Hi guys, I'm banging my head against the wall with this one. I want to sort a <string> vector which contains the following: "Pen 0.99" "Pen 0.99" "Paper 1.50" "Pad 1.99" "Paper 1.50" Into a vector which would sort it as follows: "Pen 1.98" "Paper 3.00" "Pad 1.99" I know …

Software Development c++
Member Avatar for mrPaul
0
318
Member Avatar for FanatiK

Hi, I'm new to this site and also to c++. I am currently in the process of learning c++ and would like the ability to read certain portions of a windows-based registry hive. I have found the source code for and compiled a working program that outputs all values within …

Software Development api c++ microsoft-windows windows-api
Member Avatar for FanatiK
0
140
Member Avatar for contactnaveen

I want a shell script program for this purpose and here is my requirement. I have two files 1.txt and 2.txt In 1.txt I have the following contents: label.abcd.1 = asdfgf label.abcd.2 = qwerqwe label.abcd.3 = zczxvzx label.abcd.4 = ;lkjj;l label.abcd.5 = pupoiup and in 2. txt I have the …

Software Development shell-scripting
Member Avatar for issue9
0
234
Member Avatar for c.pentasuglia

Okay so far this is what i have, i havent really gotten very far but id like to get the layout all set before i try to tie things together. The problem im having is getting the JButtons colored. In order for my game to be like the game simon …

Software Development java
Member Avatar for Ezzaral
0
113
Member Avatar for RogerBailey

I am a student This is my very first post in this forum. I have been taking this class in C# concentrating on window forms. I have for the most part been able to figure out how to do what I have been assigned without outside help. My grade to …

Software Development c c# c++
Member Avatar for ddanbe
0
180
Member Avatar for Mitja Bonca

This is the code I have: [CODE] public class BusinessLayer { public Employee[] GetAllEmployees() { Employee[] employees; DataSet myDataSet = DataBaseLayer.GetAllEmployees(); /// How can I convert the myDataSet to Employee List return employees; } }[/CODE]

Software Development dataset
Member Avatar for DdoubleD
0
2K
Member Avatar for mitchstokes225

Here is my assignment. 5. Assignment: Using the code given below develop a solution to the game Tic-Tac-Toe. a. The game is played between a human user and the computer. The computer’s moves are made randomly. You must get 3-in-a-row to win; getting five of the nine squares is a …

Software Development c++
Member Avatar for mitchstokes225
0
255

The End.