199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for miketeebo

Hi all I am very new to programming and am having a little difficulty starting an assignment. I need to make a program that takes a telephone number and shows all the different words that could be made for that number. The telephone number cannot have a 1 or a …

Member Avatar for GeekByChoiCe
0
142
Member Avatar for Democles

I'm having trouble making a function that centers my results. I cannot find much information depicting how this works exactly. I've found small functions but nothing like I'd like to do. My whole idea is make a function so I can use it at anytime to center my string. Somethings …

Member Avatar for Sky Diploma
0
122
Member Avatar for missty

can anyone tell me how can i create a function like: [QUOTE]if ("the txt file is blank") dosomething;[/QUOTE] which is checking if the text file is empty and then do something.

Member Avatar for Dave Sinkula
0
3K
Member Avatar for fellixombc

Here is my trouble: It loads the IRC information fine, but when its suppose to Identify itself (its a registered nick I'm making it use)but, It doesn't. So basically when after it connects, i want it to type that. Here is my code: [CODE]## An IRC bot by: Fellixombc import …

Member Avatar for kyleh
0
110
Member Avatar for and12

1. My code runs but the text panels won't display properly in the panel until i hide the frame and open it again or click min/max. 2. Can someone suggest the kind of layout i need to keep letters of each word together so it doesn't wrap to the next …

Member Avatar for and12
0
113
Member Avatar for tyliang

I want to sub-function the reading and printing data. But it says data corrupted. Sorry for my poor english. Example of inputfile.txt [code] Michael 000000 m michael@abc.com 75 82 90 [/code] [code] #include <stdio.h> #include <string.h> void readData(); void printData(); struct student { char studName; int studID; char sex; char …

Member Avatar for tyliang
0
187
Member Avatar for gretty

Hello I have a function that takes in a 'word pattern' & a word & determines if the word contains the same characters in the same position as the 'word pattern'. [QUOTE]For eg; 'word pattern' = he??? word = hello - The function will return true because the word variable …

Member Avatar for gretty
0
148
Member Avatar for Yle

Hello, my problem is of that kind beginners use to have. After following some glut tutorials I've decided it's time to do something small generally on my own. An obstacle appeared at the very beginning. At the moment I got stuck, all my code was supposed to do was drawing …

Member Avatar for poliet
0
153
Member Avatar for plato_03

hello everyone, this is my first post. I have been teaching myself c++ for the last few weeks and have gotten more familiar with some of it. i thought to myself it would be interesting to try writing up some code that goes through numbers to see if they are …

Member Avatar for mrnutty
0
139
Member Avatar for nateuni

Hi Guys and Gals, I am new to programming and I decided to write my self a simple class to help me with my uni work. It is just to save me writing to screen then using the scanner class to read the input. It would be easier with a …

Member Avatar for nateuni
0
1K
Member Avatar for seakayaker

Hi, I have a Windows GUI app that uses a thread for a computation intensive call. It works fine. From what I understand the thread is terminated when my thread function returns which means that I dont need to add a a termination to it. However, I don't want the …

Member Avatar for Frederick2
0
234
Member Avatar for CNIDog

I need to create a table to store matched pairs that I can query and get a count of how many times a particular matchup was entered. For example "5" might be paired with "6", but "6" might be also paired with "5". (Quotes are for clarity - not to …

Member Avatar for CNIDog
0
130
Member Avatar for Raymond_Seger

Okay, first, i'm new on this website. Nice to meet you all :P My english is not perfect but i believe you guys can understand what i am trying to say. Ehem... Okay, i have this problem. I have the knowledge of programming (class, variables type, you name it. I …

Member Avatar for Raymond_Seger
0
109
Member Avatar for crazy4fun

I'm new to this technology. I'd be glad if somebody help me in starting this and guiding me where to start? and how to start? to learn this new technology.

Member Avatar for crazy4fun
0
153
Member Avatar for Nathan Campos

Hello, I'm starting in Assembly development. Then recently i buy a book of Assembly, in it i have the table with the decimal numbers to hexamals and to binarys, like this: [code=asm]Dec - Hex 1 - 01 2 - 02 3 - 03 4 - 04 [...] 10 - A …

Member Avatar for Nathan Campos
0
233
Member Avatar for Majestics

[code] import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.Robot; import java.awt.Event; import java.awt.AWTException; public class keyboard implements ActionListener { int i; String s[] = {"esc","F1","F2","F3","F4","F5", "F6","F7","F8","F9","F10","F11","F12", "psc","slk","pau","A","B","C","D","E", "F"}; String g = ""; Object b; JMenuBar m = new JMenuBar(); JMenu m1 = new JMenu("File"); JMenu m2 …

Member Avatar for Majestics
0
188
Member Avatar for bsjy

I have been trying to use one of the many ajax autosuggest code snippets available on the web to help me with a table server scheduling form. My scheduler can find the people by their last name, and I can auto-suggest that. The database would like to record the server's …

Member Avatar for bsjy
0
113
Member Avatar for mrfred

Ok so I am using Microsoft Visual C++ 2008 express edition to compile my programs. I have used this for a while now and i want to make a program that will open another executable file. I have done this successfully with system(), however whenever I put spaces in the …

Member Avatar for mrfred
0
90
Member Avatar for pirula

I am so confused, I want to add some anti-spam security to my upcoming register page but something is really wrong. Note that my server is Coldfusion MX7 (i can not afford better) and because of that i can not use cfimage(captcha). This is what i have: [code] <cfset strLowerCaseAlpha …

Member Avatar for pirula
0
186
Member Avatar for ndfi54

I am working on a program to rewrite an assortment of integers in increasing order yet they are in decreasing order. I am pretty sure the problem is in my indexMax or sortArray functions but I cant find it. Can anyone help? [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" #define size …

Member Avatar for poliet
0
161
Member Avatar for ecedano

Hi, I know it should be pretty easy to achieve. I am just starting to learn VB.NET. I need help creating an outline around a custom shape picturebox. I also need to specify the color and thickness of this outline. The path is on variable gp... but I can't figure …

Member Avatar for ecedano
0
165
Member Avatar for jingo1126

ok im kinda new to this forum and new to assembly as well. i was given a homework on tasm if someone could help me fix or add or delete some codes in wat ive place thank you very much.. program is about adding two input charactars like 1+1=2. ive …

Member Avatar for wildgoose
0
182
Member Avatar for kapmsd

Hi guys!! I am intended to develop a project in JSP. I am gonna use [I]NetbeansIDE6.5.1[/I] and [I]mysql[/I] in [I]Linux[/I]. I have few doubts: (i)[B]Uploading files[/B](eg:jsp,war et al) to the server. (ii)[B]Code to extract .war[/B] files to a folder in the server. (iii)Using [B]https[/B] for login forms. Thanks in advance …

Member Avatar for peter_budo
0
86
Member Avatar for mk27

Hi. I've actually never used python but I'm an experience programmer in other languages. I wanted to do some "script-fu" for gimp, which uses scheme or python (it used to use perl, but AFAICT the bindings and modules are unmaintained and broken). I don't really like the look of scheme …

Member Avatar for mk27
0
181
Member Avatar for Lingson

hi, since I just learned Python, I start using Python 3.1 (i know people said the best version would be 2.5 or 2.6, but i think that at sometime in the future, it will become obselete since python 3.x is not backward compatible). but when i look in forums or …

Member Avatar for Lingson
0
262
Member Avatar for t2009

Information is needed as to how create an event on THE child user control. So, that the Parent user control can display the necessary data when the event is being used. Thanks,

Member Avatar for kvprajapati
0
91
Member Avatar for acplus

Hey, everyone! I've got small problem in this code! I cannot find a mistake in this code. I was playing many times by changing functions and values, but something wrong. I'm beginer in C++, but I would like to be professional. I never ask for codes, only help for explaining. …

Member Avatar for acplus
0
149
Member Avatar for mahela007

I've come across EOF (something called "end of file " right? ) on numerous occasions when I was browsing though the python documentation. What is it and what is it's significance? Also what is a buffer? eg: "incomplete data is buffered until more data is fed or close() is called."

Member Avatar for bumsfeld
0
350
Member Avatar for NeoFryBoy

Simple program opens a text file and counts all the lines. Then it returns the pointer to the beginning of the file and starts pulling in the lines for data manipulation. The Problem: If the file "triangle.txt" ends with a newline everything works fine until the last [i]while[/i] loop which …

Member Avatar for VernonDozier
0
133
Member Avatar for Dan08

Is it possible to open windows files with python? Like notepad, and stuff.. Thanks Dan08.

Member Avatar for Dan08
0
155
Member Avatar for k.vijayakumar
Member Avatar for shanakaprabath

[code]class AC { int ID; String name; int AcNo; Date ODate; double balance; double transaction; AC(int ID,String name,int AcNo,Date ODate,double balance,double transaction) { this.ID=ID; this.name=name; this.AcNo=AcNo; this.ODate=ODate; this.balance=balance; this.transaction=transaction; }[/code] this is my main class i want to write those data which are relevant to those variable variables in an …

Member Avatar for javaAddict
0
88
Member Avatar for DealthRune

I'm making a PHP forum script But, when ever i try to add a new topic it gives me this error: [QUOTE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc) VALUES (Test, General …

Member Avatar for DealthRune
0
95
Member Avatar for afr0

Hi All, I'm trying to implement the NORMSDIST function of MS excel in the C#. I found its implementation from the following link. [url]http://office.microsoft.com/en-us/excel/HP052091941033.aspx[/url] and I've written the following code for this i.e. [code] static double NORMSDIST(double z_score) { double z_ = - ( (z_score * z_score) / 2 ); …

Member Avatar for ddanbe
0
2K
Member Avatar for brando|away

I was wondering what the best library is for uploading an image to like imageshack or something? mabey a tutorial would be nice too lol

Member Avatar for kvprajapati
0
132
Member Avatar for pentiumpablo

Hi I was wondering if one of you geniuses could figure this out. I am doing an exercis eon grmmars and i am notsure of the answer but I think that its SLR(1) Am I correct? Is the following SLR(1) S -> A A -> Ba A -> C B …

Member Avatar for pentiumpablo
0
54
Member Avatar for Alexpap

Hello all, I want to create a custom login form for SQL Server 2005, which will have 2 textboxes(Username,Password). When the users clicks the submit button then i want to check the SQL Server users with that username and password,if exist. I need this to be answered asap! Thanks in …

Member Avatar for Alexpap
0
114
Member Avatar for o0gerwin0o

Hi, im a student taking information tech. and im a newbie in this forum... i need help on the machine problem that my prof gave me... please help me i cant figure out what codes do i use..:confused: the number 5 is user's input... the output is this... [QUOTE] [B]Input …

Member Avatar for o0gerwin0o
0
243
Member Avatar for dmorrison

[CODE]include"../../pages/config.php"; $selectrow = mysql_query("SELECT * FROM members"); $query = mysql_fetch_array($selectrow, MYSQL_ASSOC); //Run business removal if ($query['Enable'] == "true"){ if ($query['autoRemove'] <= "0"){ $removeSQL = "DELETE FROM AccLink WHERE autoRemove <= 0"; mysql_query($removeSQL); echo "Business Removed. {$query['username']}<br>"; } $remove1 = "Update AccLink SET autoRemove = autoRemove -1"; mysql_query($remove1); echo "Run Sucessfull …

Member Avatar for somedude3488
0
131
Member Avatar for winwin

Hi, First I wish to say that I have tried my best to think, but I still coudn't think "out of box". I want to perform a SQL statement base on the condition below: 1.) Table A consists of employee data (Emp_Id, Email, Sex, Address, race and nationality) We have …

Member Avatar for debasisdas
0
138
Member Avatar for goldy736

hi, i doubt whether this is possible , if it is possible i ll be delighted . I have a form of php array , with a submit button passing the values , this submit button is so ordinary , so i want to change the look and feel of …

Member Avatar for goldy736
0
272
Member Avatar for Smoking Bros

Hello everyone! I'm working on a little 2D Game, and I managed to make a 32x32 fill out my whole window :) and I also managed to override the whole 32x32 grass terrain with a 40x40 desert/sand terrain. But I can't figure out how to remove the images I applied …

Member Avatar for Smoking Bros
0
253
Member Avatar for hery

I have a textbox with "10000" i want to format it to "10,000.00". How i can make it in vb.net ..

Member Avatar for samir_ibrahim
0
6K
Member Avatar for Krishsimi

Hi All, Could anyone suggest us how to check the Time in the Database when an Order get injected into the Oracle data base as of now i am able to see only the date , but inorder to know the time when i got generated can anyone help me? …

Member Avatar for debasisdas
0
89
Member Avatar for shadwickman

Hello, I'm using easyPHP to locally test some scripts I'm building, but I came across a problem that I can't seem to resolve. Within one of my PHP scripts, there's a segment where I end the PHP ([icode]?>[/icode]) and output a form in HTML, then resume the PHP section ([icode]<?php[/icode]). …

Member Avatar for phpbeginners
0
467
Member Avatar for bjohnst8

Hey Guys, I am having a problem getting NSTask to launch my shell script and output the results. I believe it is launching the script correctly, however I would like to acquire the output, error messages and perhaps even input... there are no errors about invalid launch-paths, so assume it …

Member Avatar for bjohnst8
0
1K
Member Avatar for missty

the function is used to write things into a txt file. the function works quite well except there is a blank first line in the txt file. i think the error is caused by "ios_base::app", which always write to the end of the file. i want to write to the …

Member Avatar for Dave Sinkula
0
200
Member Avatar for daytonasteve

First post for me, hope this is right place rather than c# I have a form. When it is completed, it redirects the user to a thank you page. <%@ Page Language="C#" masterpagefile="../../../msrtpage/hra2.master" title="Sign Up Here" %> <asp:Content id="Content1" runat="Server" contentplaceholderid="hra1"> <script runat="server"> protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { …

Member Avatar for Ramesh S
0
120
Member Avatar for xuexue

i now have a web server and it is running in linux esp. opensuse 11.1, now my problem is that when i view the site, it states an error: database could not connect, what seems to be the problem and how can i resolve it?

Member Avatar for xuexue
0
110
Member Avatar for tyliang

I want to read an amount of string from the file Given inputfile.txt Micheal Tammy Alex [code] #include<stdio.h> #include<stdlib.h> int main(void) { FILE* input; char name[100]; char temp[100]; input = fopen("inputfile.txt", "r"); while((fscanf(input,"%c ", &name[i]))==1) { printf("%c ", name[i]); temp[i] = name[i]; i++; } } [/code]

Member Avatar for tyliang
0
98

The End.