132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for <M/>

Okay, last question of the night. My program is to have a program collect a number, double it, and reverse. I am having problems with reversing it... Here is my code: import java.util.Scanner; import java.text.DecimalFormat; public class ReverseNumber { public static void main(String[] args) { Scanner s = new Scanner(System.in); …

Software Development java
Member Avatar for kal_crazy
0
173
Member Avatar for Violet_82

hi guys, I wonder if anybody can clarify something for me. Take these 2 fragments of code (2 constructors belonging to 2 different applications): First one: public MouseTrackerFrame() { super( "Demonstrating Mouse Events" ); mousePanel = new JPanel(); // create panel mousePanel.setBackground( Color.WHITE ); // set background color add( mousePanel, …

Software Development java
Member Avatar for Violet_82
0
487
Member Avatar for game4tress

I'm trying to fill a listview with the code shown bellow, but when the listview is populated, each item is shown as: ListViewItem: {The information to display1} ListViewItem: {The information to display2} ListViewItem: {The information to display3} ListViewItem: {The information to display4} My question is, how can I display only …

Software Development listview
Member Avatar for game4tress
0
206
Member Avatar for mohamedrani

hello , i've in my system a search form which contains many tabs for each table i have in the database for example (employee tab,departments tab....) and seperated forms for the same tables to add recored from what i want is when i'm opening the employee form and press the …

Software Development
Member Avatar for Mike Askew
0
182
Member Avatar for nikolaos

Testing the following code from a book public class RunTime { public static void main(String[] args) { Runtime r = Runtime.getRuntime(); //MEMORY MANAGEMENT long mem1, mem2; Integer intmatrix[] = new Integer[1000]; System.out.println("Total memory is :" + r.totalMemory()); mem1 = r.freeMemory(); System.out.println("Initial free memory is :" + mem1); r.gc(); mem1 = …

Software Development java motherboards-cpu-ram
Member Avatar for mKorbel
0
777
Member Avatar for <M/>

Okay, so this is a similar error to the code before. So I created this: import java.util.Scanner; public class IntegerCount { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter an integer, the input ends if it is 0: "); int num = input.nextInt(); if (num == …

Software Development java
Member Avatar for <M/>
0
336
Member Avatar for Faisal_2

I have installed Rifidi edge server (open source RFID middleware provide services as osgi bundles) on windows7 and I am trying to develop a java application to connect and read data from edge server. **1)** Firstly I used Spring with following code to get JMS ConnectionFactory object which I am …

Software Development apache ide open-source session
0
112
Member Avatar for <M/>

On my code, it says that there are 2 mistakes and I can't fix them. Here is my code: import java.util.Scanner; public class Exercise4_1M { public static void main(String[] args) { int countPositive = 0; int countNegative = 0; int count = 0; int total = 0; Scanner input = …

Software Development java
Member Avatar for <M/>
0
448
Member Avatar for kent.johnstone_1

I'm getting compiler errors in all my function prototypes. The error is "error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CALCOR". CALCOR is the name of the function and the prototype is just the first line of the function followed by a semicolon as Ancient Dragon said in another …

Software Development c
Member Avatar for kent.johnstone_1
0
252
Member Avatar for ridunneii

What I'm trying to do is initialize a vector of objects, pass the vector to a function, then initialize a new object with a constructor. After setting the object members in the function, I add that object to the vector. The problem is the member functions aren't updating outside of …

Software Development c++
Member Avatar for tinstaafl
0
344
Member Avatar for angel06

Hello would someone please help me with my program, I'm stuck all day with this thing. The program runs, but I think the problem is a logical error. The fraction 1/4 + 2 1/2 should be equal to 2 3/4 but the program's result is 2 3/8. Another thing is …

Software Development
Member Avatar for Venjense
0
224
Member Avatar for VB user

I'm faceing a problem with compering the values of the Acess with the values that the user enters. The user should enter his /her username and password and choses the title of his/her job. if the user enters wrong username and wrong password and chosses the wrong job title than …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
282
Member Avatar for Jed_1

I've implimented this snippet of code dijkstra_shortest_paths( g, name2v[tempName1], get(&VertexProperty::predecessor, g), get(&VertexProperty::distance, g), get(&EdgeProperty::weight, g), boost::identity_property_map(), // index-map std::less<double>(), // compare std::plus<double>(), // combine std::numeric_limits<double>::infinity(), // infinity 0.0, // zero do_nothing_dijkstra_visitor(), get(&VertexProperty::color, g)); to use dijkstra's on a map created from a text file, but I have no idea how …

Software Development c c# c++
Member Avatar for Jed_1
0
846
Member Avatar for kent.johnstone_1

I'm already having problems understanding structs even with two books. Now I get one with "struct struct". What does that mean. This is actually part of a linux program I'm trying to convert to C for PIC processors. Also I'm getting errors in this code that should work like "unable …

Software Development c
Member Avatar for kent.johnstone_1
0
184
Member Avatar for Overtim3

I am looking to run a subprocess and not let the subprocess be seen. I have something like this: proc = subprocess.call(["some.exe", "arg1", "arg2", "argN"]) The needs to be ran in the background. I also tried something like this: info = subprocess.STARTUPINFO() info.dwFlags = 1 info.wShowWindow = 0 subprocess.Popen('some.exe arg1 …

Software Development python
Member Avatar for Mouche
0
323
Member Avatar for Hinata_Dev

Bonjour tout le monde , Voila ma question : je prépare un TP en c qui consiste a crée un fichier input contient la taille en premier ligne et 2 matrice d'entier dans les autres lignes ex : 4 Matrice1 1235 5456 5428 2415 matrice2 8795 2514 6524 8562 le …

Software Development c
Member Avatar for Mouche
0
220
Member Avatar for mythos061

Generic task: I am assigned to store student information in a binary search tree. I have a templated tree class, school class, and student class. The school class inherits from the tree class. The student class is on its own. Now, I want to encapsulate a student in a struct, …

Software Development c++
Member Avatar for mythos061
0
204
Member Avatar for tbuchli

// Create the cboSelectGroup, and add it to the navigation panel: //String[] strDefaults = {"Defaults"}; //cboSelectGroup = new JComboBox(strDefaults);Public Class Form1 cboSelectGroup.setPreferredSize(new Dimension(150, 40)); cboSelectGroup.setMinimumSize(new Dimension(150, 40)); cboSelectGroup.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnImagesActionPerformed(evt); } });

Software Development java
Member Avatar for tbuchli
0
287
Member Avatar for pfm200586

Hello everyone, I have this assignment that I dont understand. It is a very long assignment I think. I don't want any code or something like that. I need to understand what i am suppose to do then I have to start thinking about codes. Now you may say just …

Software Development data-structure session vb.net
Member Avatar for Ciprian_1
0
745
Member Avatar for <M/>

Hi guys, I am working on an assignment for a class of mine (Java) and I am really frustrated with it. This was my very last attempt (out of like 20)... System.out.print( "Enter temperature in Celsius to convert to Fahrenheit: " ); double c = kbinput.nextInt(); double f = ( …

Software Development java
Member Avatar for <M/>
0
229
Member Avatar for faris.hamarshi

hello, i am trying to store a text from file into array to do some editing on it i did this void readFile(){ FILE *fp; long lSize; char *buffer; fp = fopen ( "s.txt" , "rb" ); if( !fp ) perror("s.txt"),exit(1); fseek( fp , 0L , SEEK_END); lSize = ftell( …

Software Development c
Member Avatar for Mouche
0
186
Member Avatar for Jed_1

Okay, so as ussual I'm having a lot of problems with a code and I need a lot of help along the way, but I'm just going to break it down into simple questions as I go. I am taking data from an input file that is a .txt that …

Software Development c c# c++
Member Avatar for mike_2000_17
0
919
Member Avatar for Pratique

#include<stdio.h> #include<conio.h> void main() { printf("enter number:"); scanf("%d",&n); for(i=1;i<=y;i++) { x++; } t=x; for(i=1;i<=y;i++) { t--; } y=t; getch(); }

Software Development c
Member Avatar for Mouche
0
349
Member Avatar for Builder_1

How can i write a C++ program which prompts the user to enter names of five countries , stores them in a 2D array,sorts them alphabetical order and prints them on screen. im unable to make it..plz help #include <iostream> using namespace std; int main() cout<<"Enter tha names of five …

Software Development c++
Member Avatar for Builder_1
0
1K
Member Avatar for spawn2004

Hi I have a little problem. I am having a project and i need to implement Dijkstra for a graph.So far it was ok but i have that problem when run it in g++ The code is where i think i have the error is here i think: if(!graph_list.at(start_Node->id)->path_list.empty()) { …

Software Development c++
Member Avatar for samer.aboufakher.3
0
430
Member Avatar for king03

ok so here is what my code does, when you click sign up it will then open a new form wherein you can create your account by putting a username and password, after that it will save your username and password to the debug folder inside bin folder. the saved …

Software Development c c# c++
Member Avatar for odai.khateeb
0
3K
Member Avatar for Firozeh

hi, i need help to research about search pattern,as u know we can use some search pattern for searchoin in our codes like*.jpg"|"*.txt"|"*.asp"|"*.css"|"*.cs", I wanna know more about, how many search pattern exist? ...

Software Development
Member Avatar for The Diamonds
0
154
Member Avatar for COKEDUDE

Is there a way to check the default version of C89, C90, or C99 that gcc uses to compile your programs? I tried -v and --version but they only give the actual package of gcc info.

Software Development c
Member Avatar for Mouche
0
431
Member Avatar for somjit{}

My assignment says : Write a program to perform following stack operations : Create a stack with item code and quantity Itemcode Quantity 111 450 112 0 113 487 114 101 115 500 116 0 117 359 and then Delete the items having quantity zero and update the stack. My …

Software Development c
Member Avatar for Mouche
0
294
Member Avatar for khelkely

So, this is my coding, but when i insert data, i cannot update view / print input that i had inserted. And also, i had connect the database with NOTEPAD, but it does not appear. So, what is the problem? # include <iostream.h> # include <fstream.h> # include <iomanip.h> struct …

Software Development c++ ios
Member Avatar for Moschops
0
176
Member Avatar for clife

Hi, How will i grep for a string which has '/' in it. I have so many script files some are having #!/bin/bash and some are having #!/bin/sh how can i find the scripts which are having #!/bin/sh. Thanks

Software Development shell-scripting
Member Avatar for rch1231
0
120
Member Avatar for MrSheba

Hello dear, I'm playing a normal game called "Kal-Online" and am doing my own server and im looking for a coder who can help to code skills and some stuffs for me I'd like to find him/her out, King Regards, Sheba.

Software Development c++
Member Avatar for pritaeas
0
80
Member Avatar for cb.home

Hi folks, I have a problem... Der erste Ordner `./src` mit der main hat folgendes Makefile (automatisch erzeugt) include C:/IPG/hil/win32-4.0.5/include/MakeDefs APP_VER = "Car_Generic <insert.your.version.no>" APP_NAME = CarMaker.$(ARCH)$(EXE_EXT) #OPT_CFLAGS = -g -O1 LD_LIBS = $(CAR_LIB) $(EKF_LIB) $(CARMAKER_LIB) $(DRIVER_LIB) $(ROAD_LIB) $(TAME_LIB) OBJS = CM_Main.o CM_Vehicle.o User.o OBJS_xeno = IO.o $(OBJS_CANIOGEN) $(OBJS_CANIOGEN_USER) OBJS_linux …

Software Development c++
Member Avatar for cb.home
0
383
Member Avatar for clife

Hi, I have installed ubuntu 11.10 on my PC and the default shell i got was dash i found it out by ll /bin/sh But i could not run some of the scripts and thought of changing the shell to bash. so i did, cd /bin rm dash unlink dash …

Software Development shell-scripting ubuntu
Member Avatar for rch1231
0
147
Member Avatar for ernestclyde

Public Sub login() SQLConnection.ConnectionString = ServerString cmd.Connection = SQLConnection SQLConnection.Open() cmd.CommandText = "SELECT employee_id, password FROM employees_list WHERE employee_id='" & Form1.EMPLOYEE_ID_txt.Text & "' and password='" & Form1.PASSWORD_txt.Text & "'" dr = cmd.ExecuteReader() If dr.HasRows Then Form1.PASSWORD_txt.Text = "" dr.Close() Form1.Hide() MessageBox.Show("Signed in", "", MessageBoxButtons.OK, MessageBoxIcon.Information) 'get firstname and lastname" label4="firstname …

Software Development mysql vb.net
Member Avatar for Minimalist
0
341
Member Avatar for AhmadHasanSahi

i want code of Sorting techniques like insertion sort , merge sort , bubble sort , quick sort. i want their output in gui or in any animation form in any language like c , c# or java. can any one help me plz ?Any one sorting technique is ok.

Software Development gui
Member Avatar for Dani
0
119
Member Avatar for msareef

this is the question: Write a C program that will request the user to input the values for R,L,and C and plot the a graph of current ,I, against frequency . The range for the frequency axis should be automatically selected based on the resonance frequency of the circuit.

Software Development c
Member Avatar for Mouche
0
3K
Member Avatar for CJMW

So I'm making a custom text editor for web development. I am planning to unclude the use of projects to group common files together, however im having a hard time going about it. I have a form that when opened, will give the user options to create a new project …

Software Development
Member Avatar for The Diamonds
0
301
Member Avatar for Jed_1

I currently have a program that can take a text file and inport the data that I need (names or locations as well as the distances between them) and I need to take that data and for a graph in boost so that I can do one of three things, …

Software Development c++
0
173
Member Avatar for edrianhadinata

Please help me sir.. its my first .. how to instal OpenGL Library into MinGW .... i have tried but error code : #include <GL/gl.h> #include <GL/glut.h> void display() { glClear(GL_COLOR_BUFFER_BIT); glFlush(); } int main(int argc, char **argv) { glutInit(&argc, argv); glutInitWindowSize(512,512); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("Test Program :: hello world"); …

Software Development c++ opengl
Member Avatar for edrianhadinata
0
3K
Member Avatar for sohail.butt.144

Write a C++ program to check whether a triangle is valid or not, your program should have the following function: checktriangle(int,int,int) This function takes the three integer type variables as the angle of three sides. And perform the validity check for the triangle as follows: A triangle is valid if …

Software Development c++
Member Avatar for sohail.butt.144
0
115
Member Avatar for ACE--

Hi Daniweb, I have posted the question before also but for more clarity I posting my question again. Request a quick positive response. I have googled a lot but not getting the information whcih I required. I have a Picture box with the size of 1300, 350. From one particular …

Software Development image vb.net
Member Avatar for ACE--
0
196
Member Avatar for patel28rajendra

for window application I want to fill data in combo box from database using asp.net c# and sql server

Software Development c#
Member Avatar for Hamid_2
0
605
Member Avatar for spawn2004

Hi, I am working on a project and I have to implement a graph and to look for the shortest path. As I read so far the best way is with Dijkstra's algorithm. I am trying to do it but i have some problem. Can you please help me with …

Software Development algorithm c++ data-structure
Member Avatar for spawn2004
0
170
Member Avatar for AhmadHasanSahi

Guys this is the code in c++ of bubble sort but i don't how to show it's output in animation> what kind of project should i made in visual studio and what libraries should i use? please help me guys i really want your help. #include <windows.h> #include <stdio.h> #include …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
208
Member Avatar for ujwal vohra

hi every one i want to ask some coding for hidding data(texx file)within an image....in c#.net description of project working:we have 1 image and one text file we want to hide the data of that text file into image using lsb(least significant bit) method for hidding that text file...fist we …

Software Development vb.net
Member Avatar for ujwal vohra
0
98
Member Avatar for AhmadHasanSahi

i want code of Sorting techniques like insertion sort , merge sort , bubble sort , quick sort. i want their output in gui or in any animation form in any language like c , c# or java. can any one help me plz ?Any one sorting technique is ok.

Software Development c++ gui
Member Avatar for AhmadHasanSahi
0
347
Member Avatar for centenond

so whenever i tried to compile it give me error 2816 ive never used dev c++ although i have used netbeans and i had to change control panel env options and put C:\cygwin\bin but now im using mingw cuz dev c++ came with it. so this is the compiler log …

Software Development c++
Member Avatar for centenond
0
2K
Member Avatar for mixelplik

My while loop should terminate when the user types 0 for employee number. Unfortunately when you press 0 the loops iterates at least once before terminating. I was under the impression that as soon as the sentinal value is triggered the loop would terminate immediately. Right now I run program …

Software Development c++
Member Avatar for mike_2000_17
0
149
Member Avatar for bluedonutblueyedangel

I'm currently working on a homework assignment in one of my classes, and I'm having some trouble with it. I am supposed to make a multithreaded messaging program that allows users to connect using both TCP and UDP. The messaging program works perfectly when TCP is selected. However, I do …

Software Development gui java tcp-udp
Member Avatar for nandosss
0
338

The End.