199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for iman_shani

Hej i am trying to create a simple game as homework from my school. now i just stuck on one stage. see the picture on this link how it looks like. [URL="http://jobbalert.se/"]http://jobbalert.se/[/URL] i have created a module here is the code for module file [CODE] Module Module1 Public Sub bknapper() …

Member Avatar for iman_shani
0
326
Member Avatar for dan4domination

Hello, The first part of the script works regarding updating however for some reason and I cant figure out why its not inserting into my bookings table. Any ideas? [code] <?php session_start(); // is the one accessing this page logged in or not? if (!isset($_SESSION['logged']) || $_SESSION['logged'] !== 1) { …

Member Avatar for dan4domination
0
118
Member Avatar for TheWolverine

Hi all, I was wondering if there is any standard way in C++ (perhaps in the standard library) of handling mathematical equations that are composed of +/- signs. For instance, if you are given the equations: [quote] y = +/- sqrt(x) z = +/- y [/quote] Is there an efficient …

Member Avatar for TheWolverine
0
150
Member Avatar for pedroteixeira07

Hi Everyone, I'm having some issues in the construction of an algorithm for a project. This is just a fraction of the algorithm and my problem is this: I'm trying to build a PHP function that gets the values of the first and second rows of a table and subtract …

Member Avatar for diafol
0
137
Member Avatar for jdpjtp910

I have a code and its almost done. Its for a school project and I am stuck. I have DivSales and a CorporateSales.cpp. The programs should ask the user for 6 divisions quarterly sales. Display the results into a table and give a total of sales. My total feature is …

Member Avatar for Murtan
0
1K
Member Avatar for daviddoria

This code: [code] #include <iostream> class Parent { int name; class Child { int school; void test() { std::cout << this->name; } }; }; int main(int argc, char *argv[]) { Parent MyParent; return 0; } [/code] Generates this error: [code] error: 'class Parent::Child' has no member named 'name' [/code] Is …

Member Avatar for HealBrains
0
174
Member Avatar for kendaop

