132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for murid

i'm making program to send picture through socket programming. now my program only can send to 1 destination using destination's IP address. i'm trying to develop the program, so my program can sending picture to many destination. with code below, i still cant send to many destination. only the 1st …

Software Development file-stream socket-programming vb.net
Member Avatar for kvprajapati
0
149
Member Avatar for sweetheart39150

I keep getting an error starting from line public static boolean hide. Can someone please help I am using eclipse. [code]import java.util.*; import java.io.File; import java.io.*; import java.io.BufferedReader; import java.awt.*; import java.lang.String; public class Steganography { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated …

Software Development java
Member Avatar for masijade
0
183
Member Avatar for nkasei28

Hi there. Please i have a little problem with a report i want to generate in a program i've written. The program is to be used to check the attendance of students and at the end of a month of checking the attendance, print a report of how many times …

Software Development vb.net
Member Avatar for kvprajapati
0
114
Member Avatar for samdesilva

Hi, I am creating a website where a user has to register to access the site features. Once the user registers, his registration has to be confirmed by the admin guy, who is maintaining the site. The thing is I wanted a way to send an email automatically, once a …

Software Development java
Member Avatar for satuti
0
110
Member Avatar for wacky4444

My question is that the program is suppose to randomly generate a addition question with two integers less than 100 this is what i have so far: [CODE]import java.util.Scanner; public class ex3_13 { public static void main(String[] args) { // 1. Generate two random single-digit integers int number1 = (int)(Math.random() …

Software Development java java-netbeans
Member Avatar for javaAddict
0
81
Member Avatar for Olliepop

Hey guys :) I am stuck on this piece of code i am about to give below. What happens, is the server sends a "ping" to the client, the client sends "pong" back, but when the server sends "pong" back to the client (i KNOW this is sent) the client …

Software Development client-server java
Member Avatar for JamesCherrill
0
216
Member Avatar for cromie09

could anyone please help me with this1. Create a simple Times Table program which will allow the user to enter an integer value n (between 1 and 20) into a textbox. On the click of a button output to a label the n times tables. Use a For…Next loop to …

Software Development vb.net
Member Avatar for ssommaro
0
108
Member Avatar for lewashby

I'M trying to learn to program through C#. The book I'M reading is trying to explain namespaces but I'M failing to understand it. As I understand it, a class is a blueprint for an object and, and a class is just a special block of code. So what exactly is …

Software Development
Member Avatar for kvprajapati
0
118
Member Avatar for abhi.it01

Hi in that code i need all lines those started with doble k in another as out put like double k325 = 2.000000e-01; . . .. double k297 = 8.000000e-03; pls help me i tried but i didnt get some one pls help how to solve this problem the code …

Software Development c++
Member Avatar for WaltP
0
225
Member Avatar for schoolboy2010

Here's the code. I'm trying to read data from a text file and put it into an array... I'm trying to do this using a function.... can anyone please help..... it's not running. There's an error somewhere.... [CODE] int main() { float readFloat(std::ifstream& readFile) { float holdData = 0; while(holdData …

Software Development c++
Member Avatar for WaltP
0
157
Member Avatar for c1979h

I am pulling a list of 3 items with a list price from a text file, I ask for the percentage off and calculate it against the list price then I update to file with revised price. The program compiles correctly, but it never displays the info in the console …

Software Development c++ file-system flash
Member Avatar for jonsca
0
197
Member Avatar for swolll

Hey guys. I need to write a program that does the following: Requirements - The program... - Shall allow user to enter individual songs with information: - Shall ask for song name. - Shall ask for length. - Shall ask for artist name. - Shall ask for album name. - …

Software Development c++
Member Avatar for jonsca
0
2K
Member Avatar for Vindhyaauri

Hello!! I have to design a program which can read the following file: [CODE]k1082 SciTegic08250908273D 30 32 0 0 0 0 999 V2000 0.3230 -0.6380 -0.7700 C 0 0 1.1810 -1.2460 -1.7340 C 0 0 2.5950 -1.1640 -1.6010 C 0 0 3.1670 -0.4730 -0.5020 C 0 0 2.2620 0.0980 0.4020 …

Software Development perl
Member Avatar for Vindhyaauri
0
190
Member Avatar for schoolboy2010

Hi How would I write a function that reads numbers from a txt file into an array. For example a function to call this code below: [CODE] float gradeData[12] = {0.0F}; int i; // loop counter ifstream myfile ("rainfall.txt"); if( myfile.is_open() ) { i = 0; while( i < 12 …

Software Development c++
Member Avatar for schoolboy2010
0
87
Member Avatar for jemz

hello please help me on this. i have cmdadd_click()..when i click the button add,the data will display on the flexgrid at the sametime it write on the notepad..my problem is that i don't know how to make code on cmddelete_click().i want to delete the data i added on the notepad …

Software Development visual-basic
Member Avatar for ankush.mukherje
0
236
Member Avatar for ceyesuma

Hello all. I have the TreeSet Component that won't add any thing uising the add method ex: [CODE]nameSet.add(projectName);[/CODE] The exception always gets the text in the String projectName xxx for example. and Throws nullpointer and traces out the string but adds null to it. ex xxxnull What more do I …

Software Development java
Member Avatar for AbhikGhosh
0
152
Member Avatar for vampgirl13

Hi Everybody, I've created an array to hold the alphabet . It uses the scanner class to ask the user for a position in the array and print that. I have the first part working however I need to use system.array copy to create a new array of size 27, …

Software Development java
Member Avatar for AbhikGhosh
0
2K
Member Avatar for nsjoe

I'm new to using delegates and invoke methods. Can someone please quickly identify what I'm missing here. I know this code is no where near completed right now, but as is, it's working for what I'm trying to test. Basically I'm creating a simple client application that is receiving a …

Software Development c c# c++ client-server
Member Avatar for sknake
0
988
Member Avatar for makdu

Hi, My application needs to run the command prompt with admin privilage . ie with the same effect when we select start-> all program--> accessories--> right click on command prompt --> run as administrator. Here is the current code i have for using command prompt from c# [code] static void …

Software Development
Member Avatar for makdu
0
5K
Member Avatar for kenji

Hi, I'm trying to copy a value in a vector to a string. The vector is also of string type, I'm trying to copy through the iterator. [code=CPLUSPLUS] for(iter = inputStr.begin(); iter != inputStr.end(); iter++){ string temp = inputStr.at(iter); int count = 0; for(int i = 0; i != temp.size(); …

Software Development c++
Member Avatar for jonsca
0
137
Member Avatar for jananis

Hi all can anyone please help me write a shell script for file transfer from windows to unix server and vice versa. i m new to unix shell scripting so kindly bare with the small mistakes tht i mite have made the code is: [CODE]#!/bin/sh filename="sample.txt" user='user' password='passwd' IP='some ip' …

Software Development shell-scripting unix
Member Avatar for jananis
0
348
Member Avatar for perroned

could someone please explain to me what wrong with my do while loop. i made a pokemon game in visual basic for school. i am teaching my self C++. i just started this weekend and wanted to see if i could covert my code over. everything works perfectly without the …

Software Development c++ visual-basic
Member Avatar for perroned
0
108
Member Avatar for MasterPengwin

Hey, I currently have a program that runs a loop with some mouse clicks in an internet browser to do some menial tasks I do not want to do. But I have to specify the number I want it to do before hand, and since the mouse clicks are too …

Software Development
Member Avatar for Diamonddrake
0
162
Member Avatar for markfisher

Hello everyone I have been working on generic C data structure (Doubly Linked List) and I have a question: ------ List.c ----- [code] struct node { void *data; struct node *next; struct node *prev; }; struct list { unsigned int length; struct node *head; struct node *tail; }; typedef struct …

Software Development c c# c++ data-structure linked-list
Member Avatar for markfisher
0
161
Member Avatar for CurtisEClark

I'm making this code for class but it will only display the number of days as 28 29 or 30. Im new to Java and would really appreciate help. [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package days; …

Software Development java java-swing
Member Avatar for AndreiDMS
0
124
Member Avatar for Iamthedude

I am attempting to get an input that can have varied types, float, int and a string are the three, I'm using sscanf to analyze the input from a buffer but for some reason I am getting memory access violations and I don't really know why. Main program: [ICODE] #include …

Software Development c
Member Avatar for Iamthedude
0
121
Member Avatar for runningbull

The password salt (the byte array) can be any random collection of numbers - so long as it matches in both the encrypt and decrypt methods. Also - the same password key needs to be used in both encryption and decryption.

Software Development encryption
0
356
Member Avatar for kde

I have binary search - this one , but i need to change it like this , that it will search : for example we have array {1,10,11,12,15,16,22,22,22,22,30,40} I want to find 22 but not randomly - or it will be first 22(that goes after 16) or last 22 (that …

Software Development c
Member Avatar for Ancient Dragon
0
94
Member Avatar for ppotter3

Hello! I have a question regarding the set up of my binary search. For my program I am working on, I have taken a .txt file full of first names and sent those first names to a string array. The names are then sorted, and from there I ask the …

Software Development c c# c++ objective-c
Member Avatar for mitrmkar
0
714
Member Avatar for jigglywiggly

Ok... so i am making a rather simple calculator, that solves for either derivatives or a polynomial. Though I have to make my own linkedlist is the challenge. Ok, I will just copy and paste the LinkedList.cpp file: [code]#include <stdlib.h> #include <cstdlib> #include <string> #include <cstdlib> #include <iostream> #include <algorithm> …

Software Development algorithm c++ java-netbeans linked-list
Member Avatar for jigglywiggly
0
222
Member Avatar for schoolboy2010

Hi... I'm trying to write a program that reads data(numbers) from a text file into an array, finds the average and sorts it in ascending order then outputs the result into a txt file. Here's what I've done so far... it's not running, pls help [CODE] #include <iostream> #include <fstream> …

Software Development c++
Member Avatar for schoolboy2010
0
106
Member Avatar for rwill357

I have been given the task of finding the complexity of the function used to find the kth smallest integer in an unordered array of integers. Below I have displayed the function I am analysizing. I have shown the steps as I understand them. Any help in understanding this would …

Software Development c++
Member Avatar for Anarionist
0
412
Member Avatar for nunos

Given a vector of bytes with length multiple of 8, how can I, using mmx instructions, convert all 2's to 5's, for example? [code] .data v1 BYTE 1, 2, 3, 4, 1, 2, 3, 4 [/code] Thanks.

Software Development assembly
Member Avatar for nunos
0
108
Member Avatar for sfrider0

I just need to be able to get and read the text in my gmail inbox using c#. I've googled it but mostly all I found was how to send, which I already know how, email. I just want to connect to my own account. I don't need to get …

Software Development client-server email
Member Avatar for sfrider0
0
204
Member Avatar for Lukezzz

Hi, I wonder how it would be possible to pass a String to the clipboard. If you normally select a textstring in for example WordPad and press Ctrl-C, you copy this string to the Memory/Clipboard so you can Ctrl-V that text somewhere else. I wonder how that would be possible …

Software Development c++
Member Avatar for jonsca
0
114
Member Avatar for Soileau

I am getting a seg fault when I try to run this code. The compiler is also giving me odd warnings about how an integer constant is too long for "long" type. Here is the code: Declarations [CODE] #include<stdio.h> #include<string.h> #include<stdlib.h> void printstates(){ printf("Enter the number for the corresponding state:\n\ …

Software Development c
Member Avatar for Soileau
0
134
Member Avatar for MrNoob

oke I was coding some stuff involving 2d array allocating i normally know how to do it in main coz you don't need to pass adr main ptr that get's allocated but when i made it i got somewhat confused I don't know why it went wrong [code] #include <stdio.h> …

Software Development c
Member Avatar for MrNoob
0
116
Member Avatar for GregPeters

Ok this is the problem... Basically when someone enters a figure, say £100, I want to remove the £ sound before doing some processing. at the moment I have this: [CODE] program remove_pound; uses crt, sysutils; var s: string; p: char; begin P := chr(156); Writeln('Please enter an amount of …

Software Development pascal
Member Avatar for GregPeters
0
2K
Member Avatar for A_Dubbs

I am a beginner programmer who is moving on from the basics of python to wxPython. I have the book [I]wxPython in Actio[/I]n and am using it as a reference while I make GUI programs for fun (still haven't sat down and read through the book, will someday). I am …

Software Development gui image python
Member Avatar for Ene Uran
0
1K
Member Avatar for Ap0ca1ypse

Hello, I can pull 3 tables data into my program and read from all of them, i can update all 3 datasets but when it comes to updating the actual database i can only send the updates from the last dataset. [CODE] Imports System.Data Dim con As New OleDb.OleDbConnection Dim …

Software Development dataset open-source vb.net
Member Avatar for Ap0ca1ypse
0
110
Member Avatar for glenlivet

I'm pretty new to java and I've read some documentation on Layout specifically BoxLayout. I'm not hung up on BoxLayout but it seemed to do what I need. Problem is that label (status) is not left aligned and I can't seem to force it to the left. It will move …

Software Development java java-swing
Member Avatar for glenlivet
0
96
Member Avatar for Xeros606

I've taken a few classes in high school that used java (including AP Computer Science A/AB) and have a grasps on the basics of the language. However, I know nothing on making an actual application, since most of the projects we made in class were simple little things; their main …

Software Development java
Member Avatar for mohamedsafiq
0
89
Member Avatar for Kristensen292

Hello i have a problem, i need the code for tracking the mouse movement in VB 2008. my program needs to make a pop-up window when the mouse have moven an inch ( ex.) some code suggestions is needed, thank you - Martin

Software Development vb.net
Member Avatar for Kristensen292
0
2K
Member Avatar for vimals

These are sheme codes.I intend to put the first two values in a list.. Everytime I run the codes,I get some (#<promise> . #<promise>) ..I am pretty sure of my codes bt nt so sure y am nt getting the intended results..I would be highly obliged to those who cn …

Software Development
Member Avatar for vimals
0
62
Member Avatar for Nicky4815

Hi, I'm working on a dissertation based around graph visualization. I need to make a GUI for my program but I am having trouble getting the JPanels to display what is required. My code so far: [code] //Class to create the GUI import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Component; import javax.swing.JFrame; …

Software Development gui java java-swing
Member Avatar for mr.george
0
135
Member Avatar for Iamthedude

I'm not even certain if I am wording my title correctly for this question but this is my predicament. I'm trying to get input from the user, it could possibly be a float value like so ###.## or it could be a character value like DNA, I/P, or F, or …

Software Development c++
Member Avatar for Iamthedude
0
119
Member Avatar for PinkStone

Hi I have been having this issue for a while and cannot figure how should I start to do this with python. Actually Im not a programmer but would like to learn it. Not just because of this (what topic title) says but, for sure, for other advantages to. I …

Software Development python
Member Avatar for PinkStone
0
125
Member Avatar for pucivogel

i have to create a n hotel management program using GUI, i hava done the gui part so far but i need help in creating the actionPerformed class,how am i supposed to do the reservation,and select rooms for 2 persons or one and rooms that overlook the sea or the …

Software Development gui java
Member Avatar for pucivogel
0
1K
Member Avatar for BevoX

Greetings! So my question is: Is it possible to create your own data type? Not a class, or a structure, that builds from predefined C++ types, but your very own. For example a 128bit integer type, or a very very long floating point data type, or a binary number type …

Software Development c++ data-structure
Member Avatar for maf5693
0
4K
Member Avatar for gerti13

Hello. I've spent many hours on this code and I cannot figure out why when I either declare "kot" - which will be in the code below or when I call blob_detect() which uses included .cpp with a "new" call (so to speak) I get an error allocating memory. If …

Software Development c++ storage visual-studio
Member Avatar for jonsca
0
150

The End.