199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Chuckleluck

Could someone help me with this code? When I compile & run my project, it says "Battlefront.exe has stopped working. Windows is looking for a solution to this problem" This is my code: [CODE]//----------------------------------------------- /// Battlefront.cpp Source Code File /// Part of the Battlefront.cbp Code::Blocks Project //----------------------------------------------- /// This file's …

Member Avatar for Chuckleluck
0
710
Member Avatar for some_coder

Hello, I made the following code to convert known datatypes to bytes: [CODE]template <class T> void convertToByte(const T *t, PBYTE pbArray) { DWORD dwSize = sizeof(T); memset(pbArray, 0, dwSize); memcpy_s(pbArray, dwSize, reinterpret_cast<LPCVOID>(t), dwSize); } [/CODE] But i was wondering how i'd go about it without passing a datatype into the …

Member Avatar for some_coder
0
183
Member Avatar for bibiki

hey there, I am trying to test strings using regex to make sure that the string may represent a monomial. that is, it must be 123123213x^213123. I am having difficulties to find any helpful information on how to test for ^. I am trying this: [+|-][0-9]*[.][0-9]*[x\^]? but I get a …

Member Avatar for bibiki
0
116
Member Avatar for Pytho

Hi all Could someone show me an example how to use Blowfish with crypt? [code]$password = crypt($_POST["password"], '$2a$07$0k5ls4mbfakdl2mbk5lo9dkr$');[/code] Looks strange as well as the output.

Member Avatar for diafol
0
95
Member Avatar for ntrncx

I know that there is a sticky thread and i know that maybe i repeating things that already mentioned but i am totally confused. I am interested to study about game programming,i don't study i bought a book and i am near to finish it about c++. i goggled and …

Member Avatar for Dman01
0
180
Member Avatar for lundon

i searched for similar threads but couldnt find any. i write python scripts ..but i want to store them in someother folder eg /Desktop/... the scripts get executed from the unix terminal..however the python intepreter(initialised by typing python in terminal window )is not able to find the files. i changed …

Member Avatar for Trentacle
0
162
Member Avatar for mehdi.yazdani

hi i want to create some random password for users who sign up in the website also i want to use from rand command in php for creating some numbers among some characters and the results will be some things like this : sa231dsaw22sa suppose it as a example of …

Member Avatar for pritaeas
0
82
Member Avatar for maxxxx

I'm looking for javascript of a bird flying across my screen, is there such thing? or maybe an airplane. Thanks.

0
84
Member Avatar for PF2G

Hi, I'm doing a registration system and as you can see when i verify the fields, if it's empty it says that the FIELD_1 misses. And what i want is if the field is empty says that and then goes back, but i don't wanto the info already written disappears. …

Member Avatar for PF2G
0
162
Member Avatar for gourav1

[CODE]public class A extends Applet implements MouseListener,MouseMotionListener{ public void init(){ addMouseListener(this); addMouseMotionListener(this); } }[/CODE] please tell me that what "this" means here!! actually, what argument addMouselistener() function want ? i have seen API, in that it is given "MouseListener e", how it is true here ?? tell me please!! here …

Member Avatar for NormR1
0
139
Member Avatar for winecoding