Hello, I'm getting a segmentation fault in my code, at the IF statement. Can anyone tell me why? The printf() statement right before outputs the correct data, so *buffer definitely isn't null. Thanks for your help. [CODE]int main(int argc, char *argv[]) { FILE *inputFile, *rejects; char hold[200], hold2[30], *buffer = …

Member Avatar for abhimanipal
0
127
Member Avatar for YingKang

I am writing a PHP program with sticky form. I want to use Text area for the "comments" part, but I couldn't make it work. Can anyone help? thanks. [code] <html> <head> <title>guestbook</title> <style type="text/css"> .error {color: #FF0000;} </style> </head> <body> <?php extract($_REQUEST); $errors = array(); if(isset($_REQUEST['submit'])) { validate_input(); if(count($errors) …

Member Avatar for YingKang
0
490
Member Avatar for sDJh

Hello folks, I just updated my homeserver to PHP 5.3.1 and I get now the following error when executing my scripts: [CODE]Cannot use string offset as an array[/CODE] The variable looks like: $bes[$a[3]][$a[4]][$a[6]], where $bes is a three-dimensional array that holds all information I need during runtime. The $a's can …

Member Avatar for ShawnCplus
0
174
Member Avatar for rockstar8577

For some reason i cant output to a file unless it was already created. Here's my code. [code] fstream myfile; myfile.open (filename.c_str(), ios_base::in); if (!myfile) { myfile.close(); myfile.open (filename.c_str(), ios::out); avatar.name = name; avatar.init(); myfile << "Name = " << avatar.name << endl; myfile << "hp = " << avatar.hp …

Member Avatar for rockstar8577
0
118
Member Avatar for Don_k

Hi guys here is what I aim to do : Create a program which 1. reads in a string of less than 25 characters from the user 2. prints out the string followed by its reverse i.e. if the user enters "hello", the program should print "helloolleh". I can do …

Member Avatar for abhimanipal
0
126
Member Avatar for jasystweb

I am creating controls which are added to the page at run time. As these controls are added I separate them into a UL/LI list by injecting literals assigned as (<ul>, </ul>,<li>,</li>). The page in question uses a master page template. The ul/li function is called in the page_load event …

Member Avatar for jasystweb
0
254
Member Avatar for AJW

hello all, I'm taking a C++ class at my local community college. A project that was assigned was to make a menu program. I am about 90% done (I think), when I ran into this issue: when making a selection, the program doesn't know how to handle decimal numbers. The …

Member Avatar for AJW
0
110
Member Avatar for Don_k

My aim is to create a program that: 1. reads in a string of less than 255 characters from the user into a variable called array1 2. copies array1 into a variable called array2, converting each element of array1 to UPPER CASE 3. prints out the contents of array2 I …

Member Avatar for Dave Sinkula
0
122
Member Avatar for ChPravin

Hello all, I am trying to obtain data from a populated MySQL database table.Is there anyway to do so without specifying the connection string? I am using JDBC. The problem I am facing is that I don't have MySQL database on the system on which I need to run the …

Member Avatar for ChPravin
0
72
Member Avatar for blackblizzard

Hi everyone. I'm having trouble emitting a call to a delegate whose type is unfinished at the time of the emit. I'll elaborate: I'm trying to dynamically (i.e., with a [inlinecode]TypeBuilder[/inlinecode]) create the following class: [code=C#] public MyClass { // Delegate type. The 'firstArgument' will be 'this', i.e., this is …

Member Avatar for blackblizzard
0
265
Member Avatar for daviddoria

I have some code that uses _finite (I think from float.h) that my linker complains is not declared. I think this might be a "windows only" function. Is there an equivalent function that I can call that will work cross platform? Thanks, Dave

Member Avatar for daviddoria
0
217
Member Avatar for tnclark8012

I've been tasked with implementing either the min-max function or alpha-beta pruning to code AI for the game Gumoku (connect 5, vertical, horizontal, or diagonal). In both algorithms an evaluation function is called to analyze the board of play. Is there any "easy" way to do this? My initial plan …

Member Avatar for MyrtleTurtle
0
168
Member Avatar for D4n1sD

Hello, I am wondering how its possible, to make a server that you can connect to it, through IP and Port and than send data to it, For example I am trying to make a simple multiplayer game. But I am really amateur on connections etc. So please help me …

Member Avatar for D4n1sD
0
87
Member Avatar for ChaseW

I am looking for a way to add a "footer" to all of the posts in my RSS feeds. So, if they are having my rss feeds displayed on their forum, for example, then at the bottom of each post it can say something similar to "Feed By ChaseW". Does …

Member Avatar for jeancarlo
0
123
Member Avatar for nigelburrell

Hi, I trying select records where a field contains only one character of a string of characters. i.e. [code=sql]SELECT * FROM users WHERE user_role [contains any one character from...] 'ASD'[/code] so in this case, the query would return all records where the value of 'user_role' field is either 'A' or …

Member Avatar for ripraw
0
1K
Member Avatar for leatheag

Hi guys, Im new to MIPS and have no idea how to do this. Just need to convert an integer to a character. Thanks

Member Avatar for leatheag
0
908
Member Avatar for freakzilla

Hi guys, I have been trying to implement a shared circular queue between 2 processes. My structures are as follows: [code] typedef struct client_entry { long shmid; int pid; struct client_entry *next; struct client_entry *prev; } client_entry_t; typedef struct client_queue { unsigned int num_entries; long current_shmid; int notify; struct client_entry …

Member Avatar for Salem
0
170
Member Avatar for EvilNerd

My problem is when i try to include the function [B]funcString[/B] in my code and try to built it , i get this errors: [QUOTE]error C2065: 'ch' : undeclared identifier[/QUOTE] And when i remove the function [B]funcString[/B] i don't get any error and the programs runs perfectly. HERE is my …

Member Avatar for EvilNerd
0
161
Member Avatar for BeyondTheEye

For an electronics project, I have to access the TxD, RTS and CTS pins of a serial port individually. Well, any 3 pins could be used, but those 3 are preferred. All I've been able to find on the microsoft website are functions to access the serial port as a …

Member Avatar for BeyondTheEye
0
264
Member Avatar for dieter22

Hi there! I'm new to c++ and I'm having problems with ifstream. I assume that my question is pretty stupid but here you go: I've got something like: [code=c] ifstream infile(inname); [/code] Furthermore I do have an array - let's call it Array - which contains several filenames I want …

Member Avatar for TerishD
0
388
Member Avatar for Begjinner

Hi, Sorry if this is asked before, but I'm having trouble figuring this out (tried already for a couple of hours). This is what is going on: Kids make a test with 50 question. These test are checked manually on paper and afterwards need to be put into a website. …

Member Avatar for Tech B
0
121
Member Avatar for Tango2010

Hi, I have been experiment with Recursion / Trasversal through directories recently but seem to have run into a few unexplainable errors. Attached is my source code which is a function (which has the path (input user directory) passed into it). What im hoping this function will do is detect …

Member Avatar for Salem
0
667
Member Avatar for Tech B

If you don't know what a quine is, it is a program or script that's only purpose or function is to print out its own source code. I was wondering would this be considered a quine? [CODE] f = open("quine.py","r"); print f.read() [/CODE] quine.py is the script that this code …

Member Avatar for Tech B
0
175
Member Avatar for ndayala

[CODE]#include <iostream> #include <list> using namespace std; template <typename T> class superlist : public list<T> { public: // squish() is a mutator that "squish" together adjacent duplicate // elements in a list. // // Example #1: // [3, 3, 4, 3, 3, 3, 2, 8, 8] // becomes... // [3, …

Member Avatar for ndayala
0
111
Member Avatar for squarey

Hi Guys I want to build an application which can be used to empty the content of bad (remapped) sectors. At the moment I really dont know where to start, so I am hoping someone can give me a push in the right direction. It would also be nice if …

Member Avatar for Salem
0
202
Member Avatar for tones1986

Hi guys. I wanted to know if something would be possible. I currently have a server that runs mySQL and i created a database on there for use with PHP-Nuke Treasury module. I don't know much in the way of MySQL besides the basics. I uploaded the .sql file to …

Member Avatar for jaysmoke
0
155
Member Avatar for karolik

So I made a template...I tried declaring a string linkedlist like so... [CODE]LinkedList<string> str; [/CODE] Then i called the function insertLast to insert a string called hello..like so... [CODE]str.insertLast("hello")[/CODE] Then it gives me null pointer error...I cannot see how there can be a null pointer...help would be appreciated..Here is the …

Member Avatar for mattbond
0
182
Member Avatar for albertkao

I use the Tablekit library and Prototype javascript framework on firefox, chrome & IE8. The columns in this table can be sorted by the Tablekit library. [CODE]<script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/tablekit.js"></script> <body> <div id="mainmenu"> ... </div> <div id="content"> <table class="sortable resizable"> <thead><tr> <th class="sortfirstdesc">ID</th> <th>Date</th> <th>Time</th> </tr></thead> </table> </div> …

Member Avatar for Airshow
0
375
Member Avatar for soapyillusion

Hi all, sorry to once agian come begging for help, but the professor wants us this time to have the program have a function read the word then for each letter have another function confrim if the letter is a vowel or not, then have the first function remove the …

Member Avatar for soapyillusion
0
361
Member Avatar for liveshell

I have following peace of code, when i check it with valgrind it gives me "537 bytes in 19 blocks are possibly lost in loss record 12 of 12" Following is the code: CManager.h [CODE]class CManager enum RespType_en { eInvalidRes = 0, eAuthRes, eActivateRes, eSetStateRes } map<RespType_en, string> m_mRespTags; [/code] …

Member Avatar for Salem
0
758
Member Avatar for tryphy

I have some doubts in form submission. The function that i need is adding a prompt dialog box to confirm befor the user submits the form. Eg: The user is entering some data in the form and he clicks submit..a dialog box appears and says " Are you sure you …

Member Avatar for tryphy
0
1K
Member Avatar for jemz

hello please help me on this problem....i put this in form load txtunit.text = "C" my problem is that how can i position the cursor after the letter C..if i use txtunit.setfocus the cursor can be found before the letter C but i want it after...please help me.. thanks in …

Member Avatar for Jx_Man
0
118
Member Avatar for webprgmquery

I am using User authentication system, which uses 2 pages index.asp where user logs in and then the username and password is sent to the validate.asp page where it is checked against database userlist. if username and password are matched with username and password of database record then it should …

Member Avatar for webprgmquery
0
268
Member Avatar for vbcoder123456

Hi all, I have a requirement as follows, I have to display a list of datas in to a list box in button click functionality. When i click the button, values should be fetched from database table and loaded in to the list box. for example: the database table has …

Member Avatar for Jx_Man
0
758
Member Avatar for drewangel

hello, i want to pass an array and 2 more integer elements in the routine of thread in pthread in c. i know i need to use structure for the same. i am using pointer to that structure in this case. i need to know--- what will happen if i …

Member Avatar for Salem
0
117
Member Avatar for pavithraCS

Hi, Currently I have two colomns as frm_date and to_date. I need to display two dates in a one column as frm_date - to_date. eg: 2007-01-01 - 2009-01-01. Is there any functon to do this? Thanks in advance!!

Member Avatar for drjohn
0
74
Member Avatar for logicalguy

Hi, I have a qsort problem I just can't solve. I've got an array of pointers to a structure called struct mys. The structure has an int value called id. I want to use qsort to sort this array of pointers to structure in ascending order by the id value …

Member Avatar for Dave Sinkula
0
5K
Member Avatar for ripraw

Can you actually make relationships between tables in MySql??? i've looked all over the interent and all i can find is detail on what a relationship is pleeeeease help! am i barking up the wrong tree?

Member Avatar for drjohn
0
142
Member Avatar for sanzilla

Write Your First Application On Win32 ===================================== What is Win32 :-) win32 is an plactform that like J2ME and J2SE means that it have it's memory model and have a architure and have those Applications programming interfaces to call to the operating system . Like the APIS in the java …

Member Avatar for Salem
0
1K
Member Avatar for Xhoana

Hi everyone! I'm new to C++ and i was told Dev CPP is a good compiler. I installed it and anytime i try to open it comes out this message: There doesn't seem to be GNU Make file in PATH or in Dev C++'s Bin path. Please make sure that …

Member Avatar for Salem
0
122
Member Avatar for tryphy

Hi people, My issue is more of a MySQL issue than php. I am trying to store a 3digit integer value with a leading Zeros in front such as 001 i have a company table , which auto increments the id as 001, 002, 003...and so on... In the company …

Member Avatar for maks91
0
143
Member Avatar for forzadraco

i have a problem: i want redirect everything page in url: ex: [url]http://dracotech.biz[/url] to [url]http://www.dracotech.biz[/url] . want to add www. in everything request from user.. maybe with mode rewrite in apache but i didn't find way how to do it..

Member Avatar for rsleventhal
0
174
Member Avatar for persianprez

So for example, in the dictionary, the letter 'A' has a value of .8237 What I wan't to do is replace every letter with the value with .8237 to D in the string (not the dictionary) I've tried this without success and It's obvious why it wouldn't work: [CODE]if sorted(dictionary.values())>=.01: …

Member Avatar for Tech B
0
170
Member Avatar for akito1111

I tried to compile this code but it keeps telling me error C2446: '>' : no conversion from 'double' to 'float *' and error C2440: '>' : cannot convert from 'double' to 'float [5]' But I already converted it to float. Is there anyone can help to figure this out? …

Member Avatar for Aia
0
383

The End.