199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for enkitosh

Hi. I'm making a shooting game and since my code was getting a bit messy and big I decided to divide it into couple of classes and files. I'm confused of how to correctly split these files and classes up though. As I imagine it without really knowing if that …

Member Avatar for Serapth
0
362
Member Avatar for Bradoz

Hello problem i am having is when trying to multiply polynomial 1 by polynomial 2 polynomial 1 gets mutliplied by the first term in polynomial 2 and not by each term in polynomial 2. Below is my code: ~~~~ /********************************************************************************************* * Multiplies Polynomial 1 to Polynomial 2 * The method …

Member Avatar for NormR1
0
313
Member Avatar for J.Killa

I'm doing an online store for one of my Computer Science classes and I have a little problem with the registration form. Somehow, the password field automatically fills itself with the password 'mypassword' and I don't understand why. At first I didn't know what the password was because it's obviously …

Member Avatar for codemonkey88
0
105
Member Avatar for dyingatmidnight

Hello. So I'm a junior web developer at an marketing company (and when I say junior I mean I'm not techincally entirely qualified for the position and overly a large learning exprience :P So bear with me here). Anyway, I was asked to look into a way to rewrite our …

Member Avatar for cereal
0
118
Member Avatar for Nathaniel10

I am teaching myself C++ and amd now trying to simple programs related to data structures. I wrote this code for a simple stack. It is not working. I am frustrated and tired so I cannot think through the issue. There are two main problems with which I need help. …

Member Avatar for Nathaniel10
0
122
Member Avatar for mavis310

so for my code i have i'm trying to pass along the i variable in the for loop but when i pass it on it passes the highest i value. so when it should be one it passes along 10. i am curretnly passing along the cell6 id and splitting …

Member Avatar for drogba123
0
371
Member Avatar for ibthevivin

So the program I'm writing should count how many of each individual vowel is in the program and then print that. I'm basically stuck with while and conditional statements. I think my if statement is where I've gone wrong. I'm not sure how to have it read the letter properly …

Member Avatar for SirMG
0
186
Member Avatar for vizz

I am trying to use jScrollPane vertically, but it is not working. http://jscrollpane.kelvinluck.com/ I want simple styleable scrollbar alternative for above link or need help to make code work ( **Vertical only :-** http://jscrollpane.kelvinluck.com/arrows.html )

Member Avatar for pritaeas
0
84
Member Avatar for Joshua Kidd

Hello, I have a listbox in my program and I want the user to be able to remove all Listbox Items with the click of a button. I Figured this would work, [CODE]Listbox1.Text = ""[/CODE] But I Guess that doesn't work. Any Help would be awesome:)

Member Avatar for mhosny
0
256
Member Avatar for VasquezPL

I have found out that myAppointment.RTFBody appeared with Outlook 2010. The problem is that I don't know how to use it. I copied an example from http://msdn.microsoft.com/en-us/library/aa287595(v=vs.71).aspx myAppointment.RTFBody = @"{\rtf1\ansi This is in \b bold\b0.}"; unfortunately whatever I put after myAppointment.RTFBody, I receive an error: System.Runtime.InteropServices.COMException (0xB9B0FFFF): The operation failed. …

Member Avatar for Momerath
0
2K
Member Avatar for utkarshsahu

Suppose i have a list l=[1,2,3] i want to make this list as [2,3,4] i.e. add 1 to all the values in list l. I want to do it by the method of for loop.. Can someone help?

Member Avatar for TrustyTony
0
125
Member Avatar for RinzLove

> Quoted Text Here Hi, anyone can help pass values of JRadioButton to another JFrame? For example, if "twoway" Jradiobutton is selected, its value (a char i.e. "2-way face foundation") will be shown in another JFrame. Thanks in advanced.. Code blocks are created by indenting at least 4 spaces ... …

Member Avatar for NormR1
0
263
Member Avatar for km2011

Hello everyone!! I have a problem about memory allocation, i use calloc() to initialize all elements in array to be zero. This is my code: #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <time.h> #define sizes 1200 main() { double** arr; int m[sizes]; int i,j,k; srand((unsigned)time(NULL)); arr= (double **) calloc(sizes,sizeof(double*)); for(k=0; …

Member Avatar for km2011
0
180
Member Avatar for baig772

i have following .htaccess RewriteEngine On DirectoryIndex index.php RewriteRule ^([a-zA-Z0-9_-]{3,20})/([^/]+)/([^/]+)?$ index\.php?page=$1&s=$2&o=$3 [L] RewriteRule ^([a-zA-Z0-9_-]{3,20})/([^/]+)?$ index\.php?page=$1&s=$2 [L] RewriteRule ^([a-zA-Z0-9_-]{3,20})/?$ index\.php?page=$1 [L] RewriteRule ^([a-zA-Z0-9_-]{3,20})?$ index\.php?page=$1 [L] ErrorDocument 404 /404 it displays mu url as localhost/mysite/home for first perimeter and its going fine but when my url is localhost/mysite/home/user, whole look of page …

Member Avatar for pritaeas
0
108
Member Avatar for Kappash

Hello, I'm trying to make a sub that will highlight the text of a RTB that is passed. Here is the code: Private Sub SearchAll(ByVal selectedRichTextBox As RichTextBox) Dim startPos As Int16 = 0 Dim matchPos As Integer = selectedRichTextBox.Find(TextBoxSearchFor.Text, startPos, selectedRichTextBox.Text.Length, RichTextBoxFinds.None) selectedRichTextBox.SelectionBackColor = Color.Yellow While matchPos >= 0 …

Member Avatar for Kappash
0
82
Member Avatar for arihantphp

Hey all ! I am wondering if there is any way by which we can take an input from a user using a html form and write it to a file inside a specific div tag in a specific file. for ex: I enter a Name in a form the …

Member Avatar for broj1
0
220
Member Avatar for Cameronsmith63

Hi there, 1) So i have a Menu Strip, and a couple of user controls, and in these user controls, i have group boxes. So when I click on the item that I want in my menu strip, it displays as normal. That's working fine. What I am trying to …

Member Avatar for Cameronsmith63
0
143
Member Avatar for rmbrown09

Quick synopsis: Program sorts array the user inputs. IE enter 5,6,78,4,2 and it will sort it in order. Through various algorithms. This works great with quick small lists, but for some reason with one large number or longer lists the program will crash. Here are the files if you would …

Member Avatar for rmbrown09
0
149
Member Avatar for SlzzyDzzy

Im trying to teach myself a little bit of python and have become stuck/frustrated. Im on [Python.org](http://www.learnpython.org/page/Loops#) and so far have had no luck. First, the objective is not too clear "Loop through and print out all even numbers from the numbers list in the same order they are received, …

Member Avatar for M.S.
0
187
Member Avatar for Perlie

Hi, I try to use a specific word in my file to put it as a folder name. This word vary in my file so, I think about use regular expressions to define it. my $file=$ARGV[0]; my $word=~/DOT\d+/; my $line=""; open(file, $file); while( $line = <file>){ if ( $line =~ …

Member Avatar for Perlie
0
115
Member Avatar for garden4ork

Hello all again, hopefully the last bit I'm stuck on. So at the moment, I'm wanting a piece of code that recognises any time between say 9am and 11am, 11am and 1pm, 1pm and 3pm, and so on (To create a pie chart) It doesn't have to recognise time, it …

Member Avatar for pritaeas
0
263
Member Avatar for zingwing

i need help finding the low value in an array after reading file with numbers. With my program I am to assume that the size an array is 100 even if only 10, 31, 50 spaces are taken up. The problem im running in to is when i iniztialize the …

Member Avatar for Adak
0
232
Member Avatar for preist

[COLOR=DimGray][B]Could someone point me to resources with info on reading and implementing XML into ActionScript (flash) applications. I don't mean you should just make a google search on "Read XML in ActionScript". Also, what is your favourite XML editor and why? I tryied XMLSpy but there are some major limitations …

Member Avatar for tomboy
0
138
Member Avatar for iThaos

I've been away from web coding for some time but I feel like coding PHP again. I was phpDesigner a lot and I got use to it. Its features are great but the trial ran out. Can anyone recommend a free PHP IDE that has all or most of the …

Member Avatar for cloder
0
242
Member Avatar for rayan90

i have a single list program which i need to sort the nodes of int and String type unsing only one of these algorithms (insertion, selection, bubble and shell). no merge or quick or using collections and stuff. i'm having a difficulty here, i only know how to implement them …

Member Avatar for zeroliken
0
257
Member Avatar for TheOnlyRoss

Hello. I am trying to accept a paragraph from the user in C using codeblocks. But, with the scanf statement, the program stops accepting once i hit space. Is there some way to get around this problem?

Member Avatar for zeroliken
0
203
Member Avatar for shanaka95

Hi..i want to **creat a autorun programme** to cd's which i am writing.so i want to creat that programme using **vb 6**. now i want to creat a command button when i click on it ***open a seperate window and browse the cd***..please help me to creat that..

Member Avatar for C0ding
0
132
Member Avatar for helpsie

To make it short and sweet, here it is. Looking to do a simple screenshot on the client-side (and if anyone would be so kind, point me in the direction to create an automated upload of the screen to a server. ++ if you can provide a tip on doing …

Member Avatar for helpsie
0
888
Member Avatar for hwoarang69

I am trying to compute 2x-x+4x, so the answer should be 5x. but i am not sure how to get started. The "x"'s are messing me up. I am thinking of using for loop and replace x with '\0'. and than add or sub starting from left to right. but …

Member Avatar for TrustyTony
0
115
Member Avatar for dmotah

Dear friends, i am a university student competting for my bsc(hons) in IT! i suggested to have my final year project based on android, n for your info, i have never codded in android. im am supposed to give a suggestion by tomorow! and i would be completing my project …

Member Avatar for dmotah
0
158
Member Avatar for greatman05

Hello. What are some ways that one can work with (x,y) coordinate pairs in Python? I'm doing a homework assignment that requires me to create a program that can check for certain binary relations (reflexive, transitive, symmetric), and I'm having an issue coming up with the best approach for it. …

Member Avatar for greatman05
0
277
Member Avatar for kmg2012

This is a recursive selection sort i would like to be able to change this code without the use of loops into a bubble sort for my assignnment. Ive been trying for an extremelyy long time and im also fairly new to c++ and im struggling. any help would be …

Member Avatar for TrustyTony
0
241
Member Avatar for kieky

Hi all.. can u help me to fix this : **Compilation Error** **Description:** An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. **Compiler Error Message:** CS1061: 'Group' does not contain a definition …

Member Avatar for hericles
0
114
Member Avatar for terrah

ok, so I have to do this problem to solve : Create a class Road that contains different stop points. A point is characterized by latitude, longitude, altitude. a. Validate the correctness of the values b. Create an array of Roads and display it c. Display the longest Road d. …

Member Avatar for Ancient Dragon
0
145
Member Avatar for stevthym

Hi! I have a decimal number (e.g 6433) and would like to see the process of converting this to IEEE short real floating point format! Any help is appreciated ;)

Member Avatar for Rashakil Fol
0
1K
Member Avatar for sergent

I decided to learn C++ STL and I was exprimenting with STL containers. I saw this example [here](http://www.cplusplus.com/reference/stl/vector/insert/): // inserting into a vector #include <iostream> #include <vector> using namespace std; int main () { vector<int> myvector (3,100); vector<int>::iterator it; it = myvector.begin(); it = myvector.insert ( it , 200 ); …

Member Avatar for sergent
0
440
Member Avatar for Niner710

Hi, I am interested in trying to make a cumulative distribution function in Python. I have a set of data in a numpy array and just want to plot that data. numpyArray = [0.4, 0.3, 0.6,1.2,1.8, 0.5] I would also like to have a vertical line on the x-axis at …

Member Avatar for Niner710
0
244
Member Avatar for Rewired

For some reason I can ONLY upload .JPEG but not .GIF, .BMP, .PNG Can someone help fix this please? Is their something I did wrong? [CODE]<?php ini_set("memory_limit", "200000000"); ?> <?php if ((isset($_POST["submitted_form"])) && ($_POST["submitted_form"] == "image_upload_form")) { if (($_FILES["image_upload_box"]["type"] == "image/jpeg" || $_FILES["image_upload_box"]["type"] == "image/pjpeg" || $_FILES["image_upload_box"]["type"] == "image/gif" || …

Member Avatar for akira_lee
0
194
Member Avatar for yamigx

hi.. lately i had this problem when i try to build in codeblocks.. Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping... Nothing to be done. and i tried to install it again and again with different versions.. but it still …

Member Avatar for sergent
0
101
Member Avatar for jojodeco

i have some kind of code in the error but i have searched and looked i do not no what is wrong i am getting this erro message :error C2065: 'loop' : undeclared identifier but i thought that you did not have to id loop they are not a varibale …

Member Avatar for Lerner
0
177
Member Avatar for sandyneedshelp

I have a text file like: ABCD=ABC+BCD+CDA ABC=AB+BC BCD=BC+CD CDA=CD+DA AB=A+B BC=B+C CD=C+D DA=D+A I want the user to input the result. The program should give me the output to the lowest level. e.g. User Enters: ABCD then the program should display ABCD = ABC+BCD+CDA, ABC=AB+BC, BCD=BC+CD, CDA=CD+DA, AB=A+B, BC=B+C, …

Member Avatar for sandyneedshelp
0
167
Member Avatar for blueyan

Hai, I'm a C++ beginner with self learning.I have a function that return a vector string eg: vector <string> result :"PA1070","PA1088","PA1091","Pa1070","PA1044"..... How do I compare the vector string element in a proper way? I tried to compare (if result[0] < result[3] ) cout << "True"; else cout << "False"; it …

Member Avatar for sergent
0
350
Member Avatar for Sevyt

I need this for 2 different changes. ON one form i got a week calendar, the other a month calendar. Was hoping to add 2 buttons previous & next. To scroll back in time x days, or x days forward. And similar for the months, but instead of days months. …

Member Avatar for Sevyt
0
98
Member Avatar for ma.ali786

hi, how to create nested table in sql server for example employee table contains 3 column id name address where name should contain 3 sub columns like firstname middlename lastname how can i get this one help me plz

Member Avatar for adam_k
0
242
Member Avatar for Begginnerdev

Hello my fellow Danniwebbers, I have yet another question for you to ponder. I have two custom action listers. One that handles Mouse.Click and one that handles Mouse.MouseDown. My question to you is, can I delay the mouse down event so that it does not intefere with the code of …

Member Avatar for Begginnerdev
0
5K
Member Avatar for newbie14

Dear All, I am trying to write to a file as below. But my file shows empty what could be wrong here? const char *dataFileName = "data.dat"; FILE *ftdata = fopen(dataFileName,"a+"); fwrite("TEST",1,2,ftdata);

Member Avatar for Tumlee
0
85
Member Avatar for minisrija

I want to have a calender coding in php for inserting in the date of birth field. And to make text in text box to move especially for student name field. <code> <?php $con = mysql_connect('localhost','root', ''); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("stu", $con); $result …

Member Avatar for diafol
0
137
Member Avatar for minisrija

I want to generate the deptno automatically. Im using backend as mysql which allows auto-incrementation only for an integer, not supports for varchar. So any code to do it? Thank you. Code blocks are created by indenting at least 4 spaces ... and can span multiple lines <?php $con = …

Member Avatar for diafol
0
138
Member Avatar for devninja

I have everything added to the JFrame using absolute positioning. It works fine but when it repaints the pie chart it also repaints the last JNumericField and button at the the very top left of the screen. At postion 0, 0 I presume PieChartFrame.java import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; …

Member Avatar for NormR1
0
189
Member Avatar for adrigreat14

I am starting to learn python as my first programming language, but i ran into a problem while trying to make a function that calculated the missing variable in the simple equation v= u+at. The problem is that i am incapable to change a variable's value from False to True …

Member Avatar for adrigreat14
0
282

The End.