I have the following hashed structure [CODE]$chainStorage{$R1}{$S1}{$C1}{@A1}[/CODE] [QUOTE]$chainStorage = { 'ACB' => { 'E' => '06' => [100, 200, 95] 'B' => '23' => [20, 1000, 05, 30] }, 'AFG' => { 'C' => '24' => [18, 23, 2300, 3456] }, 'HJK' => { 'A' => '12' => [24, 25, …

Member Avatar for d5e5
0
452
Member Avatar for softDeveloper

Dear All, I'm working on a web application, JSP. I have a script with a javascript function that returns a String. I want this returned String to be passed to another page in a form, when a button is clicked. Any ideas on how to make this work? I was …

Member Avatar for softDeveloper
0
1K
Member Avatar for Dman01

Hi community First I want to thank everyone who will look through this, because it's a longer post. I'm currently reading a book on AI by Mat Buckland. I'm re-building Mats entitymanager, though I just copied it. He used std::map to collect all entities as pointers which are cross referenced …

Member Avatar for Dman01
0
3K
Member Avatar for yash_code

[CODE]private void Form7_Load(object sender, EventArgs e) { try { this.label15.Text = a.textBox3.Text + " Rs"; label32.Text = label15.Text; this.label18.Text = a.textBox7.Text + " %"; label26.Text = label18.Text; this.label4.Text = a.textBox6.Text + " Rs"; label24.Text = label4.Text; this.label17.Text = a.textBox4.Text + " %"; label28.Text = label17.Text; this.label16.Text = a.textBox5.Text + " …

Member Avatar for yash_code
0
301
Member Avatar for kbar1

I'd like to spend some time killing my brain cells over a small program which nevertheless uses appreciably high logic, e.g. some scientific application. I'd classify myself as a mid-range, so please go easy. Thanks!

Member Avatar for mike_2000_17
0
161
Member Avatar for programing

hi can someone explain this small code how its work : [CODE]/** * @(#)Output.java * * * @author * @version 1.00 2011/12/24 */ public class Output { public static int rec(int x, int n) { if (n < 0) { System.out.println("Illegal argument"); System.exit(0); } if (n > 0) return ( …

Member Avatar for predator5047
0
133
Member Avatar for programing

my code should print numbers in reverse array its not have error but the lest for statement its not print array in reverse order [CODE] import java .util.Scanner; public class R { public static void main (String [] args){ Scanner input=new Scanner(System.in); int size; System.out.println("Size "); size=input.nextInt(); int [] array=new …

Member Avatar for NormR1
0
247
Member Avatar for whit89

Hi im attempting to create a room viewing system where by The building selected with a drop down - this uses an sql query to store the data of the building from a different table rooms then if its available from now ie rooms free for 1 hour from now …

Member Avatar for whit89
0
142
Member Avatar for kikic

I made a code in assembly 8086. I load matrix (array) in memory with dimension 3x3. but this code works just for this dimension of matrix 3x3. Could someone give me an idea how could i make it to work with dimension m x n? the array is loaded in …

Member Avatar for kikic
0
230
Member Avatar for Dakot

hello,i must solve this problem : "Sum all even digits of a given number. That's what i've got so far. [CODE] #include <iostream> using namespace std; int main() { int sum = 0 , num; cin>>num; while(num > 0) { sum+=num%10; num/=10; } cout<<sum; return 0; } [/CODE] the problem …

Member Avatar for burcinerek
0
165
Member Avatar for mpooley

I have a datatable - 1 of the columns is a double so i read it like this Dim num As Double = Drow(1) I get an error about late binding here (with option strict on) I have tried converting to a double eg Dim num As Double = convert.toDouble(Drow(1)) …

Member Avatar for mpooley
0
85
Member Avatar for maxxxx

I have a drop down menu on my page, and I want to change the background color of the box from white to match the rest of the page, how do I do this. Thanks [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta …

Member Avatar for charisma
0
184
Member Avatar for programing

can help me in this code i made it to check if a given number is plindrom or not [CODE] import java .util.Scanner; public class PNumber { public static void main(String[] args) { System.out.println("Enter size "); Scanner input = new Scanner(System.in); int size = input.nextInt(); int [] array=new int [size]; …

Member Avatar for .:n'tQ-boy:.
0
202
Member Avatar for Sars

Hi guys. Im a noob programmer trying to make a trainer. This is just for hobby. I been using borland c++ builder. I made my dialog and button. I need the button to when pressed access a process and change the value of 5 offsets. I have the offsets and …

Member Avatar for richieking
0
304
Member Avatar for bhagyap

Hi.. I have 3 DropDownList:- DropdownList1 has status,DropDownlist2 has date and DropDownList3 has duedate and based on these values selected i want to populate the Gridview following is my code.. protected void Button1_Click(object sender, EventArgs e) { string con = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; SqlDataAdapter sda = new SqlDataAdapter("Select * from DropDownFilter where …

Member Avatar for bhagyap
0
842
Member Avatar for vinc88

i am using netbean to develop a registration form. As this i want to know what is the coding to check input of text, integer, email , so i can restrict what they input..hope some 1 help me =)

Member Avatar for dean8710
0
129
Member Avatar for eoop.org

I want to learn a new programming language, which I can use to create large applications such as operating systems, editing applications. I know it requires a great deal of understanding of contents, but I can not decide which language. it is either C or C++ need advice... :icon_eek:

Member Avatar for radc
0
325
Member Avatar for ThePythonNoob

Hi guys I need some help with a tic tac toe game I made, the problem[s] is that it will not display that there is a tie and when you win it will run the computer move function and then it will say you have won. It is something to …

Member Avatar for ThePythonNoob
0
224
Member Avatar for devindamenuka

Hi, I have to develop a C++ programme for airplane booking company where I have a one plane and 42 seats in the plane There are 1st class and 2nd class and somking and nonsmoking areas. this is a assignment I have to do. I dont need any code but …

Member Avatar for VernonDozier
0
159
Member Avatar for davy_yg

I have the following error: (include_path='.:/usr/share/php:/usr/share/pear') in /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/banner.php on line 15 Line 15: include("includes\koneksi.php"); That error appears after I upload my website online. Why is it ?

Member Avatar for simplypixie
0
135
Member Avatar for -==Zero==-

Iam Making Register & Login System Thats My Code [CODE]<?php include ('func.php'); include "Admin/config.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="rtl" lang="ar"> <head> <title>ÇáÊÓÌíá</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /> <link href="favicon.ico" rel="icon" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="Style.Css" /> </head> <body> <?php include "header.html" ?> …

Member Avatar for -==Zero==-
0
182
Member Avatar for Findlebot

Okay, I need to write a maze solver for the maze in the text file (yes it is an assignment). I am not asking for a direct answer, I just want someone to propose ways of solving the maze( I also have to mark the paths taken in the maze). …

Member Avatar for 0x69
0
3K
Member Avatar for jim_underpants

Assume that we have a mergesort algorithm which takes 2 series as an input and returns 1 after the merge each time. So that if we want to count say memory blocks we would need 2 blocks for the input and 1 for the output accordingly, total size of 3 …

Member Avatar for Rashakil Fol
0
200
Member Avatar for sofia85

Hi, I need some help getting the hypergeom distr. I've started with this code, but it doesn't seem work: [CODE]def logchoose(n, k): lgn = special.gammaln(n+1) lgk = special.gammaln(k+1) lgnk = special.gammaln(n-k+1) return lgn - (lgnk + lgk) def hypgeo(x, r, b, n): return exp(logchoose(r, x) + logchoose(b, n-x) - logchoose(r+b, …

Member Avatar for Gribouillis
0
105
Member Avatar for mohamedasif18

Hello guyz.. Now am currently doing a SMS portal site . I have 2 frames like , <frameset rows"" cols""> <frame src"page1.php">Page1</frame> // Navigation <frame src"page2.php">Page2</frame> // Main Content </frameset> Navigation : Static main Content : Dynamic || By this case when user press F5 the Main content frame goes …

Member Avatar for mohamedasif18
0
272
Member Avatar for jackbauer24

Have a look at this...[QUOTE]>>> chores = 5 >>> paper_round = 30 >>> spending = 10 We’ve just created variables named ‘chores’, ‘paper round’ and ‘spending’. We can then re-type the equation to get: >>> print (chores + paper_round - spending) * 52 1300 16 CHAPTER 2. 8 MULTIPLIED BY …

Member Avatar for jackbauer24
0
178
Member Avatar for Rdel

what is the difference of running program in codeblocks,Blooshed and Visual C++

Member Avatar for PrimePackster
0
105
Member Avatar for Tobyjug2222

Hello, I'm Rather new to coding, and It seems like I skipped some of the basics, and jumped in the deep end. I'm having a couple of problems, as I have an ordinary text file called "Orders", and this file stores Orders, placed by users of my program. The Users …

Member Avatar for Reverend Jim
0
215
Member Avatar for paradox814

Hello all, I'm trying to create a password change form for my company's vendors. There are a couple of scenarios I could encounter doing this: 1 - User enters invalid current password 2 - New passwords do not match 3 - User's account is locked 4 - User cannot authenticate …

Member Avatar for Reverend Jim
0
155
Member Avatar for vijaykavin10

Hi All [CODE]package apple; import java.io.IOException; import java.util.Scanner; /** * * @author Mates */ public class Apple { private double sample(){ double total; int a=120; Scanner as=new Scanner(System.in); System.out.println("enter the value"); double i=as.nextDouble(); total=i*a; System.out.println("apple"+i+"kg"+" "+total); [COLOR="red"]return total;[/COLOR] } public double sample1(){ int b=50; double total1; System.out.println("enter the value of …

Member Avatar for vijaykavin10
0
295
Member Avatar for ryanwebber

Hi I require assistance on how to sort numerous records in C# in chronological order e.g the date of birth, if someone could help me it would be much appreciated. Thanks Ryan

Member Avatar for darkagn
0
184
Member Avatar for inuasha

The title really says it all. For example if I had a music file and I wanted to have it play all the way through then how would I make it start another music file after the first is done?

Member Avatar for inuasha
0
216
Member Avatar for Sushi

I'm trying to write a function that gets an array, it's size and the number I'm looking for. The function should be recursive. That's what I've written, it doesn't work. I don' understand why. Suggestions are welcome. [code=c] #include <stdio.h> int binary (int *a, int n, int num) { int …

Member Avatar for WaltP
0
280
Member Avatar for terence193

Well , I am trying to create a bees game as part of my assignment .. Now in this simple game I should use a text file .. and the text file is to create different game stats in different lines.. eg.. "10 (number of bees) 0 (number ofinfected bees) …

Member Avatar for Trentacle
0
117
Member Avatar for rssk

hi........ i'm new to java...... i m running a java program on cmd prompt,i want to compile but i m getting error like [B]'javac' is not recognised as internal and external command ,operable program [/B] plzzzzzzzzzzz help me:)

Member Avatar for peter_budo
0
554
Member Avatar for SubzeroX6

Hi, I've been trying to learn how to do collision between a sprite and a tile for a while, so I've been testing this point collision I found from a Java book. But for some reason, the tile's images can't be drawn onto the screen. Any Ideas or thoughts to …

Member Avatar for NormR1
0
330
Member Avatar for MrEARTHSHAcKER

I wonder why it ain't possible to manipulate with static member of base class from derived class. [CODE]#include <cstdlib> #include <iostream> using namespace std; class Base{ public: static double BaseValue; void Set(double a){BaseValue=a;} void GetBaseValue(){cout<<BaseValue<<endl;}}; class Derived:public Base{ public: double Count(){ return BaseValue*2; } }; int main(int argc, char *argv[]) …

Member Avatar for MrEARTHSHAcKER
0
203
Member Avatar for jola.chmiel

Hi, im making my new CakePHP project and I've got some problems with validating data, which comes from form. I mean i do know how to add custom rule but i don't know how should regex for 9 numeral telephone number looks like. [code] function checkPolishNumber($inputValue){ $regex = 'what to …

Member Avatar for jola.chmiel
0
207
Member Avatar for softDeveloper

Hi All! I'm working on a web application, JSP, where a user selects the text with the mouse in html. I want this text to be inserted in a MySQL database as a java string using prepareStatement in Java and executeupdate. Example: String querystring = "INSERT INTO mySelectedTextTable(selectedTextWithMouse) VALUES (?)"; …

Member Avatar for softDeveloper
0
212
Member Avatar for VB 2012

My Program changes it's My.settings to default , it looses the Location Where it is saved This only happens when i move to a new area But if i take a new builded exe and put it in same Dir of old exe then It Remembers old Settings Anybody wanna …

Member Avatar for VB 2012
0
155

The End.