132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for murnesty

I want to convert string to unsigned short. Example "123" equal to number 123 or 0x7B. But i get an error while doing the convertion : "Error 9 Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)" Here is my code: UInt16 usTest …

Software Development
Member Avatar for Momerath
0
258
Member Avatar for ravsau

Hi guys, I was supposed to create a program that simulates a haunted house. the output was supposed to be like: Welcome to the Haunted House! You are in: Front Foyer Possible directions are: North(N), East(E), West(W), Abandon(A) Where would you like to go? s Invalid Command You are in: …

Software Development java
Member Avatar for sciwizeh
0
754
Member Avatar for WH88

Hi, I was asked to create a program that converts a .csv (I converted it to a .txt format first) and I've put together a pretty basic one that reads the data in the text file and formats it into XML, then saves it as a .xml. By basic I …

Software Development java
Member Avatar for sciwizeh
0
319
Member Avatar for NunsBeachSurfer

Hi, I have a large array of values and would like to find a way to calculate the change in value for each period. I have been attempting to use a for command with an array to do this, but I have not been successful at all. The basic idea …

Software Development c c# c++
Member Avatar for NunsBeachSurfer
0
236
Member Avatar for itsmrshow

Hello all, i really need help with this program, i am a brand new assembly learner/ noob, i need help with a program that ( promts the user to enter a number between 1-10, then when the user enters a number, if it is less then 5 display message1, if …

Software Development assembly
Member Avatar for itsmrshow
0
143
Member Avatar for chixm8_49

Good day! I would like to ask on how to transfer the contents of JTable to mySQL database. I have seen a lot of codes of putting contents to JTable from database but I need to know the other way around. ^^" I do not have any idea on how …

Software Development java mysql
Member Avatar for sciwizeh
0
486
Member Avatar for meme meme

please help meeee write a program for a local bank to manage their accounts. the bank offers two account types,saving and checking,each customer must maintain a minimum balance, if the customer`s balance falls below the minimum ,ther is a service charge 10 aed for saving and 25AED for checking. the …

Software Development c++
Member Avatar for paradise11
0
173
Member Avatar for beforetheyknew

Hi guys, I'm quite unsure of what i'm doing here and could use some guidance. I've searched but haven't found any links that were focused enough. My objective is to connect my application to a database for the first time. I've never done this before so it's essentially a learning …

Software Development mysql vb.net visual-basic
Member Avatar for wen_cai
0
232
Member Avatar for nthabiJacq

Please help with writing a loop for the program that must display/print every prefect number from 1 through 1000

Software Development
Member Avatar for lxXTaCoXxl
0
228
Member Avatar for zhengcyy

I'm creating the a Card game c++ program and I got some problem. PLZ help!! I got few files: Main.cpp (ask user which card game he want to play) Card.h (creat rank and suit for cards) War.h, War.cpp (creats War game) TicTacToe.h, TicTacToe.cpp (creats TicTacToe game) Game.h, Game.cpp (required to …

Software Development c++
Member Avatar for DeanMSands3
0
402
Member Avatar for pradeepamca

if the input is 123 the output will be onetwothree

Software Development java
Member Avatar for TrustyTony
0
127
Member Avatar for srinidelite

Hello i was assigned for a task to find the Name and books Taken as a count from the given TWO array table , I wrote a program but it's not working , experts pls help me out!! commondata b/w the TWO ARRAY TABLES are - ID of a student …

Software Development c
Member Avatar for DeanMSands3
0
146
Member Avatar for sdevanab

Hi. I am having connection issue while connecting to using below string provider=IBMDADB2;Data Source=XXXX.XXXXX.COM:5000;Database=C2RCU0;Uid=s858;Pwd=cccc Getting error like database not found. But What i found was connection to mainframes it self was not happenning. Do i need to provide any other information or what i am missing here.. sConnection As String …

Software Development asp.net dataset open-source vb.net
Member Avatar for Begginnerdev
0
1K
Member Avatar for claywin

Hi everyone, I've been having some troubles with this code (I'm a beginner). All errors are resolved and it runs, but as soon as it starts it says "main.exe has stopped working" and closes. I'd appreciate if someone could look over it and tell me what's wrong. main.cpp: #include "SDL/SDL.h" …

Software Development c++
Member Avatar for Labdabeta
0
1K
Member Avatar for Lucaci Andrew

I was wandering what could be the causes of this error message? Like in general. `\\: *stopped,reason="signal-received",signal-name="SIGSEGV",signal-meaning="Segmentation fault",frame={addr="0x00402d53",func="Domain::Movie::show",args=[{name="this",value="0x1"}],file="..\\src\\Domain\\Movie.cpp",fullname="e:\\eclipse for c++\\workspace\\lb6-8oop\\src\\domain\\Movie.cpp",line="36"},thread-id="1",stopped-threads="all"` 10x.

Software Development c++
Member Avatar for gusano79
0
712
Member Avatar for hypernova

Hi all! I was experimenting a little with scanf. I am posting the code and the outputs I am having prolems understanding: #include <stdio.h> int main() { char a,b,c; int d,e; scanf("%c%c",&a,&b);//-------------------(1) printf("%c %c\n\n",a,b); scanf("%d%d",&d,&e);//-------------------(2) printf("%d %d\n\n",d,e); scanf("%c abc",&a);//--------------------(3) printf("%c\n\n",a); scanf("%c abcdefgh",&a);//---------------(4) printf("%c\n\n",a); getch(); return 0; } In (1): Doesnt …

Software Development c
Member Avatar for hypernova
0
302
Member Avatar for Johannady2

This is an attempt to stop the timer in this code: [Click Here](http://www.daniweb.com/software-development/java/threads/422817/how-do-i-stop-this-timer#post1805134) I just learned threads but I'm not sure if I'm using it right.. It doesn't have any erros when I compile it.. but it still doesn't stop the time. the clock starts when you enter "y" though.. …

Software Development java
Member Avatar for NormR1
0
325
Member Avatar for geansra

if Julian_Date > Base_Date : Target = (Julian_Date - Base_Date) % 28 print First [Target], Second [Target], Third [Target] Shift_Set = [First [Target], Second [Target], Third [Target]] elif (Julian_Date < Base_Date) & (Julian_Date != 28) & (Julian_Date !=0): Target = (Base_Date - Julian_Date) Shift_Set=[First[(28- Target)],Second[(28- Target)],Third[(28- Target)] else pass #the …

Software Development python
Member Avatar for vegaseat
0
125
Member Avatar for rashid_khan

Hey , i am new to visual basic.NET , i want to recognize a barcode device in VB.NET , further have to generate some barcodes using VB.NET and recognize barcodes through barcode device. so anyone can help me... Thank you

Software Development vb.net visual-basic
Member Avatar for Jeff-Bennett
0
174
Member Avatar for albertHankock

So I need to write an ping client and server for my networking class. Server code is running no problem but I'm a bit lost on my client code. I copy and pasted the server code because I figured it would be easier to modify.. Please check this out.....THE PROBLEM …

Software Development client-server python tcp-udp
0
336
Member Avatar for TrustyTony

Gribouillis has allready posted code similar to this in his snippets, but here version for input suitable for for expressions, generators and list comprehensions. Need to add robustness by some try...except blocks for real world use.

Software Development python
Member Avatar for vegaseat
0
553
Member Avatar for suganyar

when i move cursor on image in one location it should display some information, and moving cursor in another location ,and need to display some other information. help me with visual basic 6.0 code. thanks

Software Development image visual-basic
Member Avatar for Jeff-Bennett
0
1K
Member Avatar for perllearner007

Hello all, I have tab delim file as follows #file1 #version1.1 #columns with the information as follows state1 class1 report_version_1.1 9428 4567 . . call=1;times=5;toss=head->tail;sno=A1B1;effect=positive state1 class1 report_version_1.1 3862 4877 . . call=1;times=5;toss=head->tail;sno=A1B2;effect=negative state1 class1 report_version_1.1 2376 4567 . . call=1;times=5;toss=head->tail;sno=;effect=positive state2 class1 report_version_1.1 4378 2345 . . call=1;times=5;toss=tail->tail;sno=A1B3;effect=positive,negative, both …

Software Development file-system perl
Member Avatar for perllearner007
0
231
Member Avatar for eng_m

Hi guys. so I have been trying to solve this problem and I wrote a bit of which I think its part of the solution. so I would apreciate a help from you guys. The problem: A palindrome is a word, phrase, or any other sequence of letters that can …

Software Development c++
Member Avatar for SanRubik
0
184
Member Avatar for buster2209

I have an xml file that looks like this; <?xml version="1.0" encoding="utf-8"?> <!--This file is generated by the program.--> <Product ID="23" Name="Soap" test="one"> <Price>10.00</Price> <OtherDetails> <BrandName>X Soap</BrandName> <Manufacturer>X Company</Manufacturer> </OtherDetails> </Product> I can use the following code to read the 'ID', 'Name', and 'test; XmlReader reader = XmlReader.Create("Products.xml"); while (reader.Read()) …

Software Development xml
Member Avatar for thines01
0
192
Member Avatar for volscolts16

Evening to everyone. I have a new project that is rather lengthy, but I am almost done with it. Sorry about the long read, but I was hoping to answer any questions that you may have upfront by posting all that I know about this project. Thanks Here's the assignment: …

Software Development c++ gui user-interface
Member Avatar for deceptikon
0
4K
Member Avatar for Junior999

#include <stdio.h> #include <stdlib.h> int main() { begin(); } int begin() { long int b,res1,res2,res3; int a,c,d,e,f,i; printf("Enter first number: "); scanf("%d",&a); printf("Enter second number: "); scanf("%ld",&b); c=b%10; d=b%100-c; e=b/100; res1=a*c; res2=a*d; res3=a*e; f=a*b; printf("\n\n\n"); printf(" %d\n",a); printf("x\n"); printf(" %d\n",b); printf("________\n"); printf(" %ld\n",res1); printf("+ %ld\n",res2); printf(" %ld\n",res3); printf("_______\n"); printf("%d\n",f); system("PAUSE"); …

Software Development c
Member Avatar for deceptikon
0
104
Member Avatar for luvrahul30

Please Tell me how to scan a source file in c..suppose a file i am giving as input and i have to scan that files for different things...can anybody help me!!!!!

Software Development c
Member Avatar for deceptikon
0
120
Member Avatar for poojavb

Hello Friends... I need help on regular expressions.... I tried the following way but it did not work for me....please help me to create a regular expression... ^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(^[a-zA-Z0-9@\$=!:.#%]+$) My requirement is -> Min 8 to 15 characters - this I will do with the length validation or by including in …

Software Development regex vb.net
Member Avatar for poojavb
0
250
Member Avatar for Stjerne

OK, hello guys. I'm trying to make an image fit a JPanel. What I mean is to set a maximum size on a image, depending on how big the JPanel is. I'm using a JSplitPane to show some images. On the lef side I'm using a JList, and on the …

Software Development image java
Member Avatar for JamesCherrill
0
659
Member Avatar for hwoarang69

warning: int format, pointer arg (arg 2) i have no pointers this function :( main.. functions.... functions. int test(char num) { int total[SIZE]; printf("%d",total); fflush(stdout); //no pointers return 0; }

Software Development c
Member Avatar for deceptikon
0
239
Member Avatar for anuj.juthani

I am developing a IE toolbar using MS VISUAL STUDIO 2010 VC++ I have a popup menu, having two options WEB SEARCH and IMAGE SEARCH. my problem is the pop up menu works fine when i see the output in DEBUG mode ... The pop up menu works fine even …

Software Development c++ visual-studio
0
214
Member Avatar for Johannady2

WHEN I put void in this method.. it says *"void type not allowed here"* in my if statement. but when I erase the void in my method.. it says *error: invalid method declaration; return type required* in the method... what should I do? public void setStop(int day , int hour …

Software Development java
Member Avatar for NormR1
0
438
Member Avatar for Soubhik

import javax.swing.JPanel; import javax.swing.ImageIcon; import java.awt.Image; import java.awt.Graphics; import java.awt.Graphics2D; class View extends JPanel { Image icon1,icon2; public View(){ ImageIcon i1=new ImageIcon(this.getClass().getResource("tile1.png"));//image I drew ImageIcon i2=new ImageIcon(this.getClass().getResource("tile2.png"));//image I downloaded icon1=i1.getImage(); icon2=i2.getImage(); } public void paint(Graphics g){ super.paint(g); Graphics2D g2=(Graphics2D)g; g2.drawImage(icon1,10,10,null);//this image is not displayed g2.drawImage(icon2,200,200,null);//this image is displayed } } …

Software Development display image java java-swing
Member Avatar for NormR1
0
186
Member Avatar for Acidz

Hi, been sometime since I posted here... Okay strait to the point: I'm having trouble getting my head around coordination system for a game. So lemmy explain a example; I use panda3d which uses python, ofc i'm programming in python. So the question. I want to create a coordination system …

Software Development gui python
Member Avatar for Acidz
0
207
Member Avatar for ftrzjocelyn

Hi, I'm a new java user, working on a brute-force knights tour algorithm in linkedlist. The move function worked perfectly (for a while), I mean, the pointer could move forward, or backward if a wrong path was chosen. But all of a sudden, it returned me a stackoverflow error. i'm …

Software Development algorithm java linked-list
Member Avatar for JamesCherrill
0
571
Member Avatar for dbsp

I am trying to sort an ArrayList of Strings using the Merge Sort algorithm. However, I am having an error where it occurs on line 67 **`result.set(i,right.get(r));`** Where I get the IndexOutOfBoundsException. I have tried printing out the index of the result, and it seems to be that I am …

Software Development algorithm java programming-construct
Member Avatar for wen_cai
0
824
Member Avatar for ariez88

Hi, Below is the declaration at class level. int[] PossibleValues = new int[6]; int[][] JaggedArray = new int[50][]; int JaggedVar = 0; Then in a function, I am assigning PossibleValues array to Jaggedarray like this. [PossibleNumbers is a function that returns an array of possible numbers for a cell in …

Software Development
Member Avatar for thines01
0
167
Member Avatar for erezz

Hi, I have 4 different files that contain the text below. I need to Remove specific whitespace from the text and to find if there is a number that appears in more then one file and to print the output result to a new file that will includ lines with …

Software Development perl
Member Avatar for erezz
0
240
Member Avatar for Panathinaikos22

Because UDP is unreliable protocol i want someone to try my code. For someone who have server, run my code and send packets to your server and then monitor to your server bandwidth usage Sender packet size is near to (Server)Receiver packet size ??? Soz for my english. using System; …

Software Development
Member Avatar for Panathinaikos22
0
132
Member Avatar for GH23

I'm developing a VB.NET application that is going to be checking if a table has been changed and if it has get the data and send it off to another application. I was looking into ways for an application to know that there has been new data added to the …

Software Development vb.net
Member Avatar for francis994
0
275
Member Avatar for jigglymig

I have been looking on the internet for how to do a save as on my form, but can't seem to figure it out. All I know is you can do something with the saveFileDialog, but I don't even see it pop up. I want to incorporate 8 Different SaveAs …

Software Development
0
81
Member Avatar for irishsailor

I am having problems trying to center some text. I created a printdocument and it has a company name and title and then other information I have the information fine but I wanted to center the company name and I can't seem to do it correctly here is what I …

Software Development vb.net
Member Avatar for irishsailor
0
596
Member Avatar for mancode1007

halo guys, I having problem executing the SQL statement in the visual studio but when in the MySQL it work fine. Here are my code. Dim sql As String = "SELECT * FROM (SELECT @row:= @row + 1 AS rowNum, std.* FROM Student std ,(SELECT @row:= 0) r) AS t …

Software Development mysql sql vb.net
Member Avatar for wen_cai
0
166
Member Avatar for faizzul_77

i want to create column headers now in my first array have this http://uitm.x10.bz/!/1.png array CSC238,8.00-9.50 MAT183,1.00-2.00 ECO120,2.10-4.00 BEL311,4.10-6.00 MAT183,8.00,9.50 then second array, i want to do like this http://uitm.x10.bz/!/2.png array 8.00-8.50 9.00-9.50 10.00-10.50 11.00-11.50 12.00-12.50 1.00-2.00 2.10-3.00 3.10-4.00 4.10-5.00 5.10-6.00 6.00-7.00 7.00-8.00 8.00-8.50 9.00-9.50 hope can help this problem …

Software Development vb.net
Member Avatar for francis994
0
195
Member Avatar for zemzela

I got error ProfileCommon could be not found , in my code. I don't know how to fix the error. I put namespace using system.Web.Profile, but error still does here. Could someone help how to do that? Please help me if you know. Thank you public partial class UserProfile : …

Software Development asp.net
Member Avatar for zemzela
0
157
Member Avatar for SAM2012

I need your help regarding the message acknowledgement in the queue when the message reaches at the queue. Any help would be highly appreciated. the code for my queue class is; struct ListNode { ListNode(gcroot<message^> msg); gcroot<message^> msg; ListNode* next; }; ListNode::ListNode(gcroot<message^> msg): msg(msg), next(nullptr) {} public class queue { …

Software Development c++ queue
Member Avatar for DeanMSands3
0
190
Member Avatar for eongchin

hi, i started using VB 2008 recently (with perl background, its a big leap) and having a problem with database. i am trying to access a database that is attached to a different form. i managed to get my code to work if i was writing on the same form. …

Software Development perl vb.net
Member Avatar for adam_k
0
96
Member Avatar for lxXTaCoXxl

I'm having trouble with my some output in hexadecimal math. The subtraction overload seems to work fine, but when I add an address to another it goes all wierd on me. :( Here is a sample output: 00000000 + 0000055c = 0000000c // Incorrect 000a0000 + 00000180 = 000a000000000080 // …

Software Development
Member Avatar for skatamatic
0
121
Member Avatar for thanatos1

Hello guys, i have a question regarding how to change the origin of a window, particularly a JFrame. I'm essentially running a program called "Fraps" to see the frames per second of my JFrame, with this program, you can display the fps on any 4 corners of the window currently …

Software Development java
Member Avatar for NormR1
0
270

The End.