199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jwmollman

Hello, I'm trying to figure out how to populate an array by using subroutines. We have begun procedures last week, and now this week we are moving onto arrays. College moves too fast sometimes. :( What I'm trying to do is make a subroutine which will populate the entire array …

Member Avatar for NormR1
0
146
Member Avatar for Ahiru

I would like to calculated an expected profit. I have got the following table: OrderID productID regionID available_volume price sales_per_day What I would like to have: A table grouped by productID and regionID each with the (expected) profit per product and region. Profit is calculated by price*expected_sales with following conditions: …

Member Avatar for rch1231
0
133
Member Avatar for Coyboss

Hi all, I am trying to get a SQL Server statement to work for a class I am taking on MS SQL Server. Here is what I am supposed to do; 1) Write a SQL query that joins two tables in the example database and uses BETWEEN to restrict record …

Member Avatar for rch1231
0
141
Member Avatar for prakashsd

Hi, I've bought a hosting space from a hosting space provider for my website. It is a Windows 2008 Server. I have an enquriy form that needs to be submitted to my email. I'm using a simple php mail program for that. But I'm getting "HTTP Error 500.0 - Internal …

Member Avatar for hielo
0
143
Member Avatar for teedoff

I have posted this in the AJAX forum, but no responses so I thought maybe I might have asked or went about this from the wrong angle. I have a search page written in CF. It has several form fields that a user can enter any combination of search criteria …

Member Avatar for jsmall26
0
136
Member Avatar for unnamed17
Member Avatar for xterradaniel

I need to create a custom panel that displays X,0, or nothing, randomly. It is supposed to be something like a tic tac toe board. The only thing is, when you open it it must randomly place the x's, 0's, or blank spaces, and when the screen is resized by …

Member Avatar for NormR1
0
135
Member Avatar for daviddoria

