43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for joshmo

Am trying to extract a string of characters and numbers from a text file into two different data types in a linked list...i.e the if the text file has the data myname 100 i want the "myname" to be stored as a string and then the 100 as an integer..can …

Software Development c++ linked-list
Member Avatar for joshmo
0
3K
Member Avatar for Cosa

Hi, i have a function which is supposed to compare two matrices, however i does not work properly. I get this compile warning. [code] warning: control reaches end of non-void function [/code] Here is the function. [code=c++] bool matrix::isequal(const matrix& ob3) { for (int i = 0; i < rows; …

Software Development c++
Member Avatar for Nick Evan
0
144
Member Avatar for Traicey

I have 2 integers x and y, now I want to read them from the user and the syntax kick me down, I guess u can only read string from the user according to C# syntax rule, I have tried many combinations but none of them are working, so now …

Software Development
Member Avatar for majestic0110
0
134
Member Avatar for urmybaby

As basis for the assignment, we use a CSV file named country.csv in which information about countries is recorded. This file is posted on the assignment Web page1. The first line in the file is the header line and describes the content of each column. The first value in a …

Software Development file-system python session
Member Avatar for kdoiron
0
86
Member Avatar for Maulth

I've posted something along these lines before, but it's a tad bit different this time, hopefully some of you can point me in the right direction. I'm designing a tool that will make adding things to a database easy for people not familiar with SQL, it will basically export a …

Software Development c++ sql
Member Avatar for Maulth
0
177
Member Avatar for marti3a3

So I'm trying to create 4 arrays with data input from a .dat file, and for some reason it won't. The file has four columns, and I want four arrays with the info from each column seperate. For some reason, I'm having trouble doing that with the following code (minus …

Software Development c++
Member Avatar for marti3a3
0
85
Member Avatar for puneetkay

Hie guys, Im creating a program that will display the details of every state of India when user will click on that states button. I have two forms: Main.cs = MdiParent form for program. India.cs = Where map of India will be displayed including buttons of every state. So what …

Software Development gui
Member Avatar for puneetkay
0
98
Member Avatar for Onixtender

Hi, I've have a problem of printing data from stack, if it's simple words,then stack works just fine,but if I try to push changed data using function(Written by a very intelligent moderator :) ), I get just the same word n times: Intelect Intelect Intelect .... [code] #include<stdio.h> #include<stdlib.h> #include …

Software Development c
Member Avatar for Onixtender
0
182
Member Avatar for harcaype

Hi. I have been figuring out how to deal with my dilemma. I'm developing a mobile application in C# in Visual Studio 2005. And I have a question regarding the adding of listview items from a form to another listview in another form. I have got my application running but …

Software Development listview visual-studio
Member Avatar for harcaype
0
108
Member Avatar for Thew

Hello, I'm trying to use some default (static) members for my class. At first I've created class which looks like this (this is just a small code): [CODE] //rozšírenie materiálu, M (par (ext)) typedef struct ExtendedMaterial { //hmotnosť float Substantiality; //krehkosť - tuhé látky, viskozita - tekuté látky float Insubstantiality; …

Software Development c++
Member Avatar for Thew
0
93
Member Avatar for dougy83

Sorry - I should think before I post...

Software Development c++
0
75
Member Avatar for GPXtC02

New to classes. Getting alot of errors when calling the private member variables (from down in main). Most are telling me either i can't access the private member variable IDs or the other member variables i'm attempting to access (debit, credit, balance) are undefined ('identifier not found'). Also getting 'overloaded …

Software Development c++ ios
Member Avatar for GPXtC02
0
129
Member Avatar for Barman007

Now this is an assignment for me, but ive spent the last two weeks writing this code day and night, I just cant get it out of my head, I have to beat it lol. So anyway, two days ago I won and completed my program exactly the way I …

Software Development gui java java-swing
Member Avatar for Barman007
0
93
Member Avatar for ceyesuma

[code] String like=searchJTextField1.getText(); query=entityManager.createQuery("SELECT c FROM content c WHERE c.artist LIKE \"%" + like + "%\""); query.setParameter(like, searchJTextField1.getText()); [/code] is there someone that could tell me if this code is right? thanks -Steve

Software Development java
0
67
Member Avatar for knowledgelover

Hi there, is it possible that the args of the OnStart method of the service be passed by reference, more explanation: the main goal is to: start my service from another program, and I need the caller program(which starts the service) to be able to interact with the service( to …

Software Development
Member Avatar for knowledgelover
0
108
Member Avatar for ceyesuma

If netbeans ide has a queryproperty set to SELECT c FROM Content c How can I change this query to say ..limit the resultset to less records like 10 or 20 instead of the whole database. I am not sure what that SQL string would look like.

Software Development ide java
Member Avatar for ceyesuma
0
106
Member Avatar for chris5126

Anyone know of a good shell script beautifier that works in either unix or windows or a way of properly indenting/tidying up code???

Software Development shell-scripting unix
Member Avatar for chris5126
0
153
Member Avatar for marcelomdsc

Hi, this is my first time posting to this forum so please let me know if I'm doing anything wrong. I would like to know how to do the following... a. Write the internal representation of “17” in ASCII using two binary numbers b. Write 17 and -17 in two’s …

Software Development c++
Member Avatar for marcelomdsc
0
100
Member Avatar for Altarium

I've got a small bit of code I need to convert to C#. However my experience with C# is very very limited and a simple python program like the one I'm trying to convert is beyond my experience in C#. If anyone knows of any converters or is willing to …

Software Development c# python
Member Avatar for Typhon
0
545
Member Avatar for architact

Please help me in doing this problem in C++ without filing ______________________________________________________________________ [code=cplusplus] #include<iostream.h> #include<conio.h> #include<stdio.h> #define min(a,b)((a)<(b)?(a):(b)) int a[6000]; main() { file*input=fopen("number.in","r"); int n,p2,p3,p5,p7; a[1]=n=p2=p3=p5=p7=1; while (a[n]<2000000000) { a[1+n]=min4(2*a[p2],3*a[p3],5*a[p5],7*a[p7]); if (a[n]==2*a[p2]) p++; if (a[n]==3*a[p3]) p++; if (a[n]==5*a[p5]) p++; if (a[n]==7*a[p7]) p++; } { fscanf(input,"%d",&n); if (n==0) break; printf("the%d",n); if …

Software Development c++
Member Avatar for DigitalPackrat
0
157
Member Avatar for Karkalash

Hi: I have to write a program that uses methods and arrays. I have to create a method that creates an array and populates it with 10 random numbers between 1 and 10 inclusive. Then I have to write another method that sorts the number from lowest to highest and …

Software Development java
Member Avatar for Karkalash
0
141
Member Avatar for joshmo

am trying to figure out how to insert a new number in a linked list after a specified number...i am failing to figure out how to fix in the number in the list...here is the partial code..any help is appreciated [code=cpp] void insert(detailsPtr& head) { detailsPtr prev, current,tmp; int num,curr_num; …

Software Development c++ linked-list
Member Avatar for joshmo
0
83
Member Avatar for dinilkarun

hi, how can I read all the names of files present in a folder and store it into an array???.

Software Development visual-basic
Member Avatar for Jx_Man
0
67
Member Avatar for sagz

Hi all, I am a newbie to programming and have almost complete my assignment 'Frequency of words and phrases' to a satisfactory standard. My program reads a text file and counts the number of phrases within the file (A phrase is defined as a sequence of one or more words), …

Software Development c++ queue
Member Avatar for sagz
0
157
Member Avatar for abdulraqeeb33

hello, i have written a program which selects each record in the database-table(having ip,status and other fields) pings to that ip and if a reply is obtained then the program establishes a socket conn b/w another comp and exchanges information,if info is exhanged then nothing is to be done to …

Software Development client-server java
Member Avatar for mukulbhave
0
139
Member Avatar for ceyesuma

I have the tutorial running with a entire database displayed. I am working with the tutorial at: [url]http://www.netbeans.org/kb/articles/mysql.html[/url] The above tutorial creates a jDesktopAPP. with components bound to the table. I am trying to add a button (basically). I am in the process of understanding binding. the program loads with …

Software Development java java-netbeans oracle
Member Avatar for ceyesuma
0
176
Member Avatar for abdulraqeeb33

i have a program running with lot of system.out.println statements.. i want to display this in a javaframe...can anyone tel me the steps to go abt it

Software Development display java
Member Avatar for alpe gulay
0
131
Member Avatar for Roofus

I have a feeling this question might be a no brainer to all you. But is it possible to convert a string object to an istream obj. Because what I need to do is read the string expression and then calculate it using the "read_and_evaluate(istream&)" method in my if else …

Software Development c++
Member Avatar for Roofus
0
2K
Member Avatar for Jennifer84

I have this code that opens a Form. This code does work but if I just close the Form that did open with this code and press the button5 again, I will have an Errormessage: [B]"Cannot access a disposed object. Object name: ´Form2´."[/B] But if I change: this->form2instance.Show(); to: this->form2instance.ShowDialog(); …

Software Development c++
Member Avatar for Jennifer84
0
137
Member Avatar for Jennifer84

I have a Form witch scrollbars that is called Form2. Is there any way to programatically go to the top of the Form without having to scrollup with the mouse ? So if you have scrolled down to the end of the form. Is it possible to press a button …

Software Development c++
Member Avatar for Jennifer84
0
181
Member Avatar for NycNessyness

Hello everyone. I had a quick question. How can I go about setting constraitnts for a JTextField. I'm trying to not allow users to enter any non numeric numbers, except for dollar signs, commas and periods. Also how can I restrict a JTextField to only allowing two numbers to be …

Software Development java
Member Avatar for NycNessyness
0
387
Member Avatar for saurabh.verma

hi, i have a problem with my form so i have a form with windowstate = maximized now there is a button in that form that if i click on, a new form will be opened. so the problem is that if the new form has been opened and i …

Software Development visual-basic
Member Avatar for saurabh.verma
0
78
Member Avatar for ViRiPuFF

Hi I am using Visual Basic Developer 2005 I have this simple code that will delete all files created before today in the specified folders. The code works fine but I get an exception problem when the fso object deletes the files ie at fso.DeleteFile(file) inside the second For loop. …

Software Development vb.net visual-basic
Member Avatar for ViRiPuFF
0
344
Member Avatar for Jennifer84

I am running this loop where I am substr a vector like below and then ´creating´ a new string "NewData" that I will pushback in a new vector. The thing is that I got an Error message when running this code but if I instead change these 3 lines to …

Software Development c++
Member Avatar for Jennifer84
0
119
Member Avatar for FreezeBlink

There's a function that repeatedly shows up in languages, usually with more or less the following form (Python syntax): [code=Python]var1 = raw_input("Input a number between one and three.") choose var1: case "1": print "You inputted one." case "2": print "You inputted two." case "3": print "You inputted three."[/code] Or something …

Software Development python
Member Avatar for kdoiron
0
1K
Member Avatar for harakiri1976

Hi Guys! I am trying to make a simple and very basic Database in Python. Something, like a small agenda with contacts. I make a dictionary within the script and I was trying to update that info with new Input data. The problem is that I am not sure I …

Software Development os-x python
Member Avatar for woooee
0
118
Member Avatar for Snaku919

Euhmm Ok i got some error that tells me that i can't open the program because there some error in my syntax but I really don't know where is the problem it self. #include <iostream> #include <iomanip> #include <cmath> #include <fstream> using namespace std; void voircatalogue(fstream&); void ajoutitem(fstream&); void ajoutclients(fstream&); …

Software Development c++ ios
Member Avatar for Snaku919
0
250
Member Avatar for timdog345

[code] void firstClass(int f); void businessClass(int b); void coachClass(char typeTicket); int main() { char type; cout<<"Please enter your which class you want to fly. (f=firstClass, b=businessClass, c=coach)"; cin>>type; cout<<endl; //bad data check while (type != 'f' && type != 'F' && type != 'b' && type != 'B'&& type != …

Software Development c++
0
290
Member Avatar for StrawberryChips

First off I'd like to say I'm a beginner in C++ (VB was my stronger point I think), so be gentle about how gigantic my code is. I've been working on a project for a class for a couple days now, it's not due for a couple days, but for …

Software Development c++
Member Avatar for Agni
0
335
Member Avatar for jascase901

i am trying to teach myself python using this book called, core python programing by wesley chung. one of the exersises in this book says make a text based menu application that uses more than one of the programs you made already.When i made the application one of my code …

Software Development python
Member Avatar for tondeuse34
0
91
Member Avatar for TheWhite

[code=java] import java.awt.Color; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.SwingUtilities; public class Testing extends JFrame { public static void main(String[] args){ SwingUtilities.invokeLater(new Runnable() { public void run(){ new Testing(); } }); } private Testing(){ super("tester"); launch(); } private void launch(){ setBounds(200, 200, 300, 300); setDefaultCloseOperation(EXIT_ON_CLOSE); JPanel topPanel = new …

Software Development java java-swing
Member Avatar for TheWhite
0
3K
Member Avatar for Jennifer84

How is it possible to delete all Rows from it´s contents in a dataGridView1 ? For example I have 10 Rows and 15 Columns with Information. Thanks...

Software Development c++
Member Avatar for Jennifer84
0
115
Member Avatar for Jennifer84

How is it possible to programatically select Row 2 in a dataGridView. I know how to do it for a checkListBox like below but can´t find a member simular to this in the dataGridView. [code] checkListBox1->SelectedIndex = 2; [/code]

Software Development c++
Member Avatar for Jennifer84
0
127
Member Avatar for ceyesuma

I am working with the tutorial at: [url]http://www.netbeans.org/kb/articles/mysql.html[/url] Is there someone able to assist me in learning how to add a search functionality to the above tutorial? right now I am deciding if I need to transform th code (below) to the @Action,actionPerformed(),and class extending (@Action) Task. [code] public void …

Software Development java
Member Avatar for ceyesuma
0
153
Member Avatar for harsh2327

I want to read files and folder names from directories. I have used the following code. But the problem is that in the output the file name gets truncated.[I](See the output below)[/I] [code=C++] #include <dirent.h> #include <stdio.h> #include<conio.h> void main(void) { clrscr(); DIR *d; struct dirent *dir; d = opendir("."); …

Software Development c
Member Avatar for harsh2327
2
297
Member Avatar for daniel88

Hi guys, I am currently working on a practical for a first year computing subject. I am determined to work it out because I think it will really unlock pointers and dynamic memory allocation for me. Essentially, the task requires that I produce a program which, when prompted, will store …

Software Development c++
Member Avatar for Radical Edward
0
137
Member Avatar for ceyesuma

I am working with the tutorial at: http://www.netbeans.org/kb/articles/mysql.html can any one help me figure out why I can not set a query with this method? entityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory ("splashbookdbPU").createEntityManager(); org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance (splashtemplateda.SplashTemplateDAApp.class).getContext().getResourceMap (SplashTemplateDAView.class); query = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery (resourceMap.getString("query.query")); // NOI18N list …

Software Development java java-netbeans oracle
0
86
Member Avatar for Black Magic

Hey, I was just wondering what was the simplest way to "real" world type, like open wordpad and you could watch it actually typing, thanks in advance. (Hopefully the answer is not writing to file etc)

Software Development c++
Member Avatar for William Hemsworth
0
136
Member Avatar for tharris7

Hi, I'm quite new to C++ so all help is appreciated. I have a program that makes a string of at least three characters. I want to be able to compare the string to a list of words (i.e. dictionary) in a separate file, and then output the string if …

Software Development c++
Member Avatar for Nick Evan
0
195
Member Avatar for Jennifer84

I wonder how it is possible to create a "Folder". I know how to create files like this. How could this be possible with ofstream. I am not sure if I find any members to ofstream that could be associated with "Folders" ? [code] ofstream OutFile1; OutFile1.open("C:\\File1.txt"); OutFile1; [/code]

Software Development c++
Member Avatar for Jennifer84
0
105

The End.