132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nateuni

Guys.. I am trying to figure out Comparator so I can compare Strings in an object array (the object has other data types as well). I have been hunting around and have come up with this.. but I cant get it to work --> Can anyone point me in the …

Software Development java
Member Avatar for nateuni
0
98
Member Avatar for sfuo

Hi, I was wondering if anyone could help me figure out how to see who is connected to you when you are hosting a game on a specific port via c++. I know you can use netstat in cmd prompt and it shows a bunch of info of who you …

Software Development api c++
Member Avatar for lashatt2
0
135
Member Avatar for BlackPhoenix

[B]Title:[/B] WinSock connect() problem. Client thinks it is connected even when Server is down As of right now, my program incorrectly displays the status of the connecting socket. Because of the if statements seen below, even when the server is down, my friends can access a part of the program …

Software Development c++ client-server
Member Avatar for lashatt2
0
2K
Member Avatar for agr.pallav

i would like to know the way we can make user enter a number in a menu reply perhaps so that he doesnt have to press the enter key...........i.e. the program automatically proceeds with the give value and doesnt wait for an enter key to be pressed. its easy in …

Software Development c
Member Avatar for Tom Gunn
0
163
Member Avatar for Ene Uran

I have two similar lists and want to create a new list with just the differences between the two. Is there an existing function or do I have to iterate with a for loop?

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for IFEEL

Hi, why would this not work? (example) [CODE] fileA.h: // declare the function void methodA(); fileA.cpp: // define the function void methodA(){}; fileX.cpp: include "fileA.h" // call it methodA(); <--linker error, can't find the symbol[/CODE] All my headers have the #ifndef guard. Thanks!

Software Development c++
Member Avatar for IFEEL
0
98
Member Avatar for Umarmai

Hello, am currently workin on a project in form of a windows reminder, bt am havin serious problems with calling up the systems beep and sounds using shell. thanks 4 ur anticipated help.

Software Development vb.net
Member Avatar for sknake
0
106
Member Avatar for TomMan

I am trying to compile this, but when I run g++, I get this: tom@griffindor:~/Projects/wermz$ make g++ -c -Wall -O3 main.cpp -o main.o g++ -c -Wall -O3 wermz.cpp -o wermz.o g++ -c -Wall -O3 logger.cpp -o logger.o g++ -c -Wall -O3 win_funcs.cpp -o win_funcs.o g++ -c -Wall -O3 lin_funcs.cpp -o …

Software Development c++
Member Avatar for dkalita
0
261
Member Avatar for Shruti Tapadiya

I wanted to know how can I implement merge sort and quick sort using multithreading in c#

Software Development multithreading
Member Avatar for sknake
0
274
Member Avatar for Umar Ali

[COLOR="Green"]Hello I have a problem with this code. I'm trying to connect to local dns server in order to get the ip of the hostname( that user would enter). For now, i'm just trying to connect to the local dns server, and this code gives me following 8 errors.. [COLOR="Red"]client.obj …

Software Development c++ client-server dns
Member Avatar for Umar Ali
0
253
Member Avatar for starboy

Dear. everybody. when i progress the developing some functions using mysql db with vc++2005, i have the following problems i connected mysqldb and i runned the query to insert some records to my table in the DB, but i cant success in inserting. my sample code is followed as : …

Software Development c++ mysql
Member Avatar for starboy
0
476
Member Avatar for Ghost34

im just wondering if anyone cold send me an example of how to put upload and browse picture in vb 6.0 with database access 97

Software Development visual-basic
Member Avatar for debasisdas
0
104
Member Avatar for Israelsimba

Hello All. i have just finished coding a small subscriptions project for a magazine. My main challenge now is the package is supposed to send emails to subscribers notifying them if their days are due. email notifications are supposed to be sent to clients telling them of the status of …

Software Development visual-basic
Member Avatar for debasisdas
0
113
Member Avatar for boydale1

I was given homework to write a program that finds if a double (64 bit) is negative. The double uses twos complement, so the first bit will tell if it is positive (0) or negative (1), but you all probably know that. The problem I am having is that there …

Software Development c
Member Avatar for yellowSnow
0
195
Member Avatar for bludeath

Hey, my problem basically is that I have no idea why images that I am loading from my files are not getting printed to this little panel I've created. Basically, the functionality i have is that users select units and then I want to lay out all the units that …

Software Development
Member Avatar for Geekitygeek
0
111
Member Avatar for venkat arun

Hello, I am trying to make a compiler. Don't ask me why because I am making it for fun and experience. I have made a lexical analyser in c++ (I didn't use flex). I now want to make the parser for which I want to use Bison. But I am …

Software Development c++
Member Avatar for Nick Evan
0
131
Member Avatar for Samyx

I want to create a method equals(Object obj) to test if two objects are equal. But I don't even know how to start. Here is my program [code] class LinkedList { ListItem front = null; ListItem rear = null; int numItems = 0; // Current number of items. // Could …

