43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for kutuup

Hello, I am putting together a shoddy game for a 48 hour game contest and I have a problem. When I run the program from within VS2008 (by clicking the start debugging button) the program runs fine. I'm doing this in release mode btw. However, If I try and run …

Software Development c++
Member Avatar for kutuup
0
143
Member Avatar for ng5

I am trying to make a program that randomly selects a name. i have a prompt that allows me to enter the number of names and the names themselves. but i dont know how to save or open the information into an array... can anyone help me with this?

Software Development vb.net visual-basic
Member Avatar for codeorder
0
247
Member Avatar for esesili

Hello All, I have been using c++ console applications for a while. I need to develop some graphical user interfaces. Even though there are many ways of developing a gui, I am not sure what is the most easy to learn and use. There is a library called Q4 library, …

Software Development c c# c++ gui
Member Avatar for LdaXy
0
330
Member Avatar for Griff0527

I am working on a project of converting VB code to C# code and I am lost as to how to read data from a prompt in C#. Here is the snippet I am concerned with fixing, but below I will post the entire code. [CODE] private void Button1_Click(System.Object sender, …

Software Development c# visual-basic visual-studio
Member Avatar for Griff0527
0
2K
Member Avatar for ben25x

Hello, I've been having a lot of trouble with a variable type called "float64". I'm trying to create a do{}while loop to make the number count up each time. data is also defined as an array. [CODE]float64 data[1]; int i; do{ for(i=0;i<1;i++) { data[i]=data[i]+.01; if(data[i]>9.99) data[i]=-9.99; } }while('0'=='0');[/CODE] Any guidance …

Software Development c
Member Avatar for ben25x
0
129
Member Avatar for CoderNH

I am new to Vb.net so I will need some handholding. I have been searching everywhere but can't find what I need. I'm creating an app that has two forms. Each form has two comboboxes. The comboboxes are populated via a list and the list is populated by reading a …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
229
Member Avatar for naz1234

Hello there,ihave given the assigment to make the c program to print the asterisks to represent the grades.. My question is , why the asteriks does not appear ? I think i got problem at the looping for asterisk.. actually my output should be like this : the graph such …

Software Development c
Member Avatar for naz1234
0
173
Member Avatar for IceyRed

Hello everyone, I'm trying to get some text via a C# console app from a web page. The text I'm trying to get is the current players from our Battlefield 3 server we are renting. The url is: [url]http://battlelog.battlefield.com/bf3/servers/show/bcc85e8a-c2fd-41a4-98f4-21548297a9b1/[/url] Obvious, the text I need is this: [url]http://prntscr.com/4qbiz[/url] I have some …

Software Development c c# c++ client-server regex
Member Avatar for IceyRed
0
190
Member Avatar for DavidKroukamp

For now the code isn't to complex. Built in Netbeans 7 java 6.... just the basis for now but its very safe connection so thought i'd post it for anyone who needs it. A quit command may be sent to any client by specifying its ID and then press enter …

0
433
Member Avatar for M.Waqas Aslam

Hello Every One ! i was using my code [CODE]textbox1.bgcolor = ___colorname___[/CODE] on the gotfoucs event of my textbox , but if i have 34 textboxes then i have to write this line 34 times , which cost lots of time , can any one help me to make any …

Software Development vb.net
Member Avatar for Reverend Jim
0
199
Member Avatar for The 42nd

Hello. The title pretty much says it all. I would like to know if and how you can print a number (type is double) with the same amount of decimal spaces as the one you entered. If I enter 12.34 I would like the output to be 12.34 and not …

Software Development c
Member Avatar for Narue
0
243
Member Avatar for dancks

I have a larger program that I want to write, but I can't complete it unless I get this down. I have an array, need to put in a string value to be read out. the program generates characters of data at a time, not as a whole string so …

Software Development assembly
Member Avatar for dancks
0
171
Member Avatar for Goshutu

Hi, i am doing a multiple-file project and i come across a difficult obstacles. I want your help, DaniWeb readers on this problem, which i find very strange: [CODE] #include "stdafx.h"//i have included vector header here #include "globals.h" #include "functions.h" using namespace std; #ifndef CPIECE #define CPIECE class CPiece { …

