199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rom87

hi Im trying to make this code go though every possible string combination at said string length though alpha characters using random number generator to do so.The goal is to make this program tell me how many combinations there are at said circumstances set by user. [CODE] #include <iostream> #include …

Member Avatar for nezachem
0
138
Member Avatar for Imaginative 1

Hi there, I'm new to this site, but i'm here because I know some HTML and some Javascript (pretty basic stuff i know) and I am aiming to eventually create my own text based browser game (possibly similar to Facebook's My Heroes Ability or better). I know I probably need …

Member Avatar for IntraDevJosh
0
312
Member Avatar for supersoup

If you are writing a switch statement that takes in a scanner type, how do you prevent a runtime error if a string or char is entered. [CODE]Scanner s = new Scanner(System.in); int a; a = s.nextInt(); switch(a){ }[/CODE] So if i ran the code and entered "abc" then i …

Member Avatar for BestJewSinceJC
0
117
Member Avatar for jackjones

i am having great difficulty on one of my assignments. AM I NOT ASKING FOR THE CODE, I AM JUST ASKING FOR SOMEONE TO POINT ME IN THE RIGHT DIRECTION SO I CAN DO SOME RESEARCH AND DO IT MYSELF. The specifiaction says " Different locations will be respresented by …

Member Avatar for ddanbe
0
221
Member Avatar for merse

The ascii code of 'á' is 160, but [CODE]int('á'); [/CODE] gives -31 Yes I know, I can use the formula 129+(int)fabs(int(mychar)); but are there any other solution? i tried to use [CODE]unsigned int('á')[/CODE] but its also ü31 which is a puzzle for me!?

Member Avatar for Narue
0
2K
Member Avatar for FreakNFlow

I need help with a program. I need to know how to make it so the lines with a -1 will not show up. The code is linked to a file. The file looks like this: 4 112.7 154 115.5 4 116.4 321 -1 72 129.8 321 -1 154 219.0 …

Member Avatar for Salem
0
267
Member Avatar for songweaver

Hey guys, My teacher gave me a program to look at for using arrays with methods to which it creates a series of 10 random numbers and then uses a print method to print them out on one line then, using a selection sort method to arrange them in numerical …

Member Avatar for ddanbe
0
105
Member Avatar for seancoder

ok hey i really need some help with this project i believe i have finished a but been having problems with the program. the aim was to Request ten songs. Print out those ten songs and then Request for the user to categorize them by using their song numbers. So …

Member Avatar for Salem
0
114
Member Avatar for cnuzzo

I am using python 2.6 and am new to using Tkinter. I am trying to create a basic template GUI for a Toplevel Frame with multiple frames inside of it. I ran into an issue where I am not able to clear my frames properly. I think I have an …

Member Avatar for cnuzzo
0
1K
Member Avatar for motress

TYPE=WIFI|TIME=1263867778390|ID=00:24:c3:31:2b:e0|NAME=csusm|RSSI=-93|WEP=true|INFR=true TYPE=WIFI|TIME=1263867778390|ID=00:12:17:7b:33:04|NAME=csusm|RSSI=-80|WEP=true|INFR=true TYPE=WIFI|TIME=1263867778390|ID=00:1f:27:55:f7:70|NAME=USMHotspot|RSSI=-70|WEP=true|INFR=true TYPE=WIFI|TIME=1263867778390|ID=00:1e:13:ee:3e:40|NAME=USMHotspot|RSSI=-85|WEP=true|INFR=true TYPE=WIFI|TIME=1263867778390|ID=00:24:c3:31:b8:80|NAME=csusm|RSSI=-91|WEP=true|INFR=true TYPE=WIFI|TIME=1263867778390|ID=00:90:4c:60:04:02|NAME=csusm|RSSI=-94|WEP=true|INFR=true TYPE=WIFI|TIME=1263867778390|ID=00:1b:0d:d6:6d:50|NAME=USMHotspot|RSSI=-70|WEP=true|INFR=true The above is a part of my log file. The problem i faced is how to just get ID with its particular RSSI value ? Because i want to calculate the average RSSI value for each different ID . I tried split.string, delimiter, …

Member Avatar for BestJewSinceJC
0
200
Member Avatar for DHPena

Hello everyone. I'm developing a program where I need to write some data on a FIFO file, and I'm using the command Write() for that. My problem, is that with that command I can't send integers, so I was thinking about Convert them to Char, and then increment them on …

Member Avatar for DHPena
0
442
Member Avatar for bd338

Hello everyone! I've written this boot loader, using NASM: [CODE] [BITS 16] [ORG 0x7c00] jmp $ times 510 - ($ - $$) db 0 dw 0xaa55 [/CODE] I know, the code is VERY simple, but I just want to know how I could run it on my computer? I've assembled …

Member Avatar for bd338
0
150
Member Avatar for kiranbvsn

Shall i know if there is implementation of gridview in php as it is in .net please help me

Member Avatar for diafol
0
458
Member Avatar for UIJAD

i am trying to programatically change the page culture and uiculture ( c# ), my webpage needs to have 2 languages and i have prepaired the right resource files ( .resx) and they are functional since when i try writing in the web.config culture="ar-LB" it works fine now i understand …

Member Avatar for TechGuru123
0
113
Member Avatar for himit

Hi, I want to pass the value of a variable in my href. Is it possible? Example:- <xsl:variable name="URL"> <xsl:value-of select="catalog/cd"/> </xsl:variable> <a href="[COLOR="Red"]&lt;xsl:value-of select='$URL'/&gt;[/COLOR]"> Link to catalog </a> Please help me, how could i achieve this task?

Member Avatar for himit
0
164
Member Avatar for StaticX

Here is a smaller program I made but the concept is much the same, what I understand( which is obviously not the case ) with this program is: The function returnFunc is called 3 times in main Each time is is called it returns a value from the array Is …

Member Avatar for StaticX
0
83
Member Avatar for Cheryl Code

Hi all, I'm having a little issue working with this Guessing Game I'm trying to make, I've already mad it in a console on C++ but im finding Windows forms a bit tedious =/ What issues am I having? Well, Im ussing combo boxes for generating a random number, so …

Member Avatar for Geekitygeek
0
114
Member Avatar for webdragon89

I have a 3x3 matrix with values: (0,0)=3 (1,1)=4 (2,0)=2.4 the rest of the values are zero and the code: [CODE]#include <iostream> using namespace std; class sMatrix { public: sMatrix(); sMatrix(int,int); int getR(); int getC(); bool rValid(int); bool cValid(int); void setEl(int,int,double); double getEl(int i,int j); void print(); private: int nr, …

Member Avatar for tetron
0
401
Member Avatar for andy0787

[CODE][/CODE]Can someone plese have a look at this for me and tell me why @userid is giving me a scaler error.... [code] Protected Sub recordcount_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles recordcount.Click Dim con As New Data.SqlClient.SqlConnection() con.ConnectionString = ConfigurationManager.ConnectionStrings()("ConnectionString").ConnectionString Dim cmd As New Data.SqlClient.SqlCommand() cmd.CommandText = "select …

Member Avatar for andy0787
0
666
Member Avatar for G_Waddell

Hi All, I've published a app using Clickonce Deployment for use on our LAN (so I've set it to online only for ease of updates etc) When I run the setup on my own machine, the app installs and runs with no issue however when I run the setup on …

Member Avatar for G_Waddell
0
162
Member Avatar for PDB1982

I am having trouble overloading my function JustSold() with the array for CartSales[x].Cart . I can't seem to get the array to properly import....any ideas? [code] #include <iostream> #include <fstream> using namespace std; class HotDogStand { public: void JustSold(int DogCounter, int numCarts, [COLOR="Red"]int HotDogStand[][/COLOR]); int Cart; int IdNumber; int SalesToday; …

Member Avatar for PDB1982
0
114
Member Avatar for dawsonz

Hi, I'm trying to get my program to write the content of textbox1 into a textfile specified at a particular location. However I get an error when trying to do so. My code: [code] protected void btnSave_Click(object sender, EventArgs e) { //Write to fileupload location System.IO.StreamWriter StreamWriter1 = new System.IO.StreamWriter(FileUpload1.PostedFile.FileName); …

Member Avatar for kvprajapati
0
110
Member Avatar for adcodingmaster

Hi all. Can you please give me some ideas for software engineering project. This is not my final year project. Just a project for this course. There will be no implementation of the project. It only involves Documentation. So please help me. Thanks in advance

Member Avatar for adcodingmaster
0
209
Member Avatar for smokin745

Ok now suppose i have some code and there is a point where the user is asked to input some value into showInputDialog...and then the user must input a String value, but if the user inputs an integer value, the program crashes...please help me and explain me how can i …

Member Avatar for Cort3z
0
174
Member Avatar for Albert88

I have a problem with "left"syntax when i operate it in console application, it works but when i operate it in windows application, the left syntax is error... this is my code, can someone check my code please ' get and validate order no Dim strOrderNo As String = _ …

Member Avatar for kvprajapati
0
271
Member Avatar for callister

Hey everybody.. I have some problem here. This is the question: Find a root of the equation on the interval [4,5] by using the bisection method. What happens on the interval [ 1 , 2] ? I wrote the code and everything seems fine with the interval [4,5] but for …

Member Avatar for callister
0
223
Member Avatar for Tkumar

Hi, I've developed an application for my company which auto-downloads DSS files from FTP location. My problems lies in File Conversion. Currently, I'm using switch to convert DSS to WAV, code is given in below. But the problem is that even if I try using "-hide" args in the code …

Member Avatar for gVista
0
317
Member Avatar for michael123

In php mail() function, how can I send attachments? I didn't find parameter to do this. any help will be appreciated.

Member Avatar for saiprem
0
173
Member Avatar for Musab.Sust

hi all i just have this error when i import my backup database : You attempted to load file with unsupported compression (application/zip). Either support for it is not implemented or disabled by your configuration. one week later i export my database as zip file by phpMyadmin but when i …

Member Avatar for saiprem
0
1K
Member Avatar for kvass

Hey everyone! If I have a matrix as follows: int[][] mat = new int[5][3]; Does that mean that the row size is 5 and the column size is 3 or vice-versa? I am really confused about whether the order is [row][col] or whether it is [x][y] in relation to the …

Member Avatar for masijade
0
116
Member Avatar for lisles

hi,im having a problem with my code.im trying to edit data that im retrieving from my database tables.but im unable to submit the data after editing it.my code is shown below [code=php] <?php require_once "../inc/functions.php"; require_once "../inc/vars.inc.php"; sessionCheck(); session_start(); $old_sessionid = session_id(); //i've added these lines session_regenerate_id(); //i've added these …

Member Avatar for nav33n
0
315
Member Avatar for mstangeh

hi, I need to create or replace a permanent query in access (like a view in oracle, postgres...), but from vb6 using ADODB. i know that i can create and alter tables using a ADODB connection object with something like this dim obj as new adodb.connection ... ... obj.execute "create …

Member Avatar for vb5prgrmr
0
2K
Member Avatar for whiteyoh

Hi All, Im having some trouble with creating PDF's. I have researched and found a boat load of scripts, but non work as I dont have a library installed. That is my question.... How do you install a pdf library? I have tried PDFLib but when i run a script …

Member Avatar for whiteyoh
0
171
Member Avatar for saiprem

Hi guys, I have created a php file, which will takes a filename as input parameter, It will just check the extension of that filename and displays the file to the browser using phpscript. for this I used [code=php] header('Content-Disposition: inline; filename='.$filename); [/code] Everything working fine for me, but I …

0
125
Member Avatar for riotburn

Hi, first post...I am writing a program for simpsons rule for numerical estimation of integrals, [URL="http://en.wikipedia.org/wiki/Simpson%27s_rule"]wiki here[/URL] , and I finally got the code to execute with no errors. Now I am just getting a blank black box with no results. Any help? Thanks in advance. [CODE] // hw2.cpp : …

Member Avatar for jazz_vill
0
421
Member Avatar for Emmett_1981

Hi everyone, I am using the Struts 1 framework to develop a web application for my FYP. So far I have been able to access the properties file from all jsp in my application with example such as the following code. [CODE]<bean:message key="welcome.title"/>[/CODE] I want to have the entire web …

0
173
Member Avatar for johndoe444

[CODE]typedef struct _node node; typedef struct _node { int is_leaf; node child[THRESHOLD_ITEM_SET]; list<item_set> candidate_set; } node;[/CODE] or this: [CODE] typedef struct _node { int is_leaf; struct _node child[THRESHOLD_ITEM_SET]; list<item_set> candidate_set; } node;[/CODE] I am getting error: error: field ‘child’ has incomplete type I don't want to declare child as pointer. …

Member Avatar for mitrmkar
0
98
Member Avatar for rohini.vangury

I have created a setup file that takes the primary output of my .net application. How do i fetch the location where the user will install the setup on his pc. I need to trace this path using the C# application. I've been searching the net since days but havent …

Member Avatar for rohini.vangury
0
109
Member Avatar for welshe200

Hi guys I have a question to do with a project i have been ask to undertake with some friends and are a little unsure if it can be done. so i wanted to ask you all for ideas. I don't need the code to do it just ideas... if …

Member Avatar for Geekitygeek
0
101
Member Avatar for deathtoall141

Hi I was wondering if someone could help me. I would like to able to be to have my program give the user the ability to only read a certain block of code from a text document. However I would like it to be placed behind a button so it …

Member Avatar for Geekitygeek
0
197
Member Avatar for programer411

Hi I'm supposed to write a program that has the input include: • m lines, each including n characters. If the character read is not a space, the character belongs to the boundary of the shape. • Two numbers that specify the coordinates, namely the row and column indices of …

Member Avatar for tetron
0
473
Member Avatar for exeric90

Okay so lately I have been messing around with encryption. I thought I might give making my own simple encryption program a shot. So I am trying to make it. I am compiling my code in DEV C++ and when it runs, after I enter the message, nothing happens. It …

Member Avatar for jonsca
0
145
Member Avatar for EddieC

Less than a year after launching its high performance computing strategy, Microsoft finds its [URL= http://www.microsoft.com/hpc/] HPC Server 2008[/URL] near the top of the heap. The Windows Server 2008 derivative placed 23rd on a list of the 500 top-performing supercomputers in the world, as measured by the [URL= http://www.ncsa.uiuc.edu/] National …

Member Avatar for Aamy1980
0
292
Member Avatar for nevds

Hi.....This is as part of my project.I am using Visual C#.I have a checkedlistbox and a listbox.Whenever I select an item in the checkedlistbox,it gets added into the listbox.Whenever I deselect that item,it gets removed from the listbox.The problem that I am having is if I double click an item …

Member Avatar for Geekitygeek
0
126
Member Avatar for Lolalola

[code=syntax] <div tal:define="number python: 1"> <tal:block repeat="item s_items"> <div tal:define="number python: number + 1"> <div tal:content="python: number">none</div> </div> </tal:block> </div> [/code] Hi, always show 2. but I would like to show 2 3 4 5 ... How to do? Thanks

Member Avatar for Lolalola
0
140
Member Avatar for shraddha mohite

help me to set value in drop down .I want to fetch two ids 1.$row[0]. 2.$row[3] from a view and selected is not set. [CODE]<td colspan='2'><b>Select a Publication and Year</b><br> <select name="publication_name" id="publication_name" onchange="show_year(this.value);"> <?php $get_publn_name=mysql_query("SELECT anPublicationId,sPublicationName,sPublicationShortName,anYearId,nPublicationYear FROM view_publication_year order by nPublicationYear"); ?> <option value=0>-- Select Publication --</option> <?php while($row=mysql_fetch_row($get_publn_name)) …

Member Avatar for as.bhanuprakash
0
82
Member Avatar for Destiny1

Hello, everyone. I'm at the moment doing a homework assignment involving static methods and arrays. It consists of the following instructions. I'm to create a class known as ArrayStatisticsMethods and in this class, there are definitions to four different "public static" methods which will be described. I'm provided the use …

Member Avatar for mkurdukar
0
506
Member Avatar for webass

[COLOR="grey"]Hi all, I've been trying to solve this problem for like 3 hours, but couldn't solve it, so any help would be appreciated.[/COLOR] I want to perform 2 actions on 1 form and on 1 submit. address1 - i only have to send datas address2 - i have to send …

Member Avatar for Hangfire
0
145
Member Avatar for mrnobody

Hi, I'm currently doing a program to search for text in powerpoint files using interop in vb.net 2005. When a user does a search, it will open the powerpoint (.ppt) file and do the search. This is working fine. What I want to achieve next is if the powerpoint file …

Member Avatar for mrnobody
0
103
Member Avatar for grahamfromcork

[CODE=AJAX] function update(value1) { doAjax("behind_scan.php" , "id="+value1); } function doAjax(url , str ) { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Browser does not support HTTP Request"); return; } url=url+"?"+str; xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); } function stateChanged() { if (xmlhttp.readyState==4) { //document.getElementById("txtHint").innerHTML=xmlhttp.responseText; //alert(xmlhttp.responseText) document.forms.myform.scanner.value = ""; document.forms.myform.scanner.focus(); } } function GetXmlHttpObject() { if …

Member Avatar for Hangfire
0
120

The End.