132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for adrawat

Hi, I have a file in C which has many lines. I want to store each line separately so that i can reference it later with a char *host. How can i do that? Thanks.

Software Development c
Member Avatar for WaltP
0
300
Member Avatar for yeap521

Regarding the title, i want to know the exact way to writing text data to a text file on a web server using http connection in J2ME. I tried the way as below: OutputConnection connection=)OutputConnection)Connector.open("http://localhost/message.txt;append=true",Connector.WRITE); OutputStream out=connection.openOutputStream(); PrintStream output=new PrintStream(out); output.println("Testing"); out.close(); the codes have no problem and no exception. …

Software Development file-system java web-server
Member Avatar for peter_budo
0
104
Member Avatar for SecurExpert

Hi guys, I gat a VB project for a hospital information management system, almost in completion. The issue is that, i want it to collect information from the user installing it. Information like maybe the database name, etc and the likes, you know relevant information necessary for the program to …

Software Development vb.net
Member Avatar for SecurExpert
0
135
Member Avatar for s2xi

Hey guys, I've been looking around the web but can't find a definite answer for this one. I have a program I'm making and I want to cut down my lines by using an array and just have it create my lines for me. I have this set up [code] …

Software Development java
Member Avatar for s2xi
0
90
Member Avatar for bigbags911