Software Development c++ oop
Member Avatar for Goshutu
0
347
Member Avatar for libathos

I'm using a JFreeChart which I found in this link [ICODE]http://www.java2s.com/Code/Java/Chart/JFreeChartCategoryStepChartDemo.htm[/ICODE] I have modified the code as given below.My problem is how i can change the values in the x-axis so that they don't start from the zero. [CODE]public class Chart1 extends JPanel { /** * */ private static final …

Software Development dataset java
Member Avatar for libathos
0
231
Member Avatar for Swirly

I am running into a problem in a card dealing program. When the Deck Constructor tries to run one of the methods associated with the Applet class, the program will fail with an error set typical to running an application as an applet. This is a school project, and the …

Software Development java
Member Avatar for NormR1
0
212
Member Avatar for pseudorandom21

I've been trying to make a reliable IRC client for a while now, and I know very little about sockets. I have read the RFC quite a bit, but programmatically responding when appropriate, and detecting errors still boggles me. How is the program to know the server will send three …

Software Development c++ client-server
Member Avatar for pseudorandom21
0
155
Member Avatar for hszforu

I want to create text files(empty) depending upon the user input, suppose if the user enter 20 , then it should create 1.txt,2.txt to 20.txt Assuming i want to create 2o files, then i wrote the foll code: [CODE] for i in range(20) filename="i.txt" fp=open('filename','w') fp.close() [/CODE] but i know …

Software Development python
Member Avatar for TrustyTony
0
173
Member Avatar for jackmaverick1

The error I'm getting makes NO sense seeing as I'm defining the functions it's confused about directly above. The error: undefined reference to `accMan()' undefined reference to `bookMan()' undefined reference to `lend()' undefined reference to `getBack()' undefined reference to `tellMenu()' undefined reference to `tellMenuAcc()' undefined reference to `tellAllBooks()' undefined reference …

Software Development c++
Member Avatar for jackmaverick1
0
144
Member Avatar for smurfy

Hi, In Visual Studio CLI. I have randomly generated numbers which are a,b,c,d . One by one they are meaningless . Together they create a color code for different products. For example : id | a | b | c | d | i | 1 | 1 | 5 …

Software Development c++ visual-studio
Member Avatar for nina@cika
0
351
Member Avatar for pythonstudent11

As promised, here is my final project in my Python programming course. I got the solution all by myself, although, feel free to make any changes you see fit, I've already turned it in. [quote]For this assignment you are to develop a Python program based on the scenario and following …

Software Development python
Member Avatar for pythonstudent11
0
428
Member Avatar for bibiki

Hey there, I am building a small database app where I allow users to input and retrieve information in and out of database. As part of my application I have this table courses and a java file Course.java that models a Course object. My Course objects have field variables courseID, …

Software Development java
Member Avatar for JamesCherrill
0
115
Member Avatar for moonL!ght

i am reading from file the file is in this format 4 L 100 20 30 200 R 30 20 50 100 O 20 100 100 40 L 30 50 100 100 I'm using string tokenizer now the 4 specifies how many lines I'll have When I read only the …

Software Development java
Member Avatar for JamesCherrill
0
129
Member Avatar for bisiii

Hello mates! I have one problem with Math Utility Test for PrimeNumber case. The code is: [CODE]public bool IsPrimeNumber(int n) { int i = 0, num = 0; while (i <= n) { if ((n % i) == 0) num = num + 1; i = i + 1; } …

Software Development
Member Avatar for bisiii
0
95
Member Avatar for libathos

hello,I am writing a program in java in which I use a jtable to print the data to the users.Do you know how can i get the data of a line when that line gains focus?

Software Development java
Member Avatar for libathos
0
88
Member Avatar for poojavb

Hello, I need to populate my ComboBox in VB.Net using MySQL. Can anyone help me to start. I have created a combo box which should contain the patient name from the database. I am using MySQL database. Please help me in this. Regards, Pooja

Software Development mysql vb.net
Member Avatar for poojavb
0
4K
Member Avatar for learner guy

hello everyone, i am trying to implement save,load and replay in my chess game made in c++ console. i am done with save and load but stuck on replay. i want every turn to be stored in file and when player asks to replay it should show all turns in …

Software Development c c# c++
Member Avatar for Schol-R-LEA
0
241
Member Avatar for DoubleGee

Hello, I am experiencing problems when trying to remove elements from an array. I've been asked to create a little program which creates bank accounts containing (name, address, bank account number, balance etc.). I have successfully implemented all the functions except deleteAccount (I would also like to add that my …

Software Development java
Member Avatar for JamesCherrill
0
199
Member Avatar for aquamarine_kath

Hi. I tried to install vb6 on my friend's laptop. It was installed but when I double click the control on a form to write a code, it has stopped working. It says, "VB6 has stopped working". It was installed but I cannot put a code in it. Here are …

Software Development visual-basic
Member Avatar for LesF
0
210
Member Avatar for aishapot

How can I simply format the contact number in vb.net The format that I want is (123)456-78-95 Thank You.

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
228
Member Avatar for coolfriends

Hey guys, I am working on this square deal problem that I cant figure out. This is the problem: Input for this program will be two positive integers entered from the keyboard via scanf. The first will be an odd integer N in the range of 3 to 15. N …

Software Development c
Member Avatar for 1qazxsw2
1
198
Member Avatar for Vasthor

these code, I expect they work the same. using Code::Blocks as the compiler, the result is differ result = output 10 return 0 [CODE] #include <iostream> int main() { int i = 0; while(i < 10) ++i; std::cout << i << std::endl; } [/CODE] result = compile error. [CODE] #include …

Software Development c++
Member Avatar for Vasthor
0
247
Member Avatar for irock_4you

Vince Travis Sillhouette Angeles Create a myMath class that contains the ff procedures and or methods 1. Add any number of numbers 2. Multiply any number of numbers 3. Raise a number to the nth power 4. Slope of a line given 2 points 5. Factors of a whole number …

Software Development java
Member Avatar for v3ga
0
121
Member Avatar for Tobyjug2222

Hi, I've been searching around these forums for quite a while now, and can't seem to either understand or find what I'm looking for. ^ As you can probably tell, I'm a real Novice to VB! I have a text file, that my program is always adding to it, it's …

Software Development file-system vb.net
Member Avatar for Tobyjug2222
0
299
Member Avatar for VIPER5646

I have a reportviewer that prints a second empty page with the header only nothing in the body. I have searched for this issue and I learned that the Width of the report body should be equal to the page width minus the right and left Margins. So I have …

Software Development vb.net
Member Avatar for VIPER5646
0
488
Member Avatar for gispe

Hi! Im doing a program in java that gets info from a database.. thing is that im seting a variable with data from one table, and one data is char and cant find the way to have the .getChar() like the rs.getString() the code is: [code=java] public ModosDeCompra_clase dameModoCompra(Integer id) …

Software Development java
Member Avatar for DavidKroukamp
0
3K
Member Avatar for LevyDee

For the life of me, I can't figure out what I am doing wrong! It has been sometime since I have had use for my own list type, but since std::vector is pretty worthless for what I need it to do, I need to relearn templates. [code] #include <memory.h> template …

Software Development c++
Member Avatar for mrnutty
0
111
Member Avatar for iPanda

I have an assignment to make a code that will check what is the longest "string" of zeros inside a double word binary number, for example (in a Byte) if I have this number: 10010001 The answer will be 3. The code I've written works fine until a certain point …

Software Development assembly
Member Avatar for GunnerInc
0
113
Member Avatar for DavidKroukamp

hi everyone, I am writing a small client and server application in java which uses SSL sockets and AES, i got this from the net and edited it a bit is this correct and secure? client: [code=java]/* * To change this template, choose Tools | Templates * and open the …

Member Avatar for DavidKroukamp
1
205
Member Avatar for Cenchrus

Hey guys and gals, I'm just starting Python, and I was wondering if someone could translate this code into english ? from sys import argv script, first, second, third = argv print "The script is called:", script print "Your first variable is:", first print "your second variable is:", second print …

Software Development python
Member Avatar for Cenchrus
0
5K
Member Avatar for snowhite89

Hi.. can anyone help me.. I having problems in displaying the output read from an input file. when I run the code, it only display the output of the first character in the input file. Anyone can help me figure out the problem? & I'm using borland. [CODE]#include <iostream> #include …

Software Development c++ file-system
Member Avatar for Moschops
0
268
Member Avatar for gourav1

[CODE]import java.io.*; class file3 { public static void main(String args[]) throws IOException { FileInputStream f1; int i; FileOutputStream f2; try { f1= new FileInputStream(args[0]); }catch(Exception e) { } try { f2= new FileOutputStream(args[1]); }catch(Exception e) { } try{ do { i=f1.read(); if(i!=-1) f2.write(i); }while(i!=-1); }catch(Exception e){}; do { i=f1.read(); System.out.print((char)i); …

Software Development java
Member Avatar for gourav1
0
153
Member Avatar for YungSoprano

Hi everyone, I'm creating a booking application for a hotel and have encountered an error on the following code; [CODE]Public Class Seaside_Hotel_DB Dim dbconn As OleDb.OleDbConnection Dim dbcmd As New OleDb.OleDbCommand Dim dbread As OleDb.OleDbDataReader Dim spath As String Public Sub New() spath = Application.StartupPath spath = spath.Replace("\bin\Debug", "") spath …

Software Development open-source vb.net visual-basic
Member Avatar for YungSoprano
0
209
Member Avatar for gourav1

once a thread enters any sychorinsed method on an instance , no other thread can enter any other synchronised method on the same instance ? what does this line mean ? also, how can one method be called by many threads at the same time on the same object ? …

Software Development java
Member Avatar for NormR1
0
162
Member Avatar for whitech

I have to do my homework for passing the course :) The question is that; Firstly the starting point is (x1,y1) we get these values from user and we get a lot of two dimensional points from user.If a point is far away from the center point of the points, …

Software Development c
Member Avatar for whitech
0
331
Member Avatar for Simon180

Am looking for a way to search a listview for selected captain items and then for it to remove all the items that were found. demo idea to loop full list to find search string that can be changed via edit and then to delete all items that are the …

Software Development listview pascal
Member Avatar for pritaeas
0
135
Member Avatar for niggz

Hello. I couldn't think of any better name for the title. To the point... I have this database reader method, and In the while loop, where the liga[] is being populated, all its values are the last that is read from DB.. Clubs ID are from 1 - 10 Any …

Software Development
Member Avatar for niggz
0
130
Member Avatar for DevNet

Hi guys, I'm new here so please help me. I wanted to create a memory game where in the user clicks on two images and matches them. However, in the middle of creating it I encountered a weird problem - whenever I set the "Visible" property of the PictureBox on …

Software Development
Member Avatar for Mike Askew
0
1K
Member Avatar for Hiiero

Can I not do the below code? [CODE] class box { public: box(){} box(int v){x=v;} ~box(){} int getx(){return x;} private: int x; }; ____________________________ #include <iostream> #include <queue> #include <cstdlib> #include <ctime> #include <windows.h> using namespace std; #include "Q4.h" int main() { queue<box> B; int a; cout<<"How many boxes would …

Software Development c++ queue
Member Avatar for jmichae3
0
173
Member Avatar for Labdabeta

I am really confused as to the purpose of the unary + operator. What in the world does it do? I have tested it and it doesn't return the absolute value. Does it just return the operand? And if so what purpose is it?! (I mainly care about integer types)

Software Development c++ promotion
Member Avatar for mrnutty
0
301
Member Avatar for creative_m

Hi I want to store variables in a text file (not as an object).my problem is that the class contains ArrayList of another type ,and I wrote one method to store the member variables of my class in "file.txt" ,but I don't really know how to write the ArrayList variable …

Software Development java
Member Avatar for creative_m
0
122

The End.