199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for squigworm

Hello, As far as I know, the fastest way to initialize an array is to do so using a for loop... Does anyone know if there is an equally fast or faster method of initializing a c++ array ? Any insight on this topic is greatly appreciated. Thanks, Colin

Member Avatar for mrnutty
0
243
Member Avatar for noey699

I am learning how to program through the windows.h library and was following a tutorial. After I copied the code to just create a window I got a lot of errors here is the code [code=c] #include <windows.h> #define WNDCLASSNAME "wndclass" //the needed global variables using namespace std; HWND handleWin; …

Member Avatar for sfuo
0
255
Member Avatar for Vandithar

HI, I have a string like this. These are the set of phrases enclosed in double quotes: [code] $str="\"rna binding protein\" OR \"Transcription factor\" "; [/code] I want to replace the string like this: [code] $str="\"rna|(rna) binding protein\" OR \"Transcription|(Transcription) factor\" "; [/code] How can i replace the above string …

Member Avatar for 7stud
0
105
Member Avatar for llemes4011

Hi everyone, I decided that I wanted to try to write a graphics library. Yes, I know Java already has one, I just thought that it would be fun to try. I looked around, but couldn't find anything on the subject. I want it to be for Java, but I'm …

Member Avatar for llemes4011
0
93
Member Avatar for Sorb3t3ro

Hi! I have a VB6 project and I used ms access as my database(Database.mdb), I packed my project including the database, I already install it on my PC, but when I use or run my newly installed VB6 project and type the username and password I got this error: Run-time …

Member Avatar for vb5prgrmr
0
2K
Member Avatar for iraberyl

