132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for amullen98

Hello everyone!! I really need some help! I am trying in implement a tic tac toe game made of different classes in which the board can be expandable. I have most of it figured it out but after I ask the first player for their move it ends the game …

Software Development java java-swing
Member Avatar for Taywin
0
179
Member Avatar for danibecse

What is the purpose of static member functions in a class?

Software Development c++
Member Avatar for NathanOliver
0
219
Member Avatar for Kirielson

In C++ it seems like every single time you open a file, the inner contents get deleted quickly. Is there a way to open the file at the end of the last character while keeping all contents within the file? I've been looking at something with the End of file …

Software Development c++ file-system
Member Avatar for ankit1990rana
0
8K
Member Avatar for AutoPython

I've been at a loss as how to convert the std::string to char (Line 40). I've tried c_str() and a few other things, but it's really confusing when the pointers are thrown in there. I know I'm kind of asking you guys to do it but I don't know what …

Software Development c++
Member Avatar for rubberman
0
433
Member Avatar for akashi

hi! I'm new in c++, can anyone give some instruction how I'll start this structure solution? if so, please give me some instruction Problem given: Define a structure called Toy with the following members: . Name of Toy . Price of Toy . Made in (the place where the toy …

Software Development c++
Member Avatar for spuriousgeek
0
122
Member Avatar for kmachstang

Hello, I have the following pseudo code that I am trying to implement in Java. My issue is the pseudo code seems to be heavily C based and my C is very rusty. Could someone help me understand the following function? uint theFunction(BYTE* header) { UINT length; header = header …

Software Development c
Member Avatar for kmachstang
0
174
Member Avatar for kmachstang

Hello. I have the following function written in pseudo code. I think the pseudo code is more C than java and my C has about 10 years of rust on it. Can anyone help me decipher it? UINT function(BYTE* header) { UINT length; header = header + 1; length = …

Software Development java
Member Avatar for kmachstang
0
117
Member Avatar for coroshea

I have the following as an Stl algorithm/vector: MyClass <int> VecOfInts("A vector of integers"); VecOfInts.push_back(3) VecOfInts.push_back(2) VecOfInts.push_back(1) I was able to get the numbers to display with a for loop (i < VecOfInts <size; i++). Now my question is: how would I get "A Vector of integers", to display, irregardless …

Software Development algorithm c++ display
Member Avatar for vijayan121
0
140
Member Avatar for kimbokasteniv

So this is my first attempt at a GUI in swing, and so far things seem to have been going somewhat smoothly. However I am un-able to update a JList named objectsL. I imagine this is because I have already added it to a panel? So, now Im am very …

Software Development gui java java-swing video
Member Avatar for JamesCherrill
0
7K
Member Avatar for Blacktono4

Hey guys, this marks my second post on the Forums. I recently asked about the def statement and the import statement. After that being answered I wanted to ask another question and thought best to start another thread. What is a class? What does it do and how does it …

Software Development python
Member Avatar for Lardmeister
0
348
Member Avatar for sonum04

hey sir, i need your help to solve a program? question is= write a program for assesment system of university. the basic idea is to calculate the GPA of each subject and then calculate the GPA of whole semester and the basic of that GPA calculate the grade and remarks? …

Software Development c c# c++
Member Avatar for np complete
0
102
Member Avatar for psy.blast

Hello DaniwWeb Members :) I'm a fairly new programmer and I'm kinda embarressed to ask this question considering that the answer is probably blatently obvious. So forgive my ignorance :) But here goes, I have a String called "Ctype", It is relevant to my combobox which I created. My combobox …

Software Development java
Member Avatar for JamesCherrill
0
211
Member Avatar for Priyanka786
Member Avatar for Priyanka786
0
1K
Member Avatar for lloydsbackyard

try{ name= JOptionPane.showInputDialog("Enter Employee Name: "); } <br /> catch (Exception e){ //wHAT IS THE CODE HERE if THE INPUT IS NUMERIC JOptionPane.showInputDialog("Invalid Input"); }

Software Development java
Member Avatar for lloydsbackyard
0
137
Member Avatar for UNDER-18 FG

Hi, I had to make a java coding that will determine if a number is a prime number or not. Here's the coding I did: import.java.util.Scanner; public class PrimeNumber { public static void main(String args[]) { int n; Scanner Prime = new Scanner(System.in); System.out.println(" Please enter a number: "); n …

Software Development java
Member Avatar for Lucaci Andrew
0
309
Member Avatar for prathiyus

i need to copy the pixels from one image to another not all the pixels int copy(image2,i,j,image1 k,j) and return the image2 how to write the function completely

Software Development c
Member Avatar for Adak
0
113
Member Avatar for samsons17

Hi there, I have the xml file (HSBB_voice_20120925_0000000182.cdr.bc_lerr.xml) that contains data between tags that i want to extract. The sample data from the xml file that i have etracted is like below : ----------------------------------------------------------------------------------- <record record_no = "62" error_code="100">D20|000000063|56604960 071411E2 BC9D24B6 FDB63DEA|6088342010|0166662635|DEFAULT|1348579536|1348579538|3|0|IDD|Flat Rate <record record_no = "63" error_code="100">D20|000000064|7A257C4E 071411E2 BC9D24B6 …

Software Development shell-scripting xml
Member Avatar for Watael
0
189
Member Avatar for gelaisg18

hi there i just have a problem with my program i used the keycodes of vb wherein every time i enter a letter from A-Z it will display each letter together with a special character " | ". Im done with this but my problem is, the letters were displaying …

Software Development visual-basic
Member Avatar for gelaisg18
0
132
Member Avatar for kris.parekh.1

i am new to java and i am getting"cannot find symbol-variable data"please help here is my code import java.io.*; class categories { void options()throws IOException { int a; System.out.println("The categories available are"); System.out.println("1.Fantasy"); System.out.println("2.Fiction"); System.out.println("3.Inspirational"); System.out.println("4.Mystery"); System.out.println("5.Comics"); System.out.println( ); System.out.println("enter your choice"); data=stdin.readLine(); a=Integer.parseInt(data); switch(a) { case 1:System.out.println("1.The vampie academy …

Software Development java
Member Avatar for stultuske
0
202
Member Avatar for spuriousgeek

Hi Everyone, Background: I have recently implemented the A* pathfinding algorithm in C# based on some pseudo code that I found. I need the algorithm to run as fast as possible and at present my code isn't quite cutting it. I understand that the heuristics used can have a big …

Software Development algorithm c# data-structure
Member Avatar for spuriousgeek
0
1K
Member Avatar for ponnu

Is it possible to send mails without using MAPI controls6 reference files

Software Development visual-basic
Member Avatar for ponnu
0
156
Member Avatar for sapure

Please, I'd like to know the difference and the special uses for each one. If I want to use it for text file compression whose algorithm is as follows, which one is more efficient? Encoding Algorithm 1. Initialize the dictionary to contain all blocks of length one (D={a,b}). 2. Search …

Software Development algorithm java
Member Avatar for sapure
0
124
Member Avatar for lonelycloud

I've been trying to write a class called Point, with a file Point.cpp including a header file Point.h . I tried to set a global variable of type Point called ORIGIN, however I get an error message saying "error: ‘ORIGIN’ does not name a type" Point.h is as follows: [ICODE] …

Software Development c++
Member Avatar for Lizino
0
2K
Member Avatar for Rileyh

I am writing a program to get an integer from the user, and then print out all the numbers from 0 up to the number. My code gets the input fine, but when printing it out, it prints continuously in what seems to be an endless loop. Here is my …

Software Development assembly
Member Avatar for dancie reeves
0
924
Member Avatar for christinetom

Hi all Can anyone tell me how I add a linker directory for a specific library to my project in Codeblocks. It would be better if it was there all the time but I think I have to go to Project>Build Options> then I have to select the 'Search Directories' …

Software Development c++
Member Avatar for christinetom
0
2K
Member Avatar for GenieZ

Hello, I'm new in C. I'm getting warning: warning: format '%s' expects type 'char \*', but argument 2 has type 'char (\*)[256]' Here is the code: typedef struct { char operation[256]; char value[256]; unsigned long long key; } Input; int main() { Input input; while (scanf("%s",&input.operation) !=EOF) { if (input.operation[0]=='+') …

Software Development c
Member Avatar for GenieZ
0
103
Member Avatar for Viped

Hi, I've been studying OPENGL and 3D programming. I've made kind of 3D engine with basic movement, no collision detection yet. Now theres something really wrong in my code. When I go near rendered QL_QUADS framerate drops to 11-12 and allover my framerate is too low. Any suggestions? Core.java package …

Software Development java opengl
Member Avatar for Viped
0
251
Member Avatar for mchung90

Hello! I am currently attempting to read all the lines from a text file, and append them to one long string. At the moment, it seems that the line that is read in keeps overriding the string, instead of appending it. I think it has something to do with the …

Software Development c++
Member Avatar for nullptr
0
322
Member Avatar for s123456

assuming everything else works...i'm having trouble with the output...the if else statements are driving me crazy. it is outputting the date twice when i enter 7/3/12 code displays todays date....displays "payday" entered......adds 7 days to "payday" to show NEXT payday. void Date::addDays(int month, int day, int year) { _day = …

Software Development c++ programming-construct
Member Avatar for MandrewP
0
149
Member Avatar for ponnu

how will you generate a csv file after entering data through forms into access db.?

Software Development visual-basic
Member Avatar for ponnu
0
165
Member Avatar for jhedonghae

i want to add dates from two datetimepicker...for example the user chooses the date 1/1/2012 in the first picker and chooses 1/3/2012 in the second picker the answer should be 3 that will be shown in a textbox.. this is the codes that i tried: Dim dt1 As Date = …

Software Development vb.net
Member Avatar for jhedonghae
0
127
Member Avatar for Blacktono4

So this marks my very first forum page on this great database of information named DANIWEB. So just quickly, as i am still in school and learning python, I really need to know, just an explination on: The def statement, what you can do with it and how to use …

Software Development python
Member Avatar for Blacktono4
0
116
Member Avatar for sofy

my task is to type 20 integer numbers from 0 to 99 as the input data. few tasks are to check the maximum and minimum, and find the total number of even and odd numbers. (this one i already got the answer). But i have problem for my next task, …

Software Development c++
Member Avatar for sofy
0
363
Member Avatar for sofy

not sure if this is the right place to ask, but i need some help for my problem here. i want to find inverse, upper triangular and determinant for a matrix. but i'm not sure why it doesn't work like what i want. for now, i just want try to …

Software Development c++ matrix-multiplication
0
127
Member Avatar for bigwill2010

Write a Python program that draws a circle with radius 50 pixels and centered at the center of the canvas. Give the canvas white background color and make it expand with its frame whenever the user resizes the frame. The program will respond to some mouse and keyboard events as …

Software Development python tkinter
Member Avatar for bigwill2010
0
8K
Member Avatar for dean.ong.14

My import random not working...... can anyone help me? and i need to make sure that people can quit in the middle of the quiz... THX import random # make input equal to Python3 style input even in Python2 def question (): try: input = raw_input except: pass question =" …

Software Development python
Member Avatar for dean.ong.14
0
292
Member Avatar for trevor.hood.921

**Background**: I have a friend who lets me use his MySQL database on hostedresource.com. He has successfully accessed the database with this snippet of PHP code: `mysql_connect ('dbname.db.1234567.hostedresource.com', 'dbname', 'password')` I tried to access the database with the following vb.NET code: Imports MySql.Data.MySqlClient Imports System.Data Public Class classDataConnector Private connection …

Software Development vb.net
Member Avatar for trevor.hood.921
0
1K
Member Avatar for hdeo1235

hey guys! i have a problem, for my GCSE i have been given the task of making a prixe draw program, which allows the user to add 10 names then select a name at random. i have come to a problem when i have tried using a for loops to …

Software Development vb.net
Member Avatar for Reverend Jim
0
284
Member Avatar for scarletfire

I am trying to pick up cryptography on my own and no problem with caesar and vigenere cipher but here I am trying to understand or to start this bit on the one-time pad. Could anyone advise or give me a head start on this? Write a program (preferably Java) …

Software Development encryption java
Member Avatar for scarletfire
0
787
Member Avatar for francis.deladurantaye

Here is my code. I have a problem with the decimals when it comes to "temp /= 100.0". montant = 61; for (int i=0 ; i<7 ; i++) { if (i != posCreancier) { temp = montant/7.0; (temp == 8.7142857142857135) temp *= 100; (temp == 871.42857142857133) temp += 0.5; (temp …

Software Development c++ mathematics
Member Avatar for Ancient Dragon
0
135
Member Avatar for michael opoku

can you please aid me writing a code for copy,cut,paste,undo and redo in vb6

Software Development visual-basic
Member Avatar for jhai_salvador
0
114
Member Avatar for JOSheaIV

Hello DaniWebbers, So I have been hard at work on a new program that reads in a webpage every X amount of seconds. Once doing so it detects if there has been a change on the webpage, if so, updates a form, and let me know of the change. Well …

Software Development
Member Avatar for JOSheaIV
0
7K
Member Avatar for mitchell5879

Hello, I am having a problem with the output for my sub-string generator program. input: abc desired output: a, b, c, ab, bc, ac, abc current output: abc, abcc, abcb, abcbc, abca, abcac, abcab, abcabc I am sure the error is right in front of me, but I have been …

Software Development c++
Member Avatar for zhizu
0
174
Member Avatar for xIXZeroIXx

hello everyone, im having a headache with this error im getting, im trying to read a number from a file but inside a Switch(case) statement but im getting alot of erros only inside the case and i cant figure out why if my open file code is correct (as far …

Software Development c file-system
Member Avatar for xIXZeroIXx
0
289
Member Avatar for honnysingh

I using following codes to add images in my project & its working properly in winxp but not working properly in win7 platform. please help me to find the problem. If you any other better codes to add images to MS-Access databae then please suggest. thanks Public Sub FillFields() If …

Software Development visual-basic
Member Avatar for jhai_salvador
0
92
Member Avatar for lorens5

can someone help me i want to start this programming

Software Development visual-basic
Member Avatar for jhai_salvador
0
93
Member Avatar for harishbansal90

hello, i have checked online on a website which gives error **BadRequest(status code=400)** and gives response like : *'"message": "messages": [ "We are sorry, the item you selected, cannot be done" ] , "resultInfo": "result": "fail", "url": "http://www.abc.com/xyz/pqr/home", "resultCode": 400'* but when i am doing the same thing at my …

Software Development asp.net http-protocol
Member Avatar for JOSheaIV
0
343
Member Avatar for jonathan.oberhaus

I came up with these two arrays and now i need to search the nameArray by a name inputted by the user and then show the corresponding index value from the scoreArray? Any ideas? public class InitArraya { public static string[] arrayName = new string[5]; // declare array named array …

Software Development
Member Avatar for Momerath
0
122
Member Avatar for CodyM

/*I'm having trouble creating a constructor for degree and *coeffs as well as properly creating the dynamic arrays for the coefficients of the 2 polynomials a and b. I'm just concerned about getting the correct values. My textbook only gives us eamples of constructos for eamples not well related to …

Software Development c++ oop
Member Avatar for CodyM
0
226
Member Avatar for Delightfully

def exponents(num1,num2): if (num2==0): return 1 else: return num1*exponents(num1,num2-1) Hey I was wondering how I can generate a list of exponents using a for loop or a while loop so that the numbers display like this: Input (2,3) Output 2,4,8 What I have so far only returns the answer, Please …

Software Development python
Member Avatar for TrustyTony
0
2K

The End.