199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for racumin

Hi I am implementing a "Star Craft" game and I have troubles on my A* algorithm. I followed the steps in [URL="http://www.policyalmanac.org/games/aStarTutorial.htm"]here[/URL] and created my own implementation using object oriented c++. Now when I have say 32 x 32 grid, and I need to move 1 unit, it takes for …

Member Avatar for mehdi_gol
0
489
Member Avatar for CloudZELL91

what is the program of do while that ... you can type any number but when u type zero it will stop the program? thanks for the help peace!

Member Avatar for CloudZELL91
0
83
Member Avatar for dgreene1210

[CODE]#include <stdio.h> void getInput(); void calculate(int num1, int num2, int num3, float num4); void printTable(int num1, int num2, int num3, float num4,int calc1, int calc2, int calc3, int calc4, double calc5, double calc6, float calc7, float calc8); int main (void) { int num1, num2, num3; float num4; int calc1, calc2, …

Member Avatar for dare599z
0
1K
Member Avatar for DarkBerzerk

OK, I'm making items in webbased game and dunno how to design the db well to be able to use well this is the one i made but dunno its nice or no, gonna be hard to use anyway, what i need it item type which is Potion,Gem,or equipment ... …

Member Avatar for DarkBerzerk
0
93
Member Avatar for localp

There is a Windows Form application for example say 'A'. and there is another class called 'example.cs' that will call 'A' as apart of its action. When 'example.cs' calls 'A' , 'A' will pop out, and continue to execute. what i want to do is, when 'example.cs' calls 'A' , …

Member Avatar for Momerath
0
96
Member Avatar for yobbko
Member Avatar for mahmoz

heeey guys i want to make predator and pray simulation and i made the 2d array i just don't know what to do next i need help !!!!:S [CODE]#include <iostream> using namespace std; void printGrid(char grid[][20], int w, int h); int main() { // Create a 20 by 20 grid …

Member Avatar for raptr_dflo
0
280
Member Avatar for massivefermion

I wanted to have a vector<string> and a vector<double> in my class so I used forward declarations below: [CODE=c++] class string; template <typename T> class vector; [/CODE] But I recieve the error: [ICODE]field 'varname' has incomplete type[/ICODE] for both vector<string> and vector<double> variables. I searched internet for this error but …

Member Avatar for raptr_dflo
0
2K
Member Avatar for infiniteloop56

Hey guys I have a program im doing for fun, I need to be able to enter a minimum exponent and a maximum exponent as well as a base. CANNOT USE THE POW() FUNCTION. Ex. minimum exponent = -2 maximum exponent = 3 base = 2 output: base exponent result …

Member Avatar for raptr_dflo
0
232
Member Avatar for Ninjah

Good Afternoon, I am working on a project in which I would need to create a matrix of nxm dimensions, in which the top, bottom, left and right edges should have the value 1 and the interior of the matrix should be a random between 0 and 1 with a …

Member Avatar for Ninjah
0
212
Member Avatar for qwesr

I'm trying to create a program that simulates a season of baseball. It takes a text input from a file that has the stats of the player, like Batting Average, Fielding Percentage, Home Runs etc... So i have planned everything except the simulating part. I need to figure out a …

Member Avatar for qwesr
0
177
Member Avatar for warlord902

Suppose I have four classes in a package named T namely Main, A, B and C The class Main contains public methods which the classes outside package T access and Main class in turn communicate with other three classes and let some function to happen. Now I want only a …

Member Avatar for warlord902
0
172
Member Avatar for Labdabeta

Code::Blocks isn't working. I recently reinstalled to get a newer version and when I hit build I get the following error: [CODE]mingw32-g++.exe -Wall -g -I"C:\Program Files\CodeBlocks\MinGW\include" -c D:\Programming\C++\TESTINGOPENGL\main.cpp -o obj\Debug\main.o Execution of 'mingw32-g++.exe -Wall -g -I"C:\Program Files\CodeBlocks\MinGW\include" -c D:\Programming\C++\TESTINGOPENGL\main.cpp -o obj\Debug\main.o' in 'D:\Programming\C++\TESTINGOPENGL' failed.[/CODE] Please help!

