132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for huntaz556

Hi everyone im making a program to keep track of your movies just keeping it simple ! but im having a problem i am writing what movies you have to a text file but i cant append to it every time i write to the text file it overwrites everything …

Software Development file-system python
Member Avatar for TrustyTony
0
296
Member Avatar for ooops.789

hello....i am trying to establish a communication between server and client and later to do some communication between them, so first i am trying to establish communication and i see that server gives "segmentation fault" as the output. I am placing the code below, check it out and let me …

Software Development c client-server socket-programming
Member Avatar for ooops.789
0
3K
Member Avatar for shaneos

I'm writing a code to put names in alphabetical order. The code i've written wont compile as its teling me that 'left operand needs l value'. The lines it refers to is where i'm trying to swap around strins using pointers. I could use some help with this, thanks! [CODE] …

Software Development c
Member Avatar for Smeagel13
0
114
Member Avatar for mesanda

hi, i need a help for making double link list program in C double link list (file.h and file.c) in prototype insert first, insert after, insert last, delete first, delete after, and delete last. this program required in hospitaL you can email me : <email removed> (zip) i need for …

Software Development c seo
Member Avatar for mesanda
0
96
Member Avatar for as3g

Is there any way to shorten this function by way of an array, list or the like? I've tried various methods (no pun intended) but can't seem to make it work, I'm getting errors coming out the wazoo! I don't want the code, just point me in the right direction.[CODE]def …

Software Development python
Member Avatar for TrustyTony
0
94
Member Avatar for Arjunah