Hi, actually i've posted from the wrong thread and i apologize for that. anyway, let me post my problem and it goes like this. we've successfully created drop down menus that is connected to our database. we have 5 fields to display, each field contains different data [(ex. first field …

Member Avatar for iraberyl
0
79
Member Avatar for niche1

I successfully scripted an fetch array while loop on a table called example. What's the name of the function that will return the name of the array that was created by the fetch array while loop? What's the name of the function that will turn the number of rows in …

Member Avatar for Stefano Mtangoo
0
62
Member Avatar for Kadjii

Hello again :) I am having a problem where I want to change a particular variable based on what parameters I send to a js function. In the code below, dnum is a number 1-6, and I want the global variable d1keep (or d2keep, d3keep etc.) to equal the dvalue. …

Member Avatar for Airshow
0
136
Member Avatar for hpfreak08

I have to make a recursive function that is passed a location in a previously allocated 2D array, and changes the "color" (indicated by a letter) from the "oldColor" to the "newColor." The function then changes any adjacent elements containing the "oldColor" to the "newColor." (If you are confused by …

Member Avatar for hpfreak08
0
147
Member Avatar for Yeen

I wanted to try something seemingly easy, but I can't wrap my head around this. I want to open a .txt file, remove all dots from the text, and write the altered .txt as a new file. [CODE]#!python def process_file(): infile = open("dots.txt", "r") outfile = open("no_dots.txt", "w") for x …

Member Avatar for Stefano Mtangoo
0
3K
Member Avatar for 15389049

I am trying to search a database using a user defined string from a text box. I am getting an error message with the "objectadaptor.Fill" Here is the code: [code] Imports System.Data.OleDb Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlTypes Partial Class Search Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal …

Member Avatar for shibbard
0
127
Member Avatar for arushibafna

hello i am new to xampp . and making a project using php & mysql. whenever my php files run, its doesn't show any changes in my database. for eg. ,if i have entered certain values on my html page and through my php page ,the values is getting inserted …

Member Avatar for arushibafna
0
123
Member Avatar for sfrider0

Can somebody please explain this problem to me? A computer has 20 bit instructions with 8 bit addresses. Suppose that there are 12 two-address instructions. How many 1-address instructions are theoretically possible? Would the instruction set be set up like this? 0000|00000000|00000000

Member Avatar for sfrider0
0
134
Member Avatar for saadismail85

[B][COLOR="Red"]mmm.... i think its good [/COLOR][/B] [CODE] import java.util.Scanner; public class Studentgrade { public static void main(String[] args) { int num_of_student ; Scanner input = new Scanner(System.in); System.out.println("Enter the number of Student :"); num_of_student = input.nextInt(); String []name = new String [num_of_student] ; int array[] = new int [num_of_student]; String …

Member Avatar for RunTimeError
0
321
Member Avatar for dondulla

hi, unfortunately i need a bit of help with a config for a program that an ex-employee of ours wrote. Basically, the program verifies itself on a website and verifys one specific type of bluetooth hardware is connected. we have recently changed hardware suppliers and need to take the requirement …

Member Avatar for NicAx64
0
117
Member Avatar for sadiebee

Hello folks! Is it possible to create directories on my web server based on new database entries? I am implementing a photo gallery and want to have it such that, when a user ADDS a new Gallery, a (sub)directory is created with the name that the user gave the gallery. …

Member Avatar for Stefano Mtangoo
0
102
Member Avatar for motieno

Hi, Could someone assist me with this code. It gives me an error message whenever i press the submit button. It gives me this error message We are very sorry, but there were error(s) found with the form your submitted. These errors appear below. Please go back and fix these …

Member Avatar for Stefano Mtangoo
0
181
Member Avatar for brad82

Hi all, Im new here - so please bear with me ;) Im pretty new to C++, although I have previous experience in C. I created a small socket app that allowed a client to connect via telnet and send some data for it to be assessed. I have recently …

Member Avatar for brad82
0
88
Member Avatar for rahul8590

In many of the forums i have observed that , we can re direct the page like thanks for logging in u will be redirected in 5 secs and eventually the 5 secs decreases to 0 and the page gets redirected. In my php code i could redirect the page …

Member Avatar for Stefano Mtangoo
0
92
Member Avatar for Rblalock

[CODE]<html> <head> <title>Moultrie Technical College - Worth County Campus</title> <style type="text/css" media="all"> /* Ryan Blalock (ShoppingCart.htm) 10/29/09 */ body { background: transparent url(images/bg.gif) repeat left top; } table { color: white; width: 800px; margin-left: auto; margin-right: auto; font-size: 10pt; font-family: arial,helvetica,sans-serif; background-color: black; } td#header { font-size: 16pt; text-align: center; …

Member Avatar for Rblalock
0
225
Member Avatar for squigworm

Hey everyone, I am looking for some guidance in regards to the track of my programming related education. I am about to finish my first intro to programming c++ class and love it. I want to continue studying programming but feel a little lost as to what is the best …

Member Avatar for squigworm
0
106
Member Avatar for KamiArmand

Hello, I'm trying to make a spry menu bar for a website. It looks great in DW CS3, and when I preview it in different browsers, it works. However, once uploaded, when I look on the web, it's displaying in outline form rather than a menu. Why is that and …

Member Avatar for susamck
0
195
Member Avatar for javaconfused

The Demetris Leadership Center publishes the books, DVDs, and CDs listed in the following table: Title: Description Product Number Unit Unit Sold Brave New World Book 110 25.50 925 Lady Gaga CD 111 16.00 275 The Forgotten DVD 112 24.50 289 Twilight DVD 113 45.50 135 The Giving Tree Book …

Member Avatar for tkud
0
125
Member Avatar for whiteyoh

Hi All, the following code is giving me the following error and i would appreciate any help in identifying where the error lies Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /Applications/MAMP/htdocs/CG0119/index.php on line 6 the code is here, and line 6 is the echo statement [code] …

Member Avatar for whiteyoh
0
62
Member Avatar for dotnabox

So for my latest assignment, I have been asked to convert our LinkedList and ListNode classes to template classes. I understand the general idea of templates, but all of the examples deal with more concrete examples. I'm having trouble extending it to my multi-file project with intermingled data types and …

Member Avatar for dotnabox
0
136
Member Avatar for ronny22

hi am stuck im trying to figure out how i can find the majority of numbers say in a list with the time complexity of O(n) say i have a given list of n elements finding all elements on the list that occur more then n/4 time. how would i …

Member Avatar for ronny22
0
94
Member Avatar for neosonic

Hi guys, I have a normal .exe file written in visual basic 6. It's just many forms linked through a database. I want to put it online, so the users can use it online and my application only need to be installed in one central computer. How can I put …

Member Avatar for AndreRet
0
927
Member Avatar for burdigol

Hi guys! I'm currently building an online inventory system using mysql and vb6. I'm quite confuse on what method to use to finish this. The application will have a server that records on items and then gives it to its branches for sales. I would like it to record all …

Member Avatar for AndreRet
0
2K
Member Avatar for infern0

I have to write a program that calculates the avg, min, and max. The program runs fine, but when a user decides he doesn't want to enter any scores (enter: -1) in the beginning it still tries to calculate the avg,min and max. I need the program to end w/o …

Member Avatar for pecet
0
118
Member Avatar for aparnesh

When I am trying to connect to a MS Access database to display a data report, I am getting a dialog-box pop-up showing the different parameters for the connection string. Clicking on either the 'OK' or 'Cancel' buttons gives a "Couldn't find Installable ISAM" error. The database is not password …

Member Avatar for AndreRet
0
705
Member Avatar for EngneerNitemare

I built this entire program and it does what I want it to except I want to use a bubble sort algorithm instead of the [CODE]std::sort()[/CODE] function I have right now. So please help me out on this. I don't really understand how bubble sorts work even after reading up …

Member Avatar for mrnutty
0
2K
Member Avatar for eddy_boy

Hi, I am going to start learning WPF. I have some experience building Windows Forms based application with SQL Server 2005 (Disconnected mode, datasets, adapters, e.t.c). What benefits will WPF give me, the developer, and the users of the app? If somebody who has worked with both (Forms 2.0, WPF …

Member Avatar for eddy_boy
0
136
Member Avatar for maverick405

Hi, I am trying by best to code this program which takes user input of ten different numbers and displays it's square and cube, from the below code I can display the square of input numbers but in cube i am having problem please help me solving this. [code] #include …

Member Avatar for mrnutty
0
141
Member Avatar for Romil797

I am making a web site and I was wondering how I would redirect the user to a different website if Javascript is not enabled. I can't use <noscript> because It needs to redirect. Could I put a meta tag inside a noscript tag? Thx.

Member Avatar for Kelicula
0
91
Member Avatar for A_Dubbs

I recently wrote a thread about help with classes. I got a lot of good responses but I am still struggling with more complicated stuff. I have an old project that I wrote a few weeks into learning python. I am now suppose to turn this project into a class. …

0
84
Member Avatar for Alicito

ok guys what im trying here is to fill array with a big integer number(which is string) by using class-objects first i made two references n1\n2 to the objects entry and arr -constructor to assign entry to null i used a property ( as wanted in the question ) to …

Member Avatar for DdoubleD
0
141
Member Avatar for Mitja Bonca

I have this code now for inserting new ID into database: [U]IDs are all primary key.[/U] [CODE] MaxID = 0; string GetMaxID = "SELECT MAX(IDPerson) AS IDPerson FROM Persons"; SqlCommand cmd = new SqlCommand(GetMaxID, sqlConn); sqlConn.Open(); SqlDataReader reader = cmd.ExecuteReader(); if (reader.Read()) { MaxID = reader.GetInt32(0); } MaxID++; reader.Close(); sqlConn.Close();[/CODE] …

Member Avatar for DdoubleD
0
165
Member Avatar for M SRINIVAS

[COLOR="Red"][B]Hi everyone[/B][/COLOR] I had a problem with the datareports I am using MS access as database and VB 6 In the section 1 i had place text box and i want in text box the values value 1 - value 2. The code is given below Please help me Thanks …

Member Avatar for AndreRet
0
142
Member Avatar for tolby99

Hi, Can anyone fix this code that i have made here. the objective to the program is -to make an array for an unknown number of integers. -Quit value is -1. -Keep track of how many numbers in array -If array is full output full message (full is 25 numbers …

Member Avatar for donaldw
0
131
Member Avatar for CyberPirate1

So, what I'm trying to do is to check if a letter already exists within an array, so I use a for loop and it works very well. So if the character exists within the array, it will not add the letter you put in the input box into the …

Member Avatar for Geekitygeek
0
145
Member Avatar for sidd.

hi, to read from a notepad i hv used the following code. bt the problem is, it will not read the next line. so how to read line by line..... [code] using (StreamReader sr = new StreamReader("c: \\key.txt")) { string s = sr.ReadLine(); //etc. Console.WriteLine(s);//its showing the output string[] variables …

Member Avatar for sanch01r
0
161
Member Avatar for poorquality

Hi there, I'm trying to code a simple program whereby an object (in this case a boat) can move freely around the screen via the use of the arrow keys. Now the left and right arrows should change the angle the boat faces, while the up arrow makes the boat …

Member Avatar for Ezzaral
0
279
Member Avatar for GiRL,IT

I want to found more of area for (circle, square ..etc ) I'm using ( switch method). I read ( radius ,length ,width ,base and height ). but when I enter Area of square . it want enter ( radius ,length ,width ,base and height ) I mean all thing …

Member Avatar for GiRL,IT
0
79
Member Avatar for asmikwen

Hello, New here so hello. I need to transfer an Excel file to Mysql with a large amount of data. I looked on a few forums but have not found much. Do you know how to do this? Is there an easy solution? Thanks a lot.

Member Avatar for bgkalbente
0
109
Member Avatar for AutoPython

Well, I've written a simple program that gives you info about your computer. The program runs perfectly fine, but the console window pops up and really does nothing. So I would like to hide the console window and only show the gui frame. Pointers on how to do this?

Member Avatar for sheeps
0
15K
Member Avatar for azapovjednik

Hello, who can tell me how to format a string in Delphi? I must format 09-120-123456 into: 091200123456 it is, remove the dashes and insert additional 0 in the middle to make a 13 character long string. I searched Internet, but I can't find anything understandable... like: [Format(<qReportIzpis."acDoc">,the result???)] this …

Member Avatar for House_of_Dexter
0
2K
Member Avatar for jwxie

This is a sample code I looked up. I am a rookie and I do not really understand it. [CODE]n = int(input('Enter an interger >= 0:')) fact = 1 for i in range(2,n+1): fact = fact*i print(str(n)+' factorial is '+ str(fact)) [/CODE] My biggest problems are: 1) for i in …

Member Avatar for vegaseat
0
82
Member Avatar for kent01981

Hi people, Can anyone helps me out. I need use C++ to do this: [U]"Use polymorphism to build an object which can be stored in a datastructure such as an stl::map but uses polymorphism to perform different actions depending upon the type. You may find an stl::map is also useful …

Member Avatar for Nick Evan
0
181
Member Avatar for Web_Sailor

Hi, I am trying to develop an application that has got a Jbutton and allows to search a file and then loads selected line of that file in the JTable. I am able to do that when I hard code it inside the code but when I try to let …

Member Avatar for Web_Sailor
0
135
Member Avatar for Fetch

Hi all. I am very new at python and so i am having trouble with the simplest things, and i dont understand why this: newfile = raw_input('what do you want to name your new file?') text_file = open (newfile, "w") isn't working. Can somebody explain it? Thankyou

Member Avatar for vegaseat
0
97

The End.