In the past when I've done this: [code] int function(int a) { if(a == 2) { return true; } else { return false; } } [/code] the compiler has complained that the function may not return a value. I've fixed this by adding: [code] int function(int a) { if(a == …

Member Avatar for mrnutty
0
220
Member Avatar for myk45

Hello. im having a small problem creating a tree. im not sure where im going wrong. Can anyone please help? Thanks. Here is the code: [CODE] #include <stdio.h> #include <stdlib.h> struct tree_el { int val; struct tree_el *right; struct tree_el *left; }; typedef struct tree_el node; void printout(node *tree) { …

Member Avatar for myk45
0
219
Member Avatar for myk45

Hello. im having a small problem creating a tree. im not sure where im going wrong. Can anyone please help? Thanks. Here is the code: [CODE] #include <stdio.h> #include <stdlib.h> struct tree_el { int val; struct tree_el *right; struct tree_el *left; }; typedef struct tree_el node; void printout(node *tree) { …

Member Avatar for myk45
0
87
Member Avatar for HDavison4139

what i am trying to do is this Display the mortgage payment amount and then list the loan balance and interest paid for each payment over the term of the loan. If the list would scroll off the screen, use loops to display a partial list, hesitate, and then display …

Member Avatar for NormR1
0
131
Member Avatar for Slimmy

Hi! I have an array of doubles that I map to a hashmap to keep track of the indices of the elements. I want to be able to sort the array and still keep track of the indices and thats no problem as long as the elements are distinct. But …

Member Avatar for Slimmy
0
126
Member Avatar for Steve_Jones

How can i search a specific area on the screen. Right now i can only do a single pixel or point, but i want to do an area. Can i make a moveable label that takes up whatever image is behind it and then search that label? If yes, how …

Member Avatar for Steve_Jones
0
94
Member Avatar for ivan3510

Hi! Sory for my bad english. Is it posible to make in php a html compiler (program that will check if there is lexical or semantic mistakes)? (eg. If someone write: "<html><haed>", the program will check and write message that is error in code and that must be writen "<html><head>"). …

Member Avatar for ivan3510
0
125
Member Avatar for Capt Spaghetti

Thanks to a forum member I have moved a little forward but now I am stumped on how to convert a passed value to a variable so it can be used to search a MySQL database. When I use the passed variable as the value I receive the following error: …

Member Avatar for Capt Spaghetti
0
133
Member Avatar for HDavison4139

This is what i have so far.. i've figured out how to do the mortgage payment but I am having trouble displaying the loan balance and interest paid for each payment over the term of the loan. can someone please help with the code and formulas? Here's the code i …

Member Avatar for NormR1
0
577
Member Avatar for sassenach

Hi, I am using jquery to send a form: Copy code [code] jQuery(document).ready(function($) { //References var pages = $('div#paging_menu a'); var loading = $("div#loading"); var content = $("#print_full_list"); //show loading bar function showLoading(){ loading .css({visibility:"visible"}) .css({opacity:"1"}) .css({display:"block"}) ; } //hide loading bar function hideLoading(){ loading.fadeTo(1000, 0); }; //Manage click events …

Member Avatar for Airshow
0
178
Member Avatar for Ghostenshell

Trying to find an easier way to write my code. I am using the graphics.py module. I will add the graphics program as an attachment for anyone who does not have it or doesn't know what I am talking about. The first program I made is archery. Just simple circles …

Member Avatar for TrustyTony
0
2K
Member Avatar for zive_te88

Hi, My name is Zivko and I have a question for You. I'm working on a projekt. I have to do an application in php. It is supposed to be like this: I have a php web site.In that web site i have a large textbox or message text area. …

Member Avatar for chrishea
0
437
Member Avatar for macausite

I want to create a social website which people can share their photos with friends and I don’t know if it is correct or there is something wrong with it. I would be very grateful if someone could have a look at it and give me some feedback on it. …

Member Avatar for babannasd
0
93
Member Avatar for ceeandcee

Good Morning, I am hoping someone can help me. I am not even sure if this is possible. I am building a hockey pool site and I would like to automatically update the value of a variable once a week or 26 times. I would like to use the clock …

Member Avatar for ceeandcee
0
110
Member Avatar for arunpatyal1987
Member Avatar for plasticfood

[CODE] int [] wronglist = new int [incorrect]; for (int i = 0; i < 6; i++){ for (int j = 0; j < i; j++){ if (studentArray[i] != ansArray[i]) wronglist[i] = (j+1); [/CODE] ok i'm trying to write a program that figures out what number did the user got …

Member Avatar for plasticfood
0
305
Member Avatar for nerdygirl118

Hi, I'm in a beginning class in C++ and we need to make an assignment that inputs a file, prints it to the screen, and then prints it to the screen again with an underscore every 5 blanks. I got the last part to work, but I can't get it …

Member Avatar for nerdygirl118
0
149
Member Avatar for panhwer89

Hi dear all.. I have done email attachment in php, code is working fine but output is not coming fine. here is code. <?php $fileatt = "file/imagelks.jpeg"; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name = "imagelks.jpeg"; // Filename that will be used for the file …

Member Avatar for Zagga
0
126
Member Avatar for MrVBProgrammer

Hi I have made a program on Visual Basic 2008. I have put textbox1 and button1 ONLY. I have disabled button1. I want button1 only to be enabled when we type some numbers in textbox1. I also want that we can ONLY type numbers in textbox1, not letters or other …

Member Avatar for codeorder
0
294
Member Avatar for mallak alrooh

hello Friends:; I have question and I wont your help.. I do it,but I'm stuk in printing :icon_cry:.. This the code, I hope you can help ,, Thanks Write a class TelephoneDirectory. It has a telephoneList attribute as a HashMap. The TelephoneDirectory has the following methods: a.addTelephoneEntry ( TelephoneNumber number, …

Member Avatar for JamesCherrill
0
261
Member Avatar for tomtetlaw

Is there anything you have to glEnable for glutBitmapCharacter to work? Because when I use that function, nothing shows up on the screen. At the moment this is how I'm trying to draw: [icode]glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, 'A');[/icode] These are the things I've enabled: [code=c] glEnable(GL_DEPTH_TEST); glEnable(GL_TEXTURE_2D); [/code]

Member Avatar for N1GHTS
0
1K
Member Avatar for mayyubiradar

Hello All, First of all, I am beginner so please bear with me. :) I want to extract data within the table from a html code. Lets consider HTML code to be in a file. I have read the data to a variable. Now using this variable I want to …

Member Avatar for mayyubiradar
0
623
Member Avatar for poly712

hi.. we really need help on how to d i s p l a y, a d d, s u b t r a c t, m u l t i p l y polynomials. the display should be in ascending order of degree.. and our program should be j …

Member Avatar for NormR1
0
143
Member Avatar for bflack

Cn anybody give me a program about adding nodes at the end of the list in C? I just need a basis of a program that I will be creating. I also needed its algorithm. Thanks in advance.

Member Avatar for N1GHTS
0
294
Member Avatar for SgtMe

Have another problem with an OBJ model format converter I'm making. As a test, I want to read in data from an OBJ file, and write it out in a different format, and then the other way around. The problem I currently have is that I want it to be …

Member Avatar for SgtMe
0
201
Member Avatar for Eagles36

I want to know how to create a makefile so that I dont have to type in the files I am linking together. Also is it possible to use a make file which will run two files. I have a fraction.h file and fraction.cxx (implentation file) I have a main.cpp …

Member Avatar for caut_baia
0
192
Member Avatar for ranu jain

Hello i want that my client subbmit his query by my site n i can resieve it in my gmail acccount . what should i do for that. thanks

Member Avatar for guru_sarkar
0
106
Member Avatar for fobos

Hello CF Coders, I have another question. Basically i want to use a cfif statement with out haveing to use it until im ready. Ill give an example and problem i getting. page.cfm [CODE=CFM] <body> <cfif #URL.get#> or <cfif isDefined(URL.get)> // execute code </cfif> <a href="page.cfm?get=this">click</a> </body> [/CODE] When i …

Member Avatar for arrgh
0
167
Member Avatar for dreamsky999

Hi Netizens, I wish you guys can guide me in here. In the following code, I've compiled flawlessly and I didn't managed to get the output screen and I'm kind of in the dark since I didn't find the answer that I wanted through internet browsing after a while. Any …

Member Avatar for JamesCherrill
0
249
Member Avatar for arjen

hello guys i have a question because in my I.O.File i use this to save the data in the listview in a c:\test.txt but the problem is that it only save one data and every time i click the save the previous data that i save is deleted and it …

Member Avatar for codeorder
0
2K
Member Avatar for iw2z

Hi all, I'm sure this is a trivial question for the veterans (and the newbs maybe as well). But I just can't find a straight answer to it. So here it goes: I have my main.cpp file, and 2 more files, custom.h and custom.cpp. Obviously, custom.h would contain declarations, prototype...etc, …

Member Avatar for Ancient Dragon
0
180
Member Avatar for ds.eickhoff

I am new to this site, but is there anyone out there who could point me in a different direction. I am trying to get the "Knights Tour" to work. The issue that I am having is that it seems to print several number twice.

Member Avatar for gashtio
0
181
Member Avatar for Gribouillis

This snippet defines a function [icode]exc_browse()[/icode] which displays the current python exception in the web browser. This can be useful to non web programmers who want a nicely displayed exception traceback (web frameworks usually include this feature). The idea of this function is to store the html code generated by …

0
248
Member Avatar for opteenslippers

For a website about tours I made a form to request for a quotation. There's quite a lot of input fields, some of them with dropdown menu's where the user can choose for example one of the tour destinations. I would like to know if I can pass variables from …

Member Avatar for diafol
0
138
Member Avatar for Xufyan

in this program i've pushed 10 values into array but i use the condition [iCODE]if (tos==9)[/iCODE] which means no value should be stored at 10th position but when i am storing values, [iCODE]for (int i=1;i<=10;i++) first.push(i);[/iCODE] [CODE]class Stack{ int StackArray[] = new int[10]; int tos; Stack(){ tos=-1; } public void …

Member Avatar for NormR1
0
284
Member Avatar for wadelucy

I got some problem here..I wanted to generate 6 digits number without repeating into a textbox when the form load in java...but i m stuck and lost here...someone can help me ??

Member Avatar for kramerd
0
94
Member Avatar for pro_rocky

this is code for encrypting files using c language. //password encryption program for securing password //pws v 1.0 [B][CODE] #include <conio.h> #include <stdlib.h> #include <stdio.h> //create this directory first D:\Sec_pw (OR as per your system drive names) //file will be overwritten at each execution of program so use once //increase …

Member Avatar for pro_rocky
0
289
Member Avatar for Lynchman

I'm attempting to run a simple VB script that opens an Excel 2007 spreadsheet, reads cell data and then echos it to the screen, however I get the following error: UpdateTitle.vbs(4, 1) (null): The server threw an exception Here is the code: Set objExcel = CreateObject("Excel.Application") objExcel.Visible = False objExcel.Workbooks.Open("C:\Temp\ADUserUpdates\ADUserUpdates\qryEmployee.xlsx") …

Member Avatar for cguan_77
0
1K
Member Avatar for roboguy

Hi everyone, Im a python beginner so please bare with me, i have done the first few project euler but thats it, Im trying to write a script that will search all txt, htm, html files recursively through multiple directorys for a string and will then write the whole line …

Member Avatar for TrustyTony
0
261
Member Avatar for Capt Spaghetti

I am trying (unsuccessfully) to pass a variable to another php file. I am able to retrieve the information from MySQL, and present it on the web page but I am unable to pass the "hot link" ID to another php file. I am a beginner so it must be …

Member Avatar for P0lT10n
0
141
Member Avatar for mihu

Hallo everybody, Can someone help me with some regexs for testing : - in a textbox , i need to test only string carachters , not numbers,digits, spaces; - in a textbox , i want to text only numbers, not strings, char..other. Please.. Pattern patternForInfo = Pattern.compile("[a-zA-Z]", Pattern.CASE_INSENSITIVE); Pattern patternForNumere …

Member Avatar for mihu
0
147
Member Avatar for natchattack

This is a simple problem but one of those that eats at your brains the more you think of it. I basically want to write a a variable to a php file ( the variable name itself not the contents ). The code i have below. [CODE] // we will …

Member Avatar for natchattack
0
85
Member Avatar for purijatin

What is the maximum size of one Datagram Packet java makes. Iam implementing my own protocol with defined features which runs over UDP. For every packet i have defined a set of headers. Now these headers are to be defined in every packet. So unless i do not know the …

Member Avatar for NormR1
0
102

The End.