This is a part of my quiz program in which i ask the user to input question and 4 options and the correct option after which in new funtion i ask the quiz. but although it is asking me "option-1", its skipping the "Ques-" [CODE]int quizquestion() { cout<<"\nQues- "; cin.getline(stmt,100); …

Software Development c++
Member Avatar for Narue
0
250
Member Avatar for techlawsam

Ok So I have to create a Date Class that will allow me to return the current day with data members of month , day, and year this is what I have for from my Main() class: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DateApp2 { class DateApp …

Software Development oop
Member Avatar for Kohai
0
336
Member Avatar for lele07060

can someone help me and tell me what is wrong, I can't figure it out. It is pointing to the line "public class Lab4.24" [CODE]import java.util.Scanner; public class Lab4.24 { public static void main(String[] args) { int i; float sum; i=3; sum=0; while(i<=99) { sum=sum + ( (i-2)/i); i=i+2; } …

Software Development java
Member Avatar for JeffGrigg
0
83
Member Avatar for sha11e

I downloaded mysql-connector-java-5.1.18 and put it on my USB drive. I brought my USB drive to school and opened up Eclipse, in there I added an external .jar (the mysql-connector-java-5.1.18.jar). Then I wrote this java code: [CODE] import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.Scanner; public class Main …

Software Development java sql
Member Avatar for ~s.o.s~
0
210
Member Avatar for 54uydf

Hi, I'm seriously guessing here, but since I've seen that some php websites contain java stuff, like a java chatroom, I wonder if I can find a better solution adding some java to my php code. I'm looking for a way to browse and select a folder, or allow the …

Software Development file-system java
Member Avatar for 54uydf
0
179
Member Avatar for slasherpunk

So I know of two methods of reading or writing files in java. The first is the read(byte[]) method provided by InputStream class. The second is the readLine or write() method provide by the Buffered prototype. Which is the more efficient one out of these? Which one would you recommend?

Software Development java
Member Avatar for JamesCherrill
0
157
Member Avatar for ITHope

So my java pprgram is actually a GUI I did all of it except I cant figure out how to convert between bases example: number=2239 base=3 newbase=4 first i need to convert 2239 to base 3 which would be 2 * 3^3 + 2* 3^2 + ..... then convert that …

Software Development gui java java-swing
Member Avatar for JeffGrigg
0
115
Member Avatar for nndung179

INPUT.txt [CODE] 6 p q r s k m 6 ~p|q ~q|r ~p|~r|s ~r|k ~k|m r m [/CODE] right OUTPUT.txt [CODE] ~p|q,~q|r,~p|~r|s,~r|k,~k|m,r,~m p: Resolve unsuccessfully q: ~p|~r|s,~r|k,~k|m,r,~m,~p|r r: ~k|m,~m,~p|s,k,~p|k s: Resolve unsuccessfully k: ~m,~p|s,m,~p|m m: ~p|s,0,~p TRUE [/CODE] My Program [CODE] #include "stdafx.h" #include <string> #include <fstream> #include <vector> #include …

Software Development algorithm c++ open-source
Member Avatar for MonsieurPointer
0
134
Member Avatar for myk45

Hello all, I am a little confused about .lib and .dll files. I always thought that .lib files refer to a static library and that a .dll is the dynamic library. Recently, i read that .lib files also act as a stub for a .dll and that the .lib files …

Software Development c++ ide
Member Avatar for myk45
0
917
Member Avatar for asmsycool

Hi, i've a problem with my codes, when ever i run it, i got an error from the checking i implemented. Can some pls explain why does the error keep coming. [CODE]import java.net.*; import java.io.*; public class EchoClient{ static final int serverPort = 1026; static final int packetSize = 1024; …

Software Development client-server java tcp-udp
Member Avatar for JamesCherrill
0
452
Member Avatar for technopup

Hello, I need to return the areas connected with the town placeid attribute of an XML document. The town placeid is a variable equal to a current page variable $x. e.g. xpath("/country/city/town[@placeid=$x]"); How can I return the areas for each using simpleXML/XPATH? <country> <city> <town placeid="" /> <areas> <area>A</area> <area>B</area> …

Software Development xml
Member Avatar for technopup
0
126
Member Avatar for chuyauchi

This program is to enter the scores, get the grades, and display the result. However, I get a [U][B]fatal error LNK1120: 1 unresolved externals[/B][/U] Does anyone know how to solve this problem? [CODE] #include <iostream> #include <iomanip> using namespace std; // Function prototype void letter(double score, double resultNum, char grade); …

Software Development c++
Member Avatar for chuyauchi
0
1K
Member Avatar for rexdon

i have created a code for log. it is intended to provide the user with a recent history of various events, primarily used in data-gathering applications where one might be curious how a particular transaction completed. In this case, the log need not be permanent nor saved to a file. …

Software Development
Member Avatar for nick.crane
0
336
Member Avatar for Ruchi224

Hello.. I want to populate my combobox with the list of banknames available in my database.. I tried doing so but i am getting a blank list.. ie.. shows no value in combobox !! Here is what i tried.. Please help !! [CODE]Private Sub ComboBox4_SelectedIndexChanged(ByVal sender As System.Object, ByVal e …

Software Development open-source vb.net
Member Avatar for Ruchi224
0
111
Member Avatar for iThaos

Hello fellow developers, Let me just start by saying I have had an abnormal start to developing. I started first with HTML > PHP > Java. I don't have much experience with Java but I feel quite confident in making PHP applications. I have already searched the forums but nobody …

Software Development android-development java php
Member Avatar for iThaos
0
148
Member Avatar for kikiritce

I have problem with my code. this code in c++ i have to write in assembly. i try to write but it doesnt work for (i=1; i<11; i++) if(i%2 == 0) sum = sum +i mov cl, 02d mov ax, 0d mov bh, 0d check: inc al mov dl, al …

Software Development assembly
Member Avatar for kikiritce
0
5K
Member Avatar for DoubleTapThat

Wrote this for my college open evening just to give prospective students a taste of python. added a little "information" section just to bulk it out a bit (this section is slightly messy i know). Not sure if it works in command line, definitely works in IDLE but the command …

Software Development mathematics python
Member Avatar for TrustyTony
0
320
Member Avatar for rushi3311

[CODE]RequestDispature red = request.getRequestDispature("xyz"); red.forward(req,res);[/CODE] in this simple example RequestDispature is INTERFACE..! "red" is reference for that , but whose instance it actually holds ??? "forward" and "include" methods are of RequestDispature interface...but where they are implemented ??? in which class ?? which class implement this interface ??? Can anyone …

Software Development java java-jsp
Member Avatar for JamesCherrill
0
221
Member Avatar for nikita.

Hi , I want to run a shell script which is present in another user's id after switching it to that user in the same script. but it is not taking it. I m using the su command for that. [code] su - user1 -c "./${HOME}/script1.sh" [/code] it just says …

Software Development shell-scripting unix
Member Avatar for nikita.
0
173
Member Avatar for chuyauchi

I have difficulty to change the following program by using the array. The display need to be like the following: [INDENT]Result 1: 50.00 Grade U Result 2: 95.60 Grade A Result 3: 72.00 Grade B[/INDENT] Can anyone tell me how to do it? Thanks. [CODE] #include <iostream> #include <iomanip> using …

Software Development c++
Member Avatar for chuyauchi
0
124
Member Avatar for Acidburn

Hello guys, I'm trying to develop a application that calls another exe from my code base. The method to execute is pasted below... [CODE] private void mymethod(FileInfo file) { ProcessStartInfo startInfo = new ProcessStartInfo("jsmin.exe"); startInfo.Arguments = "<fulljslint.js >jslint.js"; Process p = new Process(); p.StartInfo = startInfo; p.Start(); p.WaitForExit(); }[/CODE] The …

Software Development
Member Avatar for nick.crane
0
2K
Member Avatar for Kayla1809

Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit. An item added to …

Software Development gui java java-swing
Member Avatar for mKorbel
0
102
Member Avatar for federerforehand

I got dinged points for these: Instructor wants 1. The class is divided into multiple methods, mentioned a Constructor instead? 2. The toString method is included in the Card class to return the face and suit. What did I do wrong? How do I fix it? I am pretty lost …

Software Development java
Member Avatar for adarshcu
0
138
Member Avatar for midgarsorm

Hello I'm using visual studio I need help making a program where a txt file will be read. my program should read all the test scores in the line and will stop when -1 is entered example input file joshua 90 89 -1 michael 76 80 89 -1 Shawn 78 …

Software Development c++ visual-studio
Member Avatar for midgarsorm
0
112
Member Avatar for ananth3125

hi, i had created a form with datagrid view , in that a table is linked with MS Access database , i need the coding steps in vb.net

Software Development vb.net
Member Avatar for ananth3125
0
145
Member Avatar for normanallen

I have been using Visual Studio C++ 2010 Express to do some work, which has now succeeded after a lot of trouble. I wanted to go one step further but it seemed that I would need the full 2010 .NET software to achieve this. I downloaded Microsoft Visual Studio 2010, …

Software Development c++ visual-studio
Member Avatar for normanallen
0
193
Member Avatar for xfbs

Hello everyone, I have just written some code that measures a system's [URL="http://en.wikipedia.org/wiki/FLOPS"]FLOPS[/URL], but before I wrap it in a class and make a GUI for it, I would like to know what you guys think of it, if you can see any bugs and/or if you got any suggestions …

Software Development c++ gui
Member Avatar for vijayan121
0
2K
Member Avatar for grh1107

Hey, Im having trouble writing a function that will take a limited running average from a file. the running average works just fine, its just when i try to limit the input, i just come out to inf. could it possibly be that im using a static double for the …

Software Development c++ mathematics
Member Avatar for vijayan121
0
224
Member Avatar for JNicoleKMC5

Ok, I am def a beginner in writing code (use to be ok, but haven't done it in soooo long, so I am very rusty). Let me give a little background about the program I am trying to write before I get to my question so that it makes a …

Software Development c++
Member Avatar for vijayan121
0
170
Member Avatar for karisma

Can ne1 pls help with how to subtract two large integers stored as an array. i need to do the same for calculating the jacobi symbol. thanks :)

Software Development c
Member Avatar for WaltP
0
420
Member Avatar for Unethikal

I need help on sorting strings, particularly complicated ones.I had to read in data from a text file Textfile.txt Xiao Wang 135798642 Lucie Chan 122344566 Rich Morlan 123456789 Amir Khan 975312468 Pierre Guertin 533665789 Marie Tye 987654321 I managed to put them into an array using this user-defined function (not …

Software Development c++
Member Avatar for raptr_dflo
0
217
Member Avatar for fanfunstar

Anyone can help me with this algorithm? 1 set up stack in and print it 2 while stack in is not empty repeat 2.1 max = in.pop 2.2 while there are still element in stack in repeat 2.2.1 value = in.pop 2.2.2 if value > max 2.2.2.1 temp.push(max) 2.2.2.2 max …

Software Development algorithm c++
Member Avatar for raptr_dflo
0
2K
Member Avatar for indrajeet6

[B]Hi I would like some helpful hints on how to make a program to: 1)Create a Binary tree 2)Traverse said tree in Preorder form. Thank You [/B]

Software Development c
Member Avatar for suyash_iiit
0
207
Member Avatar for AndyPants

hello, im working on a file transfer program but a cant figure out how to make the main function work, i have spent hours on Google trying to find a solution... but i cant. Now, as you probably have guessed: the main function is to transfer files over the internet, …

Software Development client-server file-system vb.net
Member Avatar for GeekByChoiCe
0
2K
Member Avatar for fairy1992224

I had managed to let users upload the image and save into the database and the folder. I need to generate thumbnail from the image and save into the database and the folder as well. But there is some error with generating thumbnail. Can someone help with me with it? …

Software Development asp.net assembly file-stream
Member Avatar for hericles
0
173
Member Avatar for Daigan

Hi, so I'm new with Java and the programming thing. Here's my problem. I need to do an errortrap without using a loop and creating a method solely for errortrapping so I figured i need to use try and catch statements but I'm not sure how. Basically my problem is …

Software Development java
Member Avatar for Daigan
0
127
Member Avatar for markdean.expres

Guys I have been creating a program that copies and moves files from folder to folder; I am using this sort of code; fileToCopy.CopyTo("path here...") or FileToMove.MoveTo("path here...") My problem is, when I am copying or moving a large file, It's taking so much time and my program is hanging …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
175
Member Avatar for Arun Vir Singh

Hi, i want the difference of time between clicking two buttons in a label. i tried most of the things but not working for me. could anyone provide me the exact coding for this. There are multiple coding already there for those buttons however i want to use it to …

Software Development visual-basic
Member Avatar for WaltP
0
137
Member Avatar for tallygal

Here is what I have to do. this code needs to be modified to be able to enable the user to select a file in which to store grades. The application should allow the user to write any number of grades into that file and it should write one grade …

Software Development file-system vb.net
Member Avatar for tallygal
0
232
Member Avatar for shenanigans902

Hi, I keep getting the error message "Missing return statement" after my if else controls. I have return controls, I'm just not sure if I can implement multiple returns. For example, I am trying to create a method in which the middle value of a sequence of numbers is returned, …

Software Development java programming-construct
Member Avatar for thines01
0
1K
Member Avatar for MeSam0804

hi, I wanted to get the directories in a specific path and I wrote that by threading programming but when I call [CODE]waithandle.waitall(mywaithandles)[/CODE] , I get the unhandled exception of type 'System.ArgumentNullException' occurred in mscorlib.dll Additional information: Value cannot be null. error. Can anyone help me what to do ? …

Software Development vb.net
Member Avatar for MeSam0804
0
316
Member Avatar for akingcool

Hi, I am a complete newbie when it comes to programming, the only real knowledge I have was when I created a program 3 years ago in Visual Basic. I guess I know the theory behind programming concepts but have no idea what to do in Java. Not sure if …

Software Development java java-netbeans seo visual-basic
Member Avatar for akingcool
0
419
Member Avatar for dolfan55aj

I'm trying to do an analysis of buildHeap vs. inserting an array of n values one at a time into a heap. I have a random case, best, and worst case. I was wondering if anyone knows what would actually be in an array to make the best and worst …

Software Development c++ programming-construct
Member Avatar for raptr_dflo
0
379
Member Avatar for MachDelta

Another newbie question here. What's the difference between these two? [CODE]cin.ignore(cin.rdbuf()->in_avail(), '\n'); cin.ignore(numeric_limits<streamsize>::max(), '\n');[/CODE] I understand that the former will ignore only the characters [I]left[/I] in the stream buffer, while the latter tries to ignore characters equal to the [I]size[/I] of the buffer. So the end result should, normally, be …

Software Development c++
Member Avatar for MachDelta
0
133
Member Avatar for akingcool

Hi, I am trying to make an array to read txt files. I have hard coded it to 3 for the array but I would prefer for it to be able to read the txt files to see how big the array should be. I have implemented some code to …

Software Development java
Member Avatar for akingcool
0
190

The End.