Software Development java
Member Avatar for Jocamps
0
146
Member Avatar for Derice

i am using scanner class, i faced problem when i tried to get a string with space. How can i modify my code to solve the problem. Here is my code: [CODE] import java.util.Scanner; class abc { public void main(String[] args) { Scanner abc = new Scanner(System.in); System.out.print("Name: "); String …

Software Development java
Member Avatar for javaAddict
0
123
Member Avatar for Psybear

Hi all I need to detect all image tags in a HTML document that are siblings: [code=html]<p> <img ../> <img ../> <img ../> </p> <p> <img ../> </p>[/code] In the example above I need to detect the first three img tags, but not the fourth. In contrary, I also need …

Software Development xml
Member Avatar for m.asfak
0
91
Member Avatar for Toila

I have two question: 1. how to read the string below into token ? 2. how to include the query into the token without having to reprint it? I have made a thread earlier but i have fixed and this version is shorter so i hope one of you will …

Software Development c++
Member Avatar for Nick Evan
0
182
Member Avatar for orium

Hi, I'd like to know how to draw a rectangle using the following: Prompt the user to enter the character to use for drawing the rectangle and promt the user to enter the number of columns and the number of rows for the rectangle. Furthermore, the max for the rectangle …

Software Development c++
Member Avatar for maverick420
0
1K
Member Avatar for enkay13

Hey guys I needed some help on this problem that we have to do for our introductory computer science class PROBLEM: Write a program that reads a series of numbers (doubles) from the user, then prints the mean and the range. • You do not know ahead of time how …

Software Development c++
Member Avatar for Sky Diploma
0
99
Member Avatar for navthekings

How to implement "Linear canonical transformation" in C language

Software Development c
Member Avatar for navthekings
0
38
Member Avatar for CurtisEClark

I am building a code that needs to find the average of a set of scores in a list that can have amounts added and removed. I know how to find the average of a list of scores of a fixed number can someone help me on how to find …

Software Development python
Member Avatar for CurtisEClark
0
138
Member Avatar for lrh9

I always wondered how a programmer could efficiently generate a random number from a set* of numbers once and only once. I quickly realized the inefficient solution. Simply generate the number and if it equals one you have all ready generated then regenerate the number. Regenerating the number is a …

Software Development python
Member Avatar for lrh9
0
379
Member Avatar for kilermage

I wrote up a CombatHandler class. Here is what the begining: [CODE]public class CombatHandler extends client {[/CODE] But when I compile I get this error: [CODE]Running Compiler -------------------------------------- CombatHandler.java:3: cannot find symbol symbol : constructor client() location: class client public class CombatHandler extends client { ^ Note: stream.java uses or …

Software Development api java
Member Avatar for ~s.o.s~
0
118
Member Avatar for Nicholas_Roge

Would someone mind helping learn how to multi-thread? I know this is asking alot, so I apologize in advance.

Software Development c++
Member Avatar for dkalita
0
77
Member Avatar for chengeto

I am trying to get this program to count the number of characters in a string. By number of characters l mean not punctuation or a space.What is wrong with my code because l don't understand why the program won't work? [CODE]import javax.swing.*; publiemc class ExamPractise { public static void …

Software Development java java-swing
Member Avatar for ~s.o.s~
0
166
Member Avatar for Doughnuts

Hello all, I am working on an assignment and came across a problem. The assignment is to take a file with integers and calculate the average. Here is my code: [CODE]#include <iostream> #include <fstream> #include <stdlib> #include <conio.h> double calculateAverage(double Number, double Sum); void trimSpaces(char Filename[]); int main() { ifstream …

Software Development c++ file-system
Member Avatar for Doughnuts
0
119
Member Avatar for ZER09

I need to create a scientific calculator using applet in neat beans 6.1 but i cant do it. if there someone who did it before, can you help me about my problem.its for our project in our school. asking a help.Thanks a lot.

Software Development java
Member Avatar for .11
0
80
Member Avatar for vaati

I just started learning C++ today, and after a making calculator I found [URL="http://www.dreamincode.net/forums/showtopic49569.htm"]here[/URL] and succeeding, with some help from a friend, hence the other name) in changing it and adding a subtraction function, I was wodering if there is any code I can use to accept only the characters …

Software Development c++
Member Avatar for VernonDozier
0
347
Member Avatar for kcasmir

I want to populate my msflexgrid with lots of data from a database and it takes seconds for the process to complete. In that case, i need to include a progress bar that shows the progress of the process above and i do not know the code that will simultaneously …

Software Development visual-basic
Member Avatar for ImMoRtAl-
0
210
Member Avatar for program900

Can you please give me some ideas on how to start, i have no clue!!!! Create a program that will test the random number generator by generating 10,000 random numbers and graphing their frequency in a histogram. This program should produce numbers from 1 to 100 and should display a …

Software Development c++
Member Avatar for Ancient Dragon
0
89
Member Avatar for khimura

hi im doing a project for my class and cant figure out how to code some of it. for the main .cpp file heres the code: [CODE]#include <stdafx.h> #include "derivedClass.h" #include <iostream> #include <string> using namespace std; string firstName=""; string lastName=""; int num; void getName() { cout << "\nEnter employee's …

Software Development c++
Member Avatar for Ancient Dragon
0
115
Member Avatar for Dewey1040

Write a new program called paginate.cc. It should work like this: Usage: paginate [--lines-per-page #] [--columns-per-page #] [--tabstop #] file [...] Required command line parsing: The options may be given in any order, but must all precede the file(s) to be printed. Parsing the argument should simply deposit the associated …

Software Development c++
Member Avatar for Dewey1040
0
215
Member Avatar for Toila

The code below is failed to let me input the data twice because im only able to open the text file and read it once. I have included a part of the file. [CODE]#include <iostream> #include <iomanip> #include <fstream> #include <string> #include <vector> #include <sstream> using namespace std; class Record …

Software Development c++ file-stream file-system
Member Avatar for Ancient Dragon
0
112
Member Avatar for five01

Hello guyz can anyone help me with counting vowels in a string and validating if the string only contain vowels using function in vb.net

Software Development vb.net
Member Avatar for TomW
0
99
Member Avatar for AutoPython

I can't find a simple command that does this. If there's no command that does this I'm going to spam python.org until they finally agree to put this in the next version of python.

Software Development python
Member Avatar for bumsfeld
0
171
Member Avatar for xaeubanks

I'm writing code in python for a tic tac toe game. I have ran into a problem. can any one help me out. thanks # TIC TAC TOE # Started: 10/19/09 # Ended: still in progress #GLOBAL CONSTANTS X = "X" O = "O" Empty = " " TIE = …

Software Development legal python
Member Avatar for bumsfeld
0
136
Member Avatar for bruceaj

I have several classes that I use in almost every one of my projects. [B]What[/B], and [B]How[/B], do I create something so the I can easily access them? I'm use NetBeans for my IDE. Thanks..

Software Development ide java
Member Avatar for quuba
0
319
Member Avatar for Chad W

This is my now finished code: [CODE]// ********************************************************** // Count.java // // This program reads in strings (phrases) and counts the // number of blank characters and certain other letters // in the phrase and quits upon the user entering the phrase "quit". // Modified by: Chad Watkins // ********************************************************** …

Software Development java
Member Avatar for Grn Xtrm
0
153
Member Avatar for simpatar

I've got a book for python 2. in school and the problem is that we're programming in 3. which makes it difficult from time to time to get it right, cause you cant just copy the text in the book to the shell. I'm stuck with this ex: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # …

Software Development python
Member Avatar for bumsfeld
0
272
Member Avatar for lilspeed500

only scanners, strings, for loops, while loops, and if/else statements are allowed. 1. main method. In the main program declare a Scanner variable that is hooked up to System.in. You need to include the line of code import java.util.*; at the top of your program. Pass the Scanner object you …

Software Development java
Member Avatar for Grn Xtrm
0
149
Member Avatar for mayurjadhav

How can i develop my logic to develop any software? i am study well but then also can not did it properly. You have any solution about that. how can develop software using C#,java ,etc other.

Software Development java
Member Avatar for quuba
0
98
Member Avatar for shakunni

Hey, How do you go about proving that log(n!) is big Theta of n log n?

Software Development java
Member Avatar for BestJewSinceJC
0
90
Member Avatar for ajay_p5

Hi, Well I am getting this warning while running my script which is attached:Use of uninitialized value in concatenation (.) or string at aj.pl in this line : print OUTFILE"$address[$k]|" as when i remove this line I don't get any warnings: Can someone please tell me what is wrong with …

Software Development perl
Member Avatar for ajay_p5
0
232
Member Avatar for eranga262154

Hi all, First I create a dynamic buffer and set all element to zero. Then add a int value first to the buffer. Then after that int value add a string to the buffer, actually at the end of int value. But seems my code overwrite each other. Here is …

Software Development c++
Member Avatar for kia_barghi60
0
283
Member Avatar for edwar

i've writtn a code in c and it works well, so i tried to write the same code but in c++, ofcourse i need to change some functions to cpp, i did that, but when i run the program i got the follow error : (a function-definition is not allowed …

Software Development c++ linked-list
Member Avatar for Ancient Dragon
0
93
Member Avatar for srk619

i need to write code for two "robots" that will chase each other around the screen. im stuck on a command which is the step(x,y) command which take the (x,y) coordinates of the other robot as a parameter which should just contain "pass" and will be overridden by the subclass. …

Software Development oop python
Member Avatar for jlm699
0
103
Member Avatar for jhouns

Okay, this is an annoying problem i'm making a command line operating system bootable from a floppy disk and the way i'm testing it atm is by inputting a command and outputting it. The reason for this is that i want to know EXACTLY what its doing with the string …

Software Development assembly operating-system
Member Avatar for jhouns
0
429

The End.