[code] import java.util.*; public class Homework11 { Scanner input = new Scanner(new File("keyvalues.txt")); Map<String, Integer> wordCountMap = getCountMap(in); for (String word: wordCountMap.keySet()) { int count = wordCountMap.get(word); while (input.hasNextLine()) { line = input.nextLine(); numLine++; Scanner word = new Scanner(line); while (word.hasNext()){ String nextWord = word.next(); numWord++; numChar = numChar + …

Software Development java
Member Avatar for jwenting
0
93
Member Avatar for himit

Hi, I am trying to parse an xml which i am getting in a variable in my xsl. till the time i do not have any namespace in my xml i can parse all the tags of my xml from my xsl, however, for any tag with a namespace i …

Software Development xml
Member Avatar for himit
0
123
Member Avatar for WesFox13

Hello there. It's me again. I think I got most of the Pseudorandom code fixed but there's a problem. [CODE]// Name: Wesley Montgomery // Assignment 1 (Pseudorandom Class) // CS 211 (5:30 PM-7:40 PM) // Craig Niiyama // This class creates a Pseudorandom Number as well as returns the number …

Software Development java
Member Avatar for jwenting
0
211
Member Avatar for sidhu51

Hi, I have a very big vb6 project file with about 16 form modules, 3 class modules and 3 global modules. I want this to be converted into a exe file so that it could run in any system as a stand alone. I tried the make projectname.exe present in …

Software Development visual-basic
Member Avatar for sidhu51
0
346
Member Avatar for gms_019

hi! gud day! Here is my problem. Can you help me on how to make a monthly report?? im doing a Payment System of a school here in our place. as our Project. and can you help me on how to hide columns and rows of a datagrid also how …

Software Development visual-basic
Member Avatar for jireh
0
81
Member Avatar for teg1989

I'm an extreme beginner with Python (this game is the first time I have ever seen it) so please bear with me. Creating a simple dice game. Place a bet. Three dice are rolled, if any are the same value you lose. If you win, you get double your bet. …

Software Development python
Member Avatar for ~s.o.s~
0
2K
Member Avatar for blind122

I got the first part of my code from my teacher, its how the function should be done, I am just have trouble with what to put for my cin statments as, none of them work. Please help. [CODE]#include <iostream> using namespace std; void reverse(int* a, int n) { int* …

Software Development c++
Member Avatar for turrence27
0
187
Member Avatar for 3cats

I have looked around on this forum and none of the past posts really addressed my issue. I created a .txt file with cust no first and last name. I open the file and read in the first line of the file, this part works well. And it displays to …

Software Development c++ file-system
Member Avatar for 3cats
0
168
Member Avatar for Marine4God

Hello everyone. I am working on my lab assignment and am somewhat stuck on how to proceed. We are studying using the book [I]Starting out with C++: From Control Structures through Objects[/I] by Gaddis. The lab assignment is as stated: [QUOTE]NamesOf1980s.txt is a text file from the SSA detailing the …

Software Development c++ file-stream
Member Avatar for Salem
0
916
Member Avatar for charlieruns

I have a Photoalbum class and a Photo class. The Photoalbum class obviously holds a bunch of photos in an array. Each photo has a subject, location, date, and path. I need to make a method to search for a a photo with a certain String path. I tried: [code] …

Software Development java
Member Avatar for vchandra
0
180
Member Avatar for Witchfairy

This is due within a few hours, and I am unable to spot what is causing the program to not work. Any suggestions? ["""Bounce - is a game that has a ball which increases in speed when you click on the ball. That click signals the ball to speed up, …

Software Development gaming python
Member Avatar for TrustyTony
0
133
Member Avatar for benazirshafi

i need library system coding using vb[code]I need library sytem codings. can anyone help me out in this problem.[/code]

Software Development visual-basic
Member Avatar for abu taher
0
65
Member Avatar for mahela007

I"m trying to make a [URL="en.wikipedia.org/wiki/Sudoku"]sudoku[/URL] puzzle generator (or at least the basics of one) for my project. I'm approaching this by dividing the sudoku grid into 9 rows. Each of the rows will be represented by a list and each list will have 9 elements to represent the nine …

Software Development puzzle python
Member Avatar for mahela007
0
366
Member Avatar for sah15

I'm having troubles with a code for a program (involving classes) where I am supposed to input the three sides of a triangle and the program determines whether the triangle is a right triangle, equilateral, isosceles, and scalene, etc. I have only one error preventing me from compiling my program, …

Software Development c++ oop
Member Avatar for Ancient Dragon
0
1K
Member Avatar for white feather

[CODE] maxDays = calendar.getActualMaximum(calendar.DAY_OF_MONTH); System.out.println(maxDays); [/CODE] When looking through the javadocs it seems like this would work but it apparently doesn't. Any help on figuring why it doesn't or another way would be appreciated

Software Development java
Member Avatar for BestJewSinceJC
0
152
Member Avatar for drummy

Greetings community, I've exhausted all ideas and patience and turn to the community at large for help. I have data formatted as an ASCII text file with easting, northing, and depth fields. I've attempted an arrayList with some success, but there has to be a better and more efficient approach. …

Software Development vb.net
Member Avatar for drummy
0
170
Member Avatar for chec13

Hello, I just started trying to learn c++ a few days ago. Right now I have run into probems, which, has always happened when I try to learn a programming language. Can anyone help me fix this simple multiplication program? [CODE]#include <iostream> int Multiply27( first, second) { cout << "in …

Software Development c c# c++
Member Avatar for chec13
0
167
Member Avatar for coder19

[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define TRAINING_LIST "./rc/training.list" #define TRAINING_FILE "./training_set/%s" #define TEST_PATH "./test_set/%s" #define PREDICTION_FILE "./prediction.txt" #define FEATURE_FILE "./feat/features.txt" #define MAX_RATINGS 100480508 // Ratings in entire training set (+1) #define MAX_CUSTOMERS 480190 // Customers in the entire training set (+1) #define MAX_MOVIES 17771 // Movies in …

Software Development c++ file-stream
Member Avatar for coder19
0
94
Member Avatar for Naloth

I'm getting errors at every occurrence of my void definitions. "expected primary-expression before "void"" and "expected ';' before "void"" at my "void displayMenu ()" "a function-definition is not allowed here before '{" token" "expected ',' or ';' before '{' token' " At every future occurrence of void. Any ideas? I've …

Software Development c++ data-structure ios open-source
Member Avatar for Naloth
0
162
Member Avatar for g2gayan

Hello,.. Im a New Guy to this forum and 1st of all;... Hi :twisted: im a newbie to c# programming as well ,,, anyway.. i have a huge issue .. here is what s going to happen.. [CODE] if (txtPath.Text != "") { FileInfo fn = new FileInfo(txtPath.Text); string p …

Software Development file-system
Member Avatar for g2gayan
0
370
Member Avatar for gnarlyskim

I'm working (well have been for the past few weeks) on a polynomial class to do different things between two polynomials: multiply, divide, get remainder, subtract, add. The coefficients are stored in a pointer to an array listed under private and the degree (also the amount of slots in the …

Software Development c++
Member Avatar for gnarlyskim
0
88
Member Avatar for james8901

Hi folks. I have a text file with a thousands of rows of numbers in it. For example: 1 2 4 6 11 13 19 21 66 97 101 ........ 1 3 9 12 18 26 44 56 98 113...... ........... ...... What I want to do is find the …

Software Development c++
Member Avatar for Ancient Dragon
0
160
Member Avatar for grady-lad

Hi I am Making a horse racing application .... and the concept is when you enter a number in the textfield and select a horse(one of the 8 jButtons) the application will randomly select one of the JButtons and if the Jbutton is the same as the one selected by …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
2K
Member Avatar for adams161

I have visual studio 6 and want to make a mfc dialogue application that is allays on top. By this i mean whatever programs you have open it will allays be on top. It's window will be fairly small so it doesn't get in the way. the reason for always …

Software Development c++ visual-studio
Member Avatar for adams161
0
130
Member Avatar for Excizted

Hello :) My program is supposed to load some data into a buffer - but it fails. This is where i get a segmentation fault... [CODE]char* buf = new char[size + 2];[/CODE] Where my debugging tells me that size is correctly containing the value "1957" which is the actual size …

Software Development c++ gui
Member Avatar for Excizted
0
189
Member Avatar for Sthe

Hi guys I'm completely new to programming, but would like to learn how to create crosswords in j2me, can someone help me with a source code...thanx:)

Software Development java
Member Avatar for peter_budo
0
127
Member Avatar for pinsickle

Probably a dumb question but, How can you tell if a "split" has occurred all the way up a btree? Would it be that the parent pointer would be NULL? Like I said probably a dumb question. I've got my BTreeNode class working (including the add) but the BTree class …

Software Development c++
Member Avatar for pinsickle
0
118
Member Avatar for God Coder123

I'm new to the code blocks ide. How exactly do i change the colours within the code window? Also how do i make code blocks portable as i use it on a number of different computers. any help would be much appreciated >_<

Software Development c++ ide
Member Avatar for God Coder123
0
387
Member Avatar for Nicko_FaTe_

i have written a series of programs in c++ that do various things with dates and the likes, i now have to write a piece pseudo-code that can be used for data checking, abit stuck on how to even start. BEGIN CALL validDate = true CALL validmonth = true IF …

Software Development c++
Member Avatar for WaltP
0
81
Member Avatar for Voltron160

Hello guys, I started this project but cant seem to finish it. You guys are my last hope, any help would be GREATLY APPRECIATED.These are the requirements, it seems I am mixed up. The owners of Body Language Fitness Centre require an information system that can manage and maintain their …

Software Development c
Member Avatar for jephthah
0
128
Member Avatar for Muhammadlodhi

This is begining. BALANCE PARANTHESIS and show the result of ((9-4)/(44*34)) etc ??? what to do? int main() { char arr[30]; for(int i=0;i<30;i++){ if(c=='(') c++; else if(d==')') d++;} if(c==d) printf("parenthesis are balance"); else printf("are not balance"); } further cant understand.

Software Development c
Member Avatar for Adak
0
151
Member Avatar for vorace

hello, i need your help to made a method that return more than one value... i'm working on visual studio and making an application (a small game) for my formation... i've created class composed of other classes in which one i need to call a method of an other one …

Software Development visual-studio
Member Avatar for Diamonddrake
0
81
Member Avatar for ultimatebuster

[CODE] # What exactly is the difference between: class Test: pass # and class Test2(object): pass [/CODE]

Software Development python
Member Avatar for vegaseat
0
81
Member Avatar for terrylau77

Perl newbie here… need some help and suggestions. I’ve searched for many examples but so far it’s all for array operation for two arrays. I have three arrays and want to find the common value in the three array and list them out : Array 1 = {0, 1,2,3,4,5,6,7,8,9} Array …

Software Development perl
Member Avatar for d5e5
0
151
Member Avatar for SgtMe

Let's say I have this: [CODE] class main: def add(self): print '1 + 2 = 3' [/CODE] I then want to be able to call the add function again from within itself. Like this (BUT THIS DOESNT WORK!!!) [CODE] class main: def add(self): print '1 + 2 = 3' self.add() …

Software Development python
Member Avatar for SgtMe
0
82
Member Avatar for jkrause

Hi all! I have two combo boxes: cboRepairCategory (plumbing, landscaping, etc) and cboVendors. I am using Stored Procedures in SQL to store the data from my database and then load them into the combo boxes. The cboRepairCategory will be loaded first. Once the user has selected what type of repair …

Software Development vb.net
Member Avatar for jkrause
0
122
Member Avatar for Gonbe

Hello Daniweb. [B]Scenario[/B] For a project we have to write a irc server. For this, we first wanted to investigate what kind of server architecture we should apply. (e.g. multithreading, multiplexing, multiprocessing etc.) We've written simple servers which implement different architectures. The servers basicially receive a message, and then send …

Software Development c client-server multithreading
Member Avatar for nezachem
0
140
Member Avatar for saggykulji

i am working on Deque class which is wrapped arond array....jus like the circular array works. How can i prompt the user to decide the size???

Software Development java
Member Avatar for saggykulji
0
79
Member Avatar for Wert1

Hello, i am a beginner and need your help. The little programm should run and close another aplication(this works without the loop) every x seconds but it doesnt work :( . Thank you for your help. [CODE]#include <stdlib.h> #include <time.h> #include<iostream> void start (int); using namespace std; int main () …

Software Development c++
Member Avatar for mitrmkar
0
345
Member Avatar for tukky

hey guys im currently working on a project for college. (USING VB) wat the form im working on does, allows the user to enter an ID of a customer and this then displays the customers details the user can then change the details however they want and update them which …

Software Development open-source sql vb.net
Member Avatar for Oxiegen
0
137
Member Avatar for thehivetyrant

Hi there, i have this rectangle and i want to be able to rotate this shape around another when i press a key. i have been able to make it rotate where it is. There are two problems i am having difficulties with: - I can get the shape to …

Software Development c++ opengl
Member Avatar for thehivetyrant
0
1K
Member Avatar for Senefelder

Is there any way to change a VB6 program so that it is NOT stopped from automatically starting by User Account Control in Windows 7? It works fine now IF UAC is shut down, but not at all if it is not.

Software Development visual-basic
Member Avatar for Salem
0
929
Member Avatar for timbomo

I cant figure out how to import a file which contains the price of an item. and once i import the price idk how to put it in my program. AND I DONT TO USE IT AN ARRAY. I AM IMPORTING EACH ITEM ONE AT A TIME. [CODE]void main () …

Software Development c++
Member Avatar for timbomo
0
160
Member Avatar for john_prince

Hi, I've a csv file consisting of two columns - one with "Last Name" and other with "Email Address". I would like to match Last Name ( not an exact but a contain match), and if didn't match, populate third column with "0". Does anyone has a perl script to …

Software Development perl
Member Avatar for john_prince
0
107
Member Avatar for JGClifton

Just wondering if this is possible, basically I have some stored values that I want inserted into the middle of a URL in my C++ program. I then want the program to open up the URL with inserted data into the default browser. If anyone could give me any info …

Software Development c++
Member Avatar for Fbody
0
159
Member Avatar for DCvonB

Hello, I am trying to get the following code to print out the number of days in each month using pointers. This what the program currently prints: Enter a year (ex. 1997): 2001 Year entered: 2001 --Not a Leap Year!-- Number of days in each month: January: 0 February: 0 …

Software Development c
Member Avatar for Aia
0
152

The End.