199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for marimifs

Hello, I have done a PHP project and on my localhost it is working perfectly but when I uploaded it on my webspace the CMS part of my website did not work as it is supposed to. The strange thing is that the client side of the website is working …

Member Avatar for Stefano Mtangoo
0
247
Member Avatar for pikalife
Member Avatar for ramy84

Hello, in my program i want to read data from text file and display the data as keyvalue pair using console application. i am using below code to read the data [code]{ string[] lines = System.IO.File.ReadAllLines(@"C:\Users\ramy\desktop\grocery billing.txt"); System.Console.WriteLine("Contents of grocery billing.txt :"); foreach (string line in lines) { Console.WriteLine(line); // …

Member Avatar for thines01
0
180
Member Avatar for sidlampard

hi could anyone tell me how to get bit pattern of a negetive number. For example bit pattern of -1357 is: 11111111111111111111101010110011 and bit pattern of 1357 is: 00000000000000000000010101001101 but how????

Member Avatar for stultuske
0
149
Member Avatar for iXmerof

Hi, I'm making an app that uses Collections. Everything went ok until now, what I've done: I've got a class that initializes 3 strings, those strings are private, so I have made 6 public functions that sets or reads values from those strings. Next I've made a hashmap, keys are …

Member Avatar for iXmerof
0
186
Member Avatar for phorce

Hello (Dunno if this is the right forum) But basically, I've been given some text to decrypt. I've got to do it using frequency analysis. Here's what I've done: 1. Got a frequency analysis of the text: Showing how many times a letter appears. 2. Got a frequency analysis of …

Member Avatar for frogboy77
0
155
Member Avatar for kryz

I'm trying to create a tiles matching (memory) game. I'm a beginner and I'm confused how exactly to start on creating one dimensional array for sessions. The tiles should be at least 30 with text values. When the user select first tile (reveal the text) and then user select second …

Member Avatar for Stefano Mtangoo
0
205
Member Avatar for mrhankey

hi, what is the best password encryption to use on a website with mysql backend? i have used md5 and sha1 in the past however which is best? crypt? â—¦RJINDAEL ? what is best to use? they wont be recovering the password only sent a new password if forgotten. so …

Member Avatar for Stefano Mtangoo
0
149
Member Avatar for aryajasi

Here is my code, I dont receive any error, but Im unable to set cookie Tried using of OB_START too. Thanks in Advance. [CODE]<?php include ("../includes/dbcon_.php"); $login_chk_sql = mysql_query("SELECT * FROM TCustomer WHERE UsrName = '$_POST[lusername]' AND LoginPwd = '$_POST[lpassword]'"); $login_row = mysql_fetch_array($login_chk_sql); if ($login_row['IsLoginActivated'] == "N") { header( 'Location: …

Member Avatar for Stefano Mtangoo
0
79
Member Avatar for erum

i have follwoing code in c++ .i want to continue it till suer give input as 'Y' or 'y' [CODE]// my first program in C++ #include <iostream> #include <stdlib.h> #include <conio.h> #include <stdio.h> //#inlcude <iostream> #include <stdlib.h> #include <conio.h> #include <ctime> using namespace std; void Evaluatexp(char ch[]); //void Evaluatexp(string ch); …

Member Avatar for erum
0
178
Member Avatar for onat12`

I have a Login validation problem, when Username = 123-incorrect Password = 123-incorrect Login Failed. when Username = onat12-correct Password = sambuca888-correct Login Accepted. now when, Username = onat12-correct Password = 123-incorrect Login Failed. now when, Username = 123-incorrect Password = 123-incorrect Will not validate Verification failed [CODE]using System; using …

Member Avatar for hericles
0
205
Member Avatar for Radi0ShacK

Hi all, I just wanna know how to send a file through a socket connection in C language "client request a certaion file on server and server send him this file" i work on both winsockets and bsd sockets "client ==> windows, server ==> *nix" Thanks alot :)

Member Avatar for MaSSaSLaYeR
0
497
Member Avatar for kera

I need to create an application with two forms. The startup form holds the names of the dormitories and the other holds the meal plans. When the user selects a dormitory and meal plan, the application should show the total charges for the semester on the startup form. Here is …

0
135
Member Avatar for ArmanUV

I am buiding a Tic Tac Toe solving robot using the LEGO NXT kit for my school project. For practise, I wrote a Tic Tac Toe game using the minimax algorithm which worked very well. When I wanted to port my code to NXT, I found out that none of …

Member Avatar for Adak
0
1K
Member Avatar for vammy

Hi Guys, Is it possible to dynaically create table name in MS Access: Below is my CODE: [CODE] strSQL = "CREATE TABLE" + Me.Text + "( ID Counter," & _ "Name TEXT(50) NOT NULL," & _ "PRIMARY KEY(ID) )" [/CODE] But,im getting a run time error that syntax is wrong. …

Member Avatar for vammy
0
130
Member Avatar for MemphameHeroic

I need help in making a C program that performs binary operations on two 16 bit binary values. It should look like this: Select operation (1) Addition (2)Subtraction Enter Choice: 1 Enter First binary number: 1111111111111110 Enter Second binary number: 0000000000000001 Sum: 1111111111111111 I have trouble using the functions, please …

Member Avatar for Adak
0
241
Member Avatar for coolbeanbob

Hello, I need to take a four digit integer and re-arrange it as follows... pre: 1234 post: 3412 I have been searching for a method to convert a char array to an int, so I can use the code below. Am I using atoi() incorrectly? The result I get when …

Member Avatar for coolbeanbob
0
447
Member Avatar for jakizak

Hi Guys, Another puzzle for someone to try and crack... I have two divs inside the <body> that basically act as two versions of the same page. I need PHP to call one based on a variable retrieved from a database. As it stands, this is what I have... [CODE] …

Member Avatar for Stefano Mtangoo
0
245
Member Avatar for awesome_cool

I've been Programming in C++ for a year. I am done with Basics and all other OOP concepts(like inheritance,polymorphism and STL) I want to be a game programmer, but i don't know what to study now? I've heard about OpenGL, DirectX, GUI libraries as a result i m confused to …

Member Avatar for thines01
0
529
Member Avatar for pro_learner

Guys,i want a small help from you.I have a created a database in MS Access and now i want to connect it to with Java Application by using ODBC Administartor.But when opens it,it doesn't show any driver for MS Access DBs.Do u guys know any driver for that.I'm using Windows …

Member Avatar for pro_learner
0
203
Member Avatar for phorce

Hello, I have an array and need to sort it so that the highest numbers show first etc.. I have written this: [code] for(int i=0; (i < 26); i++) { while(counter[i] < counter[i + 1]) { int temp = counter[i]; counter[i + 1] = temp; counter[i] = counter[i + 1]; …

Member Avatar for phorce
0
100
Member Avatar for phorce

Hey.. Is it possible to make PHP type arrays? Like keys? For example, I have an array of numbers, and an array of letters.. A = 10 B = 20 C = 30 And then I sort the numbers so that the highest number is at the top etc.. But, …

0
73
Member Avatar for manobaby

Can any one help me put my pointer by gotoxy function inside the matrix that,s like as below: [CODE]void gotoxy( short x, short y ) // function to handle position of cursor on the screen { HANDLE hStdout = GetStdHandle(STD_OUTPUT_HANDLE); COORD position = { x, y }; SetConsoleCursorPosition( hStdout, position …

Member Avatar for raptr_dflo
0
558
Member Avatar for deraad

Im really stumped on trying to format user input. I have an input box where users enter data separated by commas. Then I explode it: [CODE] $data = $_POST['data']; $words = explode(',', $data); [/CODE] then I'm analyzing each word. Everything works perfectly when you enter the data correctly. However, if …

Member Avatar for diafol
0
155
Member Avatar for AbEeR Q8

hi; I'm trying to program a circular link list with a head node , I have a problem with insert function . wanting to do it like this but with a head node >> [url]http://geeksforgeeks.org/wp-content/uploads/cll1.gif[/url] this is my function :: [CODE] struct node{ int data; node *next; node(int x,node *n=NULL){ …

Member Avatar for raptr_dflo
0
390
Member Avatar for mcclainra

The names are in a txt. file and are categorized as 1. malename femalename. One being the number symbolizing their popularity in 2004. What I've been attempting to program is a program that will read a requested baby name from the user. Scan through all the baby names using an …

Member Avatar for raptr_dflo
0
1K
Member Avatar for sanonite

Hello everyone, my assignment is to calculate each student's test average and final letter grade from a class of 20 students with 3 tests. The scores for each test are located in the text files that I am attaching. I have worked on this code for some time now, but …

Member Avatar for sanonite
0
245
Member Avatar for asif49

The best way to describe my problem is with an example... Consider, [CODE] $content = "This is a string <kjfkldsjf> <jslkdjfksd>"; [/CODE] What I want to do is clear everything in between the <...> tags no matter how long the length of text in between the left and right arrows …

Member Avatar for asif49
0
119
Member Avatar for babyhuyx

I'm currently working on a project similar to that of text twist. I have a dictionary txt file which I stored into an array. I then have user input a guess, then compare the guess to the dictionary array using a for loop. Somewhere along the lines of this: [CODE]string …

Member Avatar for raptr_dflo
0
175
Member Avatar for smmcfarl

This is my whole program and what I am trying to do. Nothing is being outputted through the functions though. When I output the array in the client code it prints correctly but not through the recursive function. So I am wondering what I am doing incorrectly? Input is like …

Member Avatar for raptr_dflo
0
96
Member Avatar for sdragon

Hi Everyone, I'm new here and also new in using Java. I want to make an iterator without using the default methods hasNext, hasPrevious. Here is what I've already done using the default methods: [CODE]import java.util.*; public class HomeIterator{ public static void main(String[] args) { int i = 0; ArrayList …

Member Avatar for sdragon
0
276
Member Avatar for OblibSystems

Basically im trying to make a game where shapes fall from the sky and the user controls the sprite to avoid them. I have it working but only with 1 block falling at a time. I am using the paint method to draw my shapes. I was wondering how to …

Member Avatar for the_carpenter
0
226
Member Avatar for MrEARTHSHAcKER

Hi, I wish to start making Windows Applications, but I need a good compiler. Considering I work in DEVC++, I can't make buttons, textboxes and other objects that easy. I wonder if there's any compiler like BorlandBuilder for C, but for C++. That'd really help me :icon_cool: So do you …

Member Avatar for MrEARTHSHAcKER
0
221
Member Avatar for jmonit

Hi there heres the script [url]http://www.dynamicdrive.com/dynamicindex3/leaves.htm[/url] it works fine in IE but doesnt work at all in Firefox, can anyone tell me how I can get it working in firefox. Best Regards Monit

Member Avatar for sacarias40
0
2K
Member Avatar for eLu-sive

hi, please help me debug this, i am trying to add one row from one table to another at the same delete it from the table i am getting it from. (cut and paste kinda thing). Only one part works, i can only copy and not delete. [CODE] int recordAffected …

Member Avatar for eLu-sive
0
238
Member Avatar for cummings15

The void and Output file will not work for my code and I don't know why. [CODE]#include <iostream> #include <string> #include <istream> #include <fstream> #include <cstdlib> #include<iomanip> using namespace std; #define MAX_ENTRIES 50 struct internet { string internetDomain; string ipNumber; int counter; }; // declare the array of structs - …

Member Avatar for raptr_dflo
0
130
Member Avatar for coolbeanbob

Hello All, I just want to see if you have the correct answer for a homework problem. The question is to find the smallest number of entries that, when inserted in an appropriate order, will force a B-tree of order 5 to have 3 levels. I believe the answer is …

Member Avatar for coolbeanbob
0
188
Member Avatar for gani_2

Hi, I am new to VB.NET and xml and I am trying to parse the xml file of format mentioned below and display it using textbox in VB.NET. But I am not able to parse it. Can anybody pls give me a code snippet to parse the xml shown below …

Member Avatar for thines01
0
4K
Member Avatar for 18engineer

I need a php code for company house XML gateway.... can any one send me... I need it tooo much .. plz help

Member Avatar for 18engineer
0
109
Member Avatar for berwick53

Hi i'm trying to read in an XML File that is like the following [CODE]<?xml version="1.0" encoding="utf-8"?> <ArrayOfSYMBOL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SYMBOL Code="AA.P" Name="Alcoa Inc Pf 3.75" /> <SYMBOL Code="AADR" Name="Wcm Bny Focused Growth Adr ETF" /> <SYMBOL Code="AAU" Name="Almaden Minerals" /> <SYMBOL Code="AAVX" Name="Etracs Daily Short 1 Month S&amp;P" /> …

Member Avatar for thines01
0
92
Member Avatar for javaNooblet

Hi all, If I write a java program inside of eclipse, how can I run that program outside of it, rather than just hitting the run button in eclipse. So, I can give others the program to run on their computers. Thanks!

Member Avatar for javaNooblet
0
258
Member Avatar for caut_baia

Hi everyone.I'm trying to compile a resource file ".rc" for a Win32 application but i'm getting this error "use "" to put " in a string".Among other things , i'm trying to define a MENUITEM with a string that looks like this "&Save\t\"Alt+S\"".i have tried escaping the '"' character with …

0
152
Member Avatar for xtanmanx

I've searched for this but could not find exactly what i need to fit my needs. If it already exists, i apologize and thank you for the redirect. Fairly new to VB, but have a good understanding. Scenario: Have 3rd party software that has many drop down options for each …

Member Avatar for rthrtshrfhsrh
0
1K
Member Avatar for mbrcarnation

Hi everyone, I'm working on a project for my computer science class and we're supposed to make a java applet game. I'm not very far in the game quite yet, but I'm trying to make sure that the mouseListener and the rectangles work before I continue on with the game. …

Member Avatar for emmas4impact
0
230
Member Avatar for emmas4impact

Hi everyone, i'm trying to make a sound each time a ball touches the lift and right of a frame but when i use clip and try to use the sound class it sound from right then left the in middle and then stop. i Can really use some help. …

Member Avatar for JamesCherrill
0
212
Member Avatar for akde

I have created a new C++ project (to be able to use the graphics.h library) then I have tried to add a C project which works perfectly in C (by the way I have saved the file with .c extension). 2 line leads to error: [CODE] q = malloc(sizeof(struct QueueRecord)); …

Member Avatar for akde
0
263
Member Avatar for showman13

I have what will, I'm sure, turn out to be a very simple calculation but I'm drawing a blank... Too many years since High School I think What I have is a table that maintains positions and these positions are stacked, with each successive row containing twice as many positions …

Member Avatar for showman13
0
216
Member Avatar for javaNooblet

Hi All, I am currently trying to figure out to finish this project. Below is my code that I have so far. There are some blank methods that I am not sure where to even begin on how to complete them. I have a description of what the methods should …

Member Avatar for NormR1
0
2K
Member Avatar for muneeb213
Member Avatar for weeraa
0
138
Member Avatar for ggeoff

Hi I am using Lytebox v3.22 and I am trying to find a way to add a link on the popup. At present the link only appears on the thumbs page and is only dimly visible when a popup image is selected. I am using document.write. Although clicking on any …

Member Avatar for ggeoff
0
182

The End.