Member Avatar for Labdabeta
0
2K
Member Avatar for montjoile

I'm getting a runtime error, and I can't figure out why. I'm developing the insert method of a btree. Below is the code of insert() [CODE] void insertar(btree* r, int dato){ int pos=0; btree* encontrado= buscar(&*r, dato, 0); //buscar() searches if [COLOR="Red"]dato[/COLOR] already exists if (encontrado==NULL) printf(" data already exists"); …

Member Avatar for gusano79
0
141
Member Avatar for yongj

How does one create a dynamic table (meaning that it expands as information is automatically put in) with data coming from a MySQL database? I'm pulling information from a private school's "stock" database and need to fill in a table with information such as the date of the stock, the …

Member Avatar for FreddieBambino
0
2K
Member Avatar for The_Prince

Hello everybody. Just a query (in fact two) I have a reasonably huge matrix type data which is to be used via some other calculations, In the matrix are values of 1s, 0s and -1s which will appear in random and the actual i-jth position is important. Is it any …

Member Avatar for mrnutty
0
172
Member Avatar for Sorcher

Does anyone else see the problem here? i get ""userdetails did not match"" But the $myusername is set correct. [CODE]error_reporting(E_ALL); if($_POST['tSubmit']){ $points = $_POST['pointamount']; $price = $_POST['price']; $reciever = $_POST['reciever']; $mypassword = $_POST['mypassword']; $myusername = $_POST['myusername']; include "../db_connect.inc.php"; $sql= "SELECT password, loginid FROM login WHERE username = '$myusername'"; $result = …

Member Avatar for diafol
0
190
Member Avatar for volcome

Hello, As a complete layman, I turn with a request to modify a small free program installpad [url]http://installpad.com[/url]. The program is used to "unattended" pour into the computer programs. I'd edited the software so that if they already have some programs that I would like to install, downloaded locally on …

Member Avatar for volcome
0
118
Member Avatar for vuyiswamb

Good Day All I am accessing an FDB Database with a WCF service. locally it was working fine, but now i want to access the service that is stting on a remote location. my Connection string looks like this [CODE] <add name="FDBConnectionString" connectionString="User=SYSDBA;Password=masterkey;Database=\\192.168.03.14\Database\SCHOOL.fdb;DataSource=192.168.03.14; Port=3050;Dialect=3; Charset=NONE;Role=;Connection lifetime=15;Pooling=true; MinPoolSize=0;MaxPoolSize=50;Packet Size=8192;ServerType=0;"/>[/CODE] i get …

Member Avatar for vuyiswamb
0
8K
Member Avatar for netci

hi, my arraylistS in a covering arraylist behave like the same instance. i manupulate one of them with [CODE]i=0; manupulate(myarrofarrs.get(i));[/CODE], and all the sub arraylists have become effected of the manupulation. i googled a little but in google it was said: "create new instance with myvar=new myobject()" i have already …

Member Avatar for JamesCherrill
0
202
Member Avatar for eoop.org

Hi :D Is it someone, who knows how i dock an "FormBorderStyle = none". I want it to be on the top, it will be new start line, but only on the top. No applications should run over the main. Like this picture:[URL="http://imageshack.us/photo/my-images/600/topc.png/"]http://imageshack.us/photo/my-images/600/topc.png/[/URL[/URL]], you need to see the top. Plizz …

Member Avatar for eoop.org
0
141
Member Avatar for beatbox32

Hello, I'm attempting to learn C through the K&R book and am having some trouble with Exercise 1-13 at the moment. I'm just attempting to do a simple horizontal graph and can't figure out why this isn't working correctly. It seems to be ignoring my first "if" statement and just …

Member Avatar for beatbox32
0
479
Member Avatar for CloudZELL91

help!.... can you give me a statement of looping that use for loop, while, and do while loop at the same time... and if you can answer the statement it will be more welcome.. thank u ... peace!

Member Avatar for Momerath
0
71
Member Avatar for bbman

[CODE]using System; public class UserMainCode { //Assume following return types while writing the code for this question. public static int[][] output1 = new int[9][]; public static void soduko() { } public static void SolveSudoku(int[,] input1) { input1=new int[9,9]; int i,j; for(i=0;i<9;i++) for(j=0;j<9;j++) output1[i,j]=input1[i,j]; soduko(); //Write code here } }[/CODE] im …

Member Avatar for Momerath
0
142
Member Avatar for iret

Just some random thoughts :) DOS runs natively in 16-bit Real Mode. EMS, and Himem, memory managers (to my best knowledge) provide their services by jumping in and out of Protected Mode. 32-Bit Protected Mode programs use a DOS extender to jump into Protected Mode, and provide 32-Bit services. A …

Member Avatar for iret
0
231
Member Avatar for s.w.a

please what is that do and mean?? [CODE]message = ("HTTP/1.1 302 Found\r\n" + "Location: http://" + redirectionAddress + "/\r\n" + "Content-Length: 0\r\n" + "Connection: close\r\n" + "Cache-Control: max-age=0, no-store, private\r\n" + "\r\n"); where redirectionAddress = nodeAddr + ":" + message; and message = "AuthKey" + ":" + "clientIP" + ":" …

Member Avatar for s.w.a
0
127
Member Avatar for Dhanesh10

[CODE]#include"stdio.h" #include"conio.h" #include"alloc.h" struct node { int age; char name[25]; struct node * next; }; void add_end(struct node **q); void display(struct node *); void main() { struct node *p; p=NULL; add_end(&p); //display(p); getch(); return; } add_end(struct node **q) { struct node *temp,*r; temp=*q; if(*q==NULL) { temp=(struct node *)malloc(sizeof(struct node)); printf("\nEnter …

Member Avatar for Dhanesh10
0
370
Member Avatar for tennis

[CODE]#include "stdafx.h" #include<iostream> using namespace std; class A { public: A(){} void setdata(int s) {t=s;} int getdata(){return t;} protected: int t; }; class B: public A { public: B(){} }; void main() { A a; a.setdata(3); B b; cout<<b.getdata(); }[/CODE] Why I cannot get an output of 3 here? Can …

Member Avatar for Narue
0
103
Member Avatar for vehpurple

okay so i figured everything out for my project except how to get this simple select statement to work. i have a table named [B]Car[/B] that i LINQ'd from a Microsoft Access File. please help. i want a button to display the Car database according to the SQL statement. thank …

Member Avatar for vehpurple
0
104
Member Avatar for twentylemon

I have a simple function to toggle visibility of whatever. I use it in many places and I know it works fine. [code=html]<script type="text/javascript"> <!-- function toggle_visibility(id) { var e = document.getElementById(id); if (e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } //--> </script>[/code] I'm now using this …

Member Avatar for twentylemon
0
221
Member Avatar for Bheeman89

Dear Friends, I have a question in security programming. As all of us know, when we have a database with passwords or anything sensitive, we would like to encrypt it so it is not readable by other. Now I want to know, which of the method is secured or less …

Member Avatar for twiss
0
188
Member Avatar for tom_289

Code Giving Error is Given Below, and Error is 1) Make Sure your method arguments are in right format 2) When converting a string to DateTime, prase the string to take the date before putting each variable into the DateTime Object [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; …

Member Avatar for jignesh kaila
0
222
Member Avatar for rents

Hey everyone. I'm looking to replicate an effect I saw on an app used on an iPad. Basically, there's a background image and a layered, centered content section. As you scroll down, the opacity of the background starts to fade, without effecting the content section at all. By the time …

Member Avatar for rents
0
139
Member Avatar for samsons17

Hi.. I am in the middle of my project but i get stuck here. I want to make the friends linking process page.Which is upon registration, new user will be redirected to this page to find their friends that have registered on my site. I try to google it, but …

Member Avatar for samsons17
0
165
Member Avatar for stevanity

I created the following package AccBal. [CODE]package AccBal; public class AccountBalance { private String Name; private double Balance; public void setData(String name, double balance) { Name=name; Balance=balance; } public void displayBalance() { System.out.println("The Account Balance of " + Name + " is $"+Balance); } } [/CODE] Then I created a …

Member Avatar for stevanity
0
243
Member Avatar for leetari

Hi, Why is it that when I remove(commented out) the inner j for loop and all it's contents, the cmd prints out my desired output. However, replacing back the inner for loop, it gives an incorrect output -> my counter values are wrong when printed. Can anyone spot what I …

Member Avatar for leetari
0
156
Member Avatar for yashsaxena

Hello All Recently I go through the concept of virtual function in C++. I have confusion with how many vitual pointer and virtual table for a single class are created? And if the class is inheriing some other then what will be the situation?

Member Avatar for yashsaxena
0
219
Member Avatar for neutralfox

Hello friends, I am having a small problem, i have already designed a chat application, the chat works fine over a local network but now I want to use it over the internet. Logically the program should but what happened is that to get the IP I have used [code] …

Member Avatar for kumarprabhug
0
6K
Member Avatar for Dannis86

So i've got a little problem. I'm just running a website for fun, got it from a friend because he didn't need it anymore. Site is called: fapperd.nl Now i'm really happy with me installing a phpbb forum on my server and made a button for the forum as you …

Member Avatar for Dannis86
0
400
Member Avatar for jbennet

Ok, in a very simplified version ive got to write a C++ app to interface with a joystick and play various sounds depending on its position - Its a USB joystick and I will have a QT GUI. This app already exists, for Windows/C# . I just need help porting …

Member Avatar for jbennet
0
345
Member Avatar for dev344

Hi I have never come across such code before. I can't make out what it is [CODE]SockerManager::SocketManager() : sockets(0), events(0), nSockets(0) {}[/CODE] Could someone tell me what does something like a() : b() mean? Thanks Devesh

Member Avatar for dev344
0
146
Member Avatar for silvercats

is this "process" or "processor scheduling?(what is the reason for your answer) This is done by OS or processor? also what is context switching? thanks

Member Avatar for Rashakil Fol
0
85
Member Avatar for epicrevolt

This question seems to always have 2 sides to it. If I make a [COLOR="Red"]register.php[/COLOR] with the registration form, should I have it submit to [COLOR="green"]processreg.php[/COLOR] or should it just process all on the same page? Same thing for login. I have read that it may e more secure to …

Member Avatar for smantscheff
0
188
Member Avatar for muralibobby2015

hello... i have multiple records in databse. i want to create .xml file automatically. if there is any data in xml file, automatically rewrite that file. how to do this. sugguest me please thanks.

Member Avatar for urtrivedi
0
121
Member Avatar for laim

Hi, I have just started learning classes and I have to make a matrix class. I know matrix math so that is not an issue, basically I have an h and cpp with function names and parameters and just have to define them. My problem is that Im stuck at …

Member Avatar for laim
0
144
Member Avatar for Ritesh_4

Hello Is there a specific tag in html so as to make a field behave as a date picker in a form?

Member Avatar for Ritesh_4
0
161
Member Avatar for naveedqadri

I need urgent Help plz. scenario: Oracle Database and Client 10g are installed on same system. I want to connect my website with database ( i am new to oracle and ASP.Net) ORA-12514: TNS:listener does not currently know of service requested in connect descriptor My web.config file contains code [code] …

Member Avatar for naveedqadri
0
339
Member Avatar for Jiaxin

Hello, I am trying this code out but has error. Please help, This is my code. <?php include 'dbFunctions.php'; $result = mysql_query('select * from criteria_m'); if (!$result){ die('Query failed: ' . mysql_error()); } $i = 0; while ($i < mysql_num_fields($result)){ echo"information for column $i:<br />\n"; $meta = mysql_fetch_field($result, $i); if(!$meta){ …

Member Avatar for Jiaxin
0
231
Member Avatar for kazekagerandy

how can i crop an image based on the size of my picturebox? my picturebox's size mode is normal, i want to have for example, a 100 x 100 image using a 100 x 100 picture box, also i can drag the the image inside the picturebox so that i …

Member Avatar for Jeff-Bennett
0
423
Member Avatar for fantasma

Greetings! I'm trying to solve a little problem that occurs when I try to kinda make an associative array out of an associative array. I wish to associate 2 fields coming from mySQL so I can make a simple associated print for the records I want (and I do not …

Member Avatar for diafol
0
116

The End.