132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sane83

Hello everyone... Im really lucky to find this site..I have been struggling hard to start of my project, thats when my friend refered me to this site.. My project is basically a kind of search engine.. I have collected all the software required for this.. NOW MY PROBLEM IS IN …

Software Development java
Member Avatar for BestJewSinceJC
0
98
Member Avatar for karthik.c

i want to print string(given as input) as number(o/p) and i did it in c using switch case .i want to do the same in python... wat if python provides switch case??n do we have equivalent of it in python?? Examle: input:three hundred and fifty(string) output:350(number)

Software Development python
Member Avatar for karthik.c
0
92
Member Avatar for mehdi2c

I use the following commands to save data in my database MydatabaseBindingSource.EndEdit() MydatabaseTableAdapter.Update(DBDataSet.mydatabase) When I enter data in debugging mode, and close the application, it wont keep the data, But, if I publish my application it will keep the data, is this normal? My plan is to save the data …

Software Development asp.net publishing vb.net
Member Avatar for joseph001
0
69
Member Avatar for kbullard516

Hello, I am trying to design an application that creates an array of 10 circles, each circle having random left top and radius values. Then i want to print out the values of each of the 10 circles in the array in a table format. I have 3 classes, Circle …

Software Development java
Member Avatar for kbullard516
0
180
Member Avatar for DemonGal711

Ok, it's a little weird, but I'm basically trying to write a piece of code that would determine how many letters are different between two words, like cat and cot are off by one yet cat and dog are off by three. So, I have a vector that contains all …

Software Development c++
Member Avatar for DemonGal711
0
104
Member Avatar for spec80

Hi I have the following classes: Home.java Away.java Other.java In Home.java i have a declaration like: [CODE]private Away away; private Other other; other= new Other(AN ARRAY); away = new Away(AN ARRAY , other); //where AN ARRAY is just an array, and other [/CODE] I then have code to pass AN …

Software Development java
Member Avatar for verruckt24
0
94
Member Avatar for bushman_222

Hey y'all I'm making the first steps into java from VB. I'm reading a book about how java works and I'm only a few chapters in. Just so you know how 'fresh' I am, I managed to write 2 classes, one main and another one, I passed a int to …

Software Development gui java
Member Avatar for verruckt24
0
166
Member Avatar for bugmenot

Please correct the error in my program. When i run the program on turbo c++ 3, it output 3 times. Also When i enter more than 1 entry only the last entry is outputted. Also it is outputted 3 times. [CODE]#include<fstream.h> #include<iostream.h> #include<conio.h> class student { int rollno; char name[20]; …

Software Development c++
Member Avatar for r.stiltskin
0
187
Member Avatar for tmoney7566

I am trying to write an applet that receives 2 inputs from a user then opens a window and displays the 2 numbers that were input, along with a message of either "the numbers are equal", or "this number is the largest". My problem--my program never returns "the numbers are …

Software Development java java-swing
Member Avatar for tmoney7566
0
138
Member Avatar for BruenorBH

I am trying to create a thread to continually update the time in the textbox. The issue is how do you reference a textbox in that was created in the main section of the program? main.cpp [code=c++] #include <windows.h> #include <ctime> #include "resource.h" static bool keepRunning = true; static HANDLE …

Software Development c++
Member Avatar for BruenorBH
0
149
Member Avatar for bugmenot

I have a very similar assignment in which we have been specified that we are NOT allowed to use vectors. Is there any other way in this case to count the number of lines of data within a text file??

Software Development c++
Member Avatar for Ancient Dragon
0
136
Member Avatar for puk

Hi i have the following data file: ------------ Data File Created By ActiGraph GT1M ----------- Serial Number: LYN2B35063338 Start Time 05:00:00 Start Date 02/27/2007 Epoch Period (hh:mm:ss) 00:00:02 Download Time 15:22:34 Download Date 03/05/2007 Current Memory Address: 512000 Current Battery Voltage: 3.90 Mode = 3 5 0 0 10 45 …

Software Development
Member Avatar for LizR
0
89
Member Avatar for christiangirl

Hello, I am getting 8 8 8 7 7 8 6 7 8 9 as output when I enter 1 2 3 4 5 6 7 8 9 0 into this program. It is supposed to sort the numbers one through 10. I debugged it, and believe the problem is …

Software Development c++
0
82
Member Avatar for gyagyus

Hi! I need to find out the size of an arbitrary file and then binarize it in C. I can do this with txt files, but how could I generalize it? This is how I get the size: [code] const char* filename = argv[2]; ifstream messageFile(filename); beginFile = messageFile.tellg(); messageFile.seekg …

Software Development c ios pdf
Member Avatar for gyagyus
0
108
Member Avatar for spec80

I have 2 classes, one of which also has a nested class: 1. Home.java (extends JApplet) 2. Away.java (extends JPanel) has nested class, private class ButtonListener implements ActionListener Now in Home.java I have a Vector ( called bankaccount) which i pass to the Constructor of Away.java ( I declared the …

Software Development java
Member Avatar for spec80
0
124
Member Avatar for jamboadams

hey anyone know what the largest value that can be stored in an integer variable is? likewise is there a double / long type of deal that isnt of float type? thanks

Software Development c++
Member Avatar for vmanes
0
1K
Member Avatar for MJV

If I have code that is executed by a button statement and I would like this code to be executed at different times from other actions can I use a goto stateent to execute it? If so how. I can't seem to find a correct way or method to label …

Software Development
Member Avatar for Rashakil Fol
0
100
Member Avatar for daviddoria

I want to do something like this [code] template <class T> vector<T> DereferenceVector(vector<T*> &PointerVec) { vector<T> ObjectVec; for(unsigned int i = 0; i < PointerVec.size(); i++) ObjectVec.push_back(*PointerVec[i]); return ObjectVec; } [/code] and call it with [code] void TestDereferenceVector() { vector<double*> a(10); vector<double> b = DereferenceVector(a); } [/code] That seems to …

Software Development c++
Member Avatar for daviddoria
0
107
Member Avatar for Ossehaas

Hello all, I'm having a problem with sending a serialized object over a NetworkStream. I'm using the BinaryFormatter and the object is serialized and deserialized fine writing to a file. If I use a streamwriter to send text it works fine after the [B]Flush()[/B] [CODE] nStream = _tcpClient.GetStream() Dim sw …

Software Development vb.net
Member Avatar for Ossehaas
0
270
Member Avatar for jhonny_86

Hey everyone! I have a problem when I save using FileOutputStream, ObjectOutputStream... Well, there is no problem saving a file in my java application to specified folder e.g. "C:/folder/" (that is made with JFileChooser) but the problem is that I want to use MY self made icon (that has, lets …

Software Development file-system java
Member Avatar for JamesCherrill
0
566
Member Avatar for starzstar

Hi I want to print something like this to the standard o/p I am currently doing sys.stdout.writelines("%s %10s %10s\n" %(Folders['Table']['Table'][i]['name'],Folders['table']['table'][i]['data']['Place'],Folders['table']['table'][i]['data']['Age'])) but is not very well formatted how do I maintain column structure here ====================================================== Name Place Age ====================================================== John US 11 Mary UK 12 Mike US 14 How to do …

Software Development data-structure python
Member Avatar for jlm699
0
98
Member Avatar for MyRedz

here's my question here Construct a class named Coord that contain two floating –point data member named xval and yval , which will be used to store the x and y values of a point in rectangular coordinates. The function member should include appropriate constructor and display functions and friend …

Software Development c++
Member Avatar for siddhant3s
0
134
Member Avatar for magicfun

Hello, I am trying to get my xml to format just the way I need it. A little background. I am using a flash piece which has 'site news' displaying with an xml document. I then have another button below the flash piece that says "view all news items", which …

Software Development flash xml
Member Avatar for magicfun
0
146
Member Avatar for greg022549

I am just learning how to use C++ and I am anxious to do so.. I need help with working with double selection if statements. Here is what I am trying to accomplish with in my program: If a client selects to travel to Japan he is charged a flat …

Software Development c++
Member Avatar for vmanes
0
90
Member Avatar for Thamizh Bharat

Hi, I am confused over the link between RGB, YUV and awt.Image. I converted a buffer having RGBFormat data to an awt.Image. I then converted a buffer having YUVFormat data to an awt.Image. I used BufferTo Image.createImage(format) method for the conversion. (RGBFormat and YUVFormat are classes in java for RGB …

Software Development image java
Member Avatar for JamesCherrill
0
436
Member Avatar for marcux

Hi all! I can not find my way around disabling widgets in pygtk. Is there one way for all type of widgets to disable them? By disabling I mean not being able to edit an entry and it is "grayed out", or the same for a checkbox, combobox and so …

Software Development python
Member Avatar for marcux
0
356
Member Avatar for StarZ

As the title says, I need help on how to generate random numbers. Like say, if the program asks the user "How many random numbers do you want?" and the user enters "4" It would generate 4 random numbers. How do I do that? the programs outputs random numbers on …

Software Development python
Member Avatar for StarZ
0
229
Member Avatar for theod1987

Hey I am trying to practice some recursive function writing for a class I am taking and I am writing this code and I pull up an error that says ".class" expected in the bold, underlined line! [CODE] import java.util.*; /* This class is one in which the program will …

Software Development java
Member Avatar for theod1987
0
5K
Member Avatar for urbandad70

I am working on another thread, but I encountered a problem just testing importing into an array. I use this code and it just hangs. I am stuck, please help. FYI, the scores.txt is in the same location as the source code. [code] #include <fstream> #include <iostream> #include <cstdlib> #include …

Software Development c++ display open-source
Member Avatar for jencas
0
144
Member Avatar for qinise4

I have written the below code in C ,the problem I have one proccessor and I am not sure if it will work, [code=c] /*#include &ltstdio.h> #include &ltstdlib.h> required for randomize() and random() #include &ltconio.h>*/ #include <stdlib.h> #include <stdio.h> #include "mpi.h" #include <math.h> //int N = 8; /*typedef struct { …

Software Development c
Member Avatar for qinise4
0
168
Member Avatar for devilz

Dear reader (s), In my AccessDB, JanuaryDay(Table) having two columns JanDate & JanShift. JanDate contains all the dates of each month and JanShift contains text value for each date. Its like: Id JanDate JanShift 1 1/1/09 SM 2 1/2/09 M ……………………… ……………………… 31 1/31/09 M I Can retrieve the recordset …

Software Development visual-basic
Member Avatar for devilz
0
144
Member Avatar for Deepak.G

im not sure if this is the right place to post this doubt.. i have installed this cint interpreter 5.15 think is i dont want those many options and i want to reduce it to the bare minimum...but the thing is im not very strong in c/c++ and this whole …

Software Development c
Member Avatar for ArkM
0
225
Member Avatar for onyxmethod123

I'm a freshman student in my first computer science class, and I've hit one of many walls in Java development. For a little background, we're working with BlueJ. Our assignment is to implement an ArrayList into a class that calls upon another class "Circle" to create and modify a large …

Software Development java storage
Member Avatar for stultuske
0
66
Member Avatar for acardiac

I have written this program and i am facing problems in the SearchRec() and DelRec() function.....SearchRec() function is supposed to search for a record on the basis of the pptno provided and if found would return 1 else it would return 0(but it is no working).And the DelRec() function should …

Software Development c++
Member Avatar for Ancient Dragon
0
242
Member Avatar for edek

Hi, Is it somehow possible to determine the TableAdapter related to the given table?? I have DataSet with one strong-typed DataTable and related TableAdapter. Please, don't ask why :) but I need to determine related TableAdapter of given DataTable or DataTable of given TableAdapter having only one of them. Possible?? …

Software Development dataset
Member Avatar for edek
0
99
Member Avatar for Dendei

hi i got an problem about reading my files i want to decide which file to open in the program not before anyone now a solution? :) [CODE] string fil; cout<<"which file? : "; cin>>fil; ifstream myfile(fil); [/CODE] cant see why this dont work...

Software Development c++
Member Avatar for Dendei
0
100
Member Avatar for shers

Hi, How do I add a new xml file to a VB.Net project? Thanks

Software Development vb.net xml
Member Avatar for Bandar.M.A
0
56
Member Avatar for meistrizy

Thanks in advance for your help. I am supposed to create a program that allows user input for a code. The program will then read the array and output the letter on the keyboard one character to the left of the inputted strings. I am first trying to get the …

Software Development c++
Member Avatar for meistrizy
0
166
Member Avatar for AnGuRuSO

This is pretty damn embarassing, I've been programming for a really long time and have been defeated by a trivial problem. [code] #include "stdafx.h" #include <string> #include <iostream> #include <stdio.h> using namespace std; int main() { int choice = 0; string itemDesc; double itemPrice; cout << "1. Process a sale" …

Software Development c++
Member Avatar for AnGuRuSO
0
125
Member Avatar for nirav bhatt

[CODE] #include <cstdlib> #include <iostream> #include <string> #include <math.h> #include "utils.h" #include <float.h> #include "onboostnn.h" //using namespace std; /* Constructor function. This sets the training example file and number of base models. It also sets to NULL other variables to be used later. */ onboostnn::onboostnn(datafile* examples_to_train, long new_num_base_models, int new_num_epochs, …

Software Development algorithm c++ data-structure ios
Member Avatar for ArkM
0
121
Member Avatar for sonia sardana

[code] private void Form1_Load(object sender, EventArgs e) { string file = Application.ExecutablePath; file=file.Replace('\',''); string test = "\\"; int start; start = file.Length; int lPos; lPos = file.IndexOf(test, start); } [/code] First Question I want to ask dat y in variable file \\ are coming.how can I replace \\ by \ …

Software Development
Member Avatar for ddanbe
0
168
Member Avatar for cascade001

Hello , thank you all for reading my post i really appreciate your DaniWeb it helped me alot before and hope you guys and girls can help me again : i have a program that genrates a powerpoint slide file -it is name is "presentaion1"- now instead of go to …

Software Development visual-basic
Member Avatar for cascade001
0
139
Member Avatar for TriceD

Greetings all, I have some difficulties concerning threading and hope you guys could be of help. Let's say I have the following class: [CODE]Public Class myClass Public Sub closeSomething() End Sub Public Sub doSomethingElse() End Sub Public Function doSomething() As String Dim ret As String = "Blablabla" Dim ThreadX As …

Software Development vb.net
Member Avatar for Ramy Mahrous
0
143
Member Avatar for OzY360

hi, i was wondering if there are any free programs available that will allow me to edit source code, assemble & link it, debug and run it. The source code written in assembly is specific to the 68000 family of motorolla chipsets. i just think it would be useful for …

Software Development assembly
Member Avatar for OzY360
0
160
Member Avatar for vtelebyteM

access events of form in UserControl i have 1)User control with one MSFlexGrid on it 2)Form to place user control 3)Some form's own control i dont know how many controls are there under form i have to place them in grid columns (eg. combobox in grid to provide its service) …

Software Development visual-basic
Member Avatar for vtelebyteM
0
150
Member Avatar for jdm

I'm working on a password program for fun. If the password is correct launch something. If password is wrong prompt again. After 5 wrong guess don't allow the user to try and guess again, but allow them to get to the regular parts of the code. For example. If they …

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

I am supposed to write a program that converts kilometers to miles and vice versa. We are only supposed to use JOptionPane for this assignment. I am wondering if it is possible to customize the buttons in JOptionPane and associate a formula to those buttons. For instance, I want to …

Software Development java
Member Avatar for stephen84s
0
135
Member Avatar for thingstealer

hi everyone, i'm having trouble initializing a private int in a class and can't figure out what's wrong. it's especially confusing me because i do nothing different with my int called size from with my int called HeapSize, but size won't compile. the error i get is: "error: invalid use …

Software Development c++
Member Avatar for thingstealer
0
148
Member Avatar for shaieen

[B]i research a code, and it goes like this:[/B] [code=c]include<stdio.h> #include<conio.h> void main() { int a[12],b[12],c[12],i,j=0,k=0; clrscr(); printf("Enter 12 numbers\n"); for(i=0;i<12;i++) { scanf("%d",&a[i]); } for(i=0;i<12;i++) { if((a[i]%2)==0) { b[j]=a[i]; j++; } else { c[k]=a[i]; k++; } } printf("The even numbers are\n"); for(i=0;i<j;i++) { printf("%d\n",b[i]); } printf("The odd numbers are\n"); for(i=0;i<k;i++) …

Software Development c
Member Avatar for shaieen
0
151
Member Avatar for mahela007

I am programming a folder synchronizer for my first python project. (I want to get it finished before school starts in about 2 months. heh heh) Anyway, up till now my synchronizer will only copy file from one folder to another. I want it to be able to copy entire …

Software Development python
Member Avatar for mahela007
0
109

The End.