199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for xreyuk

Hi All, I'm a fairly new programmer so you'll have to bear with me on this. Basically, I have a database with 3 tables, Engineers, Equipment and Signouts. I want to create a VB application that allows engineers to sign out equipment. I have all of the forms setup the …

Member Avatar for Pgmer
0
346
Member Avatar for stefh

Hi :-) do you know how to move up one line in the terminal? Explanation with an example: [CODE]#!/usr/bin/env python # -*- coding: utf-8 -*- from time import sleep def test(): print "begin" i = 1 s = "#" while i < 5: print s sleep(1) i += 1 s …

Member Avatar for stefh
0
7K
Member Avatar for winecoding

In the following code snippet, T represents a class. This code is claimed to have problem due to the fact that "p" will be out of range after running "*p=a". Why? [CODE] void f1(T a) { T v[200]; T* p = &v[0]; p--; *p=a; ++p; *p=a; } [/CODE]

Member Avatar for Ancient Dragon
0
80
Member Avatar for ashrafu1

hello every one am new here and really confused with my C++ subject. i saw a few post here was deleted or not answered. i hope my one wont go without answer. now here is my problem. I REALLY DUNNO what am doing. i was able to write the program …

Member Avatar for ashrafu1
0
233
Member Avatar for saadi06

Hi I am trying to concatinate anchor tag and it is giving me this error Parse error: syntax error, unexpected T_STRING My code is [CODE]$link.="a href=".test.php/verify_email/$vcode." target=_blank>".Verify email address."</a>"; [/CODE] Can anybody help Thanks in advance

Member Avatar for jigarvyas
0
81
Member Avatar for jrosh

I am trying to connect to a database through j2me app and send two strings.It gives me java.lang.SecurityException: Application not authorized to access the restricted API error. (Caught in the try catch block) [CODE] import java.io.*; import javax.microedition.io.*; import java.util.*; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class storeNumbers extends MIDlet implements …

Member Avatar for jrosh
0
265
Member Avatar for newbie14

Dear All, I have two .php page. In my main php I call the other via the require_once method. Then in the main .php I declare and assigne variable and I tried to read the value in the require_once php I am not able to see the value. How can …

Member Avatar for jigarvyas
0
93
Member Avatar for GregPeters

Hi all I was wondering how to pass a multidimensional array to a function: Here is my code: [CODE] #include <cstdlib> #include <iostream> using namespace std; void PrintArray (int* array, int n); int main(){ int SIZE; cout << "Enter how many records: "; cin >> SIZE; int array[SIZE][2]; for (int …

Member Avatar for txwooley
0
230
Member Avatar for newbiecoder

Hello I am trying a code from a book, When I run it at local host and enter a number on the box I get this error : Have requested is not allowed to access the directory. Directory, or to read protected, or can not be read by the server. …

Member Avatar for happytogether
0
116
Member Avatar for Oddone

Okay, so I am trying to write a program which uses the Myers-Briggs personality test to turn this: Snoopy AABAAAAAAAAAAAABAAAABAAAAAAAAAAAABAAAABAAABABABAABAAAAAABAAAAAABAAAAAA Charlie Brown AAABBAABBABBBAABAAAABABABBAAAABABBBBABBBABAABABAABABAAABABAAABBAABABBB Linus AABBAABBBBBABAABBBBABABBABAAAABABBABABBAABAABABAABABBBBBBBAAAAAAABBBBB Lucy BABBAAABBBBAAABAAAAAABBBAABAAAAABBBAAABAAAAABABAAAABAABBBBAAABBAABABBB Peppermint Patty BBBBAAABBBBABBBAAAAAABBBAABAAAAABBBAAABAAAAABABAAAABAABBBBAAABBAABABBB Into this: Snoopy: 6A-4B 17A-3B 18A-2B 18A-2B [40%, 15%, 10%, 10%] = ISTJ Charlie Brown: 7A-3B 11A-9B 9A-11B 10A-10B [30%, …

Member Avatar for Oddone
0
307
Member Avatar for carmzy

Gudam, Please help me, regarding my ascending code.I've been doubt how to compare the two loop which is the outer loop and inner loop.I cant get the the output which is ascending in form...Please guide me this time because I'm just a beginner. Thank you in advance Here is my …

Member Avatar for carmzy
0
120
Member Avatar for w1mark

Hi, I have been working on a little text based interactive fiction game for a decent amount of time, but I just can't seem to figure out how I can cut up strings so that my program can understand simple commands. Is there a simple way to do this? For …

Member Avatar for w1mark
0
539
Member Avatar for MasterGberry

I am taking on a new project, this one should be a lot smaller than the previous. I want to take an exe file (a game executable), and change the memory addresses that it reads files from in memory. For instance, when you run the game executable it opens a …

Member Avatar for MasterGberry
0
374
Member Avatar for shawtyred74

Hi, I am new to php and I am totally lost on what steps I need to take in order to create a website that will allow a user to login with an email address and password or subscribe or unsubscribe. if they choose to subscribe then they should be …

Member Avatar for Stefano Mtangoo
0
104
Member Avatar for RenanLazarotto

Hey people! I have this code: [CODE] Public Class Form1 Private HowManytoGenerate As Integer Private HowManyDone As Integer Private List As ArrayList Private CDKeyFile As String = "C:\My Cool CD Keys.txt" Public Function GenerateUniqueString() As String Dim rnd As New Random Dim Chars As String Dim Result As String = …

Member Avatar for RenanLazarotto
0
114
Member Avatar for Stefano Mtangoo

Hi, I was thinking of writing simple Code editor pad like GEdit or Notepad++ but only for PHP and SQL. Now it is for hobby, so I want to use scintilla on wxWidgets and avoid wxWidgets component (purposely). So I was asking what are steps to write such pad. Also …

Member Avatar for Stefano Mtangoo
0
135
Member Avatar for dave086

Hi, I have searched for this for a long time, but cannot find the answer... sorry if it's simple or is on here already, I did look! Anyway - I'm trying to overlay text from a database on an image using php for use in banner ads for a client. …

Member Avatar for Stefano Mtangoo
0
155
Member Avatar for filch

Hello, I am trying to track down an issue with some content in a couple of popups generated with j-query. If you go to [url]http://streetkids.zuka.net/sandbox/map-new.05.html[/url] and role over and click on ethiopia on the African continent, you will get a map that pops up. On the map you will see …

Member Avatar for filch
0
159
Member Avatar for skips

Hello. What i'm trying to do is simple and I know that I could just get the answer offline. However, I wanted to finish this one myself, so if someone could fix what I believe to be a small error I would appreciate it. I am simply trying to read …

Member Avatar for skips
0
151
Member Avatar for fazdhli

<html> <head> <style type="text/css"> #apDiv1 { position:absolute; width:595px; height:298px; z-index:1; left: 412px; top: 38px; } --> </style> </head> <title>safarina JavaScript</title> <body align="center"> <div id="apDiv1"> <script type="text/javascript"> function MM_validateForm() { if (document.getElementById){ var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]); if (val) { nm=val.name; if ((val=val.value)!="") { if (test.indexOf('isEmail')!=-1) { …

Member Avatar for Pnorq
0
330
Member Avatar for kukuruku

Hi ,I am trying to print this ,so far unsuccessful,I am printing only the first row Thanks [CODE] 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 12 …

Member Avatar for GunnerInc
0
120
Member Avatar for VasquezPL

Hi friends, I dunno how to declare global array. Its funny because, it works if declared locally. my code looks like that [CODE]private: /// <summary> /// Required designer variable. array<String^>^ salka = gcnew array<String^>(20); // GIVES ME ERROR System::String^ date; System::String^ linia; System::Int32^ token; System::Int32^ i; System::Int32^ j; System::Int32^ k; …

Member Avatar for jonsca
0
1K
Member Avatar for Yousha

Hi my problem is that When trying to insert a statement into an MSAccess file I get this message: [COLOR="Red"]Data type mismatch in criteria expression[/COLOR] Below are my codes. Im using vb.net 2.0 [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim sql As String …

Member Avatar for Jx_Man
0
260
Member Avatar for rookanga

I got the textbox and a listbox and a button, I can add names threw the textbox hit the button to add and it adds to the listbox, now I need to take the names from there and randomize them into 4 groups and make it into an array also, …

Member Avatar for rookanga
0
1K
Member Avatar for hiyatran

I am able to incorporate CSS into the HTML, like this: [CODE]<tr><td [B]style="background-color:#FFFF00;"[/B]>test</td></tr>[/CODE] How can I incorporate CSS into javascript? [CODE]document.writeln("<tr><td [B]style="background-color:#FFFF00;"[/B]>" + "test" + "</td></tr>");[/CODE] The javascript code doesn't work or this is it even possible? Thanks

Member Avatar for Pnorq
0
165
Member Avatar for Acklox

Problem i cant get this to compile using Textpad5 any help would be nice on what i am doing wrong seems i cant get the GUI aspect of Java to work and yes i have all latest updates of JDK and JDE [CODE]import java.awt.FlowLayout; //specifies how components are arranged import …

Member Avatar for Acklox
0
448
Member Avatar for xreyuk

Hi All, I'm trying to create a GUI which looks like an installer, whereby you click next and rather than opening a new form, it keeps the same form but displays different information (kind of like different panels). I'm making a college project where I'm using a MySQL database to …

Member Avatar for RenanLazarotto
0
411
Member Avatar for mkab

Hello everyone. I have an error in my makefile. When i execute it on the terminal in linux, it gives me the following errors [CODE]mkab@mkab-ThinkPad-SL400:~/Desktop/TP 5/src$ make test gcc -c prog2.c gcc *.o -o test prog2.o: In function `tester_supprimer': prog2.c:(.text+0x1c): undefined reference to `ajouter' prog2.c:(.text+0x32): undefined reference to `ajouter' prog2.c:(.text+0x48): …

Member Avatar for gerard4143
0
318
Member Avatar for infinitus

i'm having little problem here, i have got timer here that counts down from a set time, but what i want to do now is instead of having timer, i just want to make a counter so if(counter=10) stop the game, and not when time = 0 [CODE]<!DOCTYPE html PUBLIC …

Member Avatar for Pnorq
0
195
Member Avatar for cjjm0202

I wrote this code for class. It compiles fine, but I get errors when it is ran. What could be the problem, and what is the solution? [CODE]import java.util.*; public class Lab3 { public static void main(String[] args) { // variables String name1= "Phones"; String name2 = "Laptops"; String name3 …

Member Avatar for cjjm0202
0
244
Member Avatar for showman13

I have a DB table that has a member ID field and a level field... There can be duplicate member IDs because they can have multiple steps There can be duplicate step numbers because multiple members can be on the same step But there should NEVER be a duplicate combination …

Member Avatar for diafol
0
161
Member Avatar for JSTBO

I need some help with a Netbeans GUI with 2 buttons and 1 text area. I have 2 issues, but let me explain what I'm trying to do. First button will collect data from 2 text fields (a and b) and this is stored in a 2D array. The second …

Member Avatar for mKorbel
0
148
Member Avatar for adambeaumont

Good Afternoon, I have been struggling with a minor issue for the past several hours, I need help. ok I know I can use date('Y-m-d', strtotime($date . '+4 day')); for specific days but I need to be able to x amount of days adding to a specific date. Any help …

Member Avatar for adambeaumont
0
97
Member Avatar for Dogge3

I want to create a function wich prints all numbers over 1000000. So the user can input for example 500 and that dosent print but if you input 1005000 it prints. My code far is. v = [600,6300330,47, 1000001] for x in v if x >1000000: print x

Member Avatar for woooee
0
71
Member Avatar for kolibrizas

Lets say I have a table user|product|amount My goal: to update the amounts of the products the user has in his shopping cart, removing the records which have amount 0. What is more efficient: A) Deleting records from database; inserting new ones [to sum up: [B]1x delete query, 1x big …

Member Avatar for smantscheff
0
142
Member Avatar for sheennave

I have read countless exception examples on the web but i could not find "item not found exception " . Before it drives me nut, please hlp

Member Avatar for sheennave
0
212
Member Avatar for AngelicOne

I'm having a memory exception because I only read my table's image column without specifying that it's a byte. How can I do this? [CODE] con.Open(); SqlDataReader rdr = cmd.ExecuteReader(); if (rdr.HasRows) { while (rdr.Read()) { FileStream fs = new FileStream("image.bmp", FileMode.Create); byte[] picbyte = (byte[])rdr["userimage"]; fs.Write(picbyte, 0, picbyte.Length); displaypb.Image …

Member Avatar for AngelicOne
0
3K
Member Avatar for davewillis

Newbie: so am trying to figure out how to prompt the user for a # that represents a radius of some circle and place that # into a variable and use to calculate the area of the circle with the given radius. need to use a user=defined constant for the …

Member Avatar for Unhnd_Exception
0
110
Member Avatar for bibiki

I am trying to build an application that finds all possible ways of arranging 8 queens on a chess board in such a way that no two of them are on either the same row, column, or diagonal. I am also trying to do this applying what I think is …

Member Avatar for bibiki
0
130
Member Avatar for John Linux

Hi, I need to create a program to do a threaded merge sort (kinda), but in the meantime I am trying to pass a struct through the the Merge method (thread runs this method), but I keep getting seg faults. I am sure its something obvious, please help me out. …

Member Avatar for pseudorandom21
0
899
Member Avatar for Labdabeta

I made a header file to convert strings to numbers of base X. That is I want: [CODE]int num=B<16,int>("FFF");[/CODE] To equal: [CODE]int num=0xFFF;[/CODE] Here is the code so far: [CODE]#include <string> int numb(char in) { if (in>='0'&&in<='9') return in-'0'; else if (in>='a'&&in<='z') return in-'a'; else if (in>='A'&&in<='Z') return in-'A'; } …

Member Avatar for Labdabeta
0
140
Member Avatar for CMAUK

Hi guys, I've made a code that will search in my text file specific strings that the user will enter in a text field. My problem is that when i enter the text and search, it will display everything and disregard the user input. heres my code: [code] public void …

Member Avatar for CMAUK
0
135
Member Avatar for MoreBloodWine

First, wasn't sure where to put this so I stuck it here because of the PHP files involved. Any way, what would need to be written into my sites .htaccess file to "ping" a php file when an image is called ? So if I type mysite.com/image.jpg into my browser, …

Member Avatar for smantscheff
0
276
Member Avatar for BleepyE

Hey guys, ive bin following someones tutorials on how to connect and view data in a sql databse table. Does anyone know how to send data from say two textboxes to the table, say Name and Gender Heres the working code I have at the moment. [CODE]Imports MySql.Data.MySqlClient Module SQL …

Member Avatar for BleepyE
0
229
Member Avatar for narunaru

Hi, I have to make a Tic Tae Toe game using Classes but I have no idea how to even start. I set 3x3 2 dimentional array as private member variable. What should be public variables? Here is the instruction i was given: 1. The game board will be created …

Member Avatar for narunaru
0
663
Member Avatar for margeaux54

Finally , ı finished my simple program. I will learn very very much thing from you And ı will ask many many questions after this time:) So I will wait your suggestions about my program [ICODE] #include <iostream> using namespace std; void encyrpt(void); // Encyrpt function prototype void decyrpt(void); // …

Member Avatar for margeaux54
0
192
Member Avatar for zehraIOI

Hi gang ; The code below works fine but a more flexible one would be better. For example what am looking for an original try-throw-cath block which throws the exception "Item not found" message itself. try { SQLiteConnection ^connection = gcnew SQLiteConnection(); connection->ConnectionString = "Data Source = atbdn3.db3"; connection->Open(); System::String …

Member Avatar for sheennave
0
130
Member Avatar for Spiffy P Mcgee

The exercise tells me to find the error in this code [CODE] int g() { cout << "Inside function g" << endl; int h() { cout << "Inside function h" << endl; } } [/CODE] The listed error is that function h should not be defined inside of function g. …

Member Avatar for Ancient Dragon
0
128
Member Avatar for poloblue

Good Morning, I'm having this error in the program " object in abstract class orderedArrayListType is not allowed. Here is the code: arrayListType.h [CODE]#ifndef H_arrayListType #define H_arrayListType class arrayListType { public: bool isEmpty() const; //Function to determine whether the list is empty //Postcondition: Returns true if the list is empty; …

Member Avatar for poloblue
0
511
Member Avatar for eva yang

Hi,there, I need to definea function make_tree(preorder, inorder). This function returns the Node which is the root of a binary tree with the pre-order and in-order traversals given as lists of values in the parameters. If either preorder or inorder is empty, the other must also be empty, and the …

Member Avatar for bron92
0
189

The End.