199,114 Archived Topics
Remove Filter ![]() | |
Hi everyone, i am very very new to c++... i have just finished a c++ in 21 days course but still rather in awe of the expanse of how it works. I was wondering if anyone on here had any spare time to help me get used to using the … | |
I am trying to use the rand function to generate numbers from an array containing 3 ranges. This is unfortunately not working. I know I am doing something wrong, either with rand() or with my array declaration. Can someone please correct me: [CODE=perl] my @numbers = [48..57, 97..112, 65..90]; $num … | |
This is a rather noobie question. I've used Textmate in OS 10 and Notepad++ in Windows. What I am looking for in an editor is a hybrid of both. I am looking for an editor that has HTML templates, like Textmate, but also an FTP client integrated, like Notepad++, rolled … | |
Hi All, I dont ve any clue on how to perform th efeat which i am going to describe below ..... i ve a contact form with an image verification before submitting the data to db ... its working fine .... the problem is when the user makes a mistake … | |
Hey everyone, I am trying to use BPEL Designer and Eclipse, and I am having the worst time trying to get all the plug-ins to work correctly. I installed all the prerequisites and installed the Designer, but when I try to go through and download the updated BPEL Designer files … | |
This subroutine is very basic, however I am struggling. When the user types q (or Q) into the input when asked for the vendor name, the program should return false... However, this function is always returning true. MY if statement is clearly not working: (*vendorName != 'q' || *vendorName != … | |
[QUOTE]can you help me complete this program... it is an encryption program.. it needs another text file(1), that will convert the the contents of text file(#2) and then save it to another text file(#3)..it needs 3 text file..how can i do that??[/QUOTE] [CODE]#include<stdio.h> #include<ctype.h> #include<stdlib.h> #include<iostream.h> void main(void) { FILE … | |
Hi, I looked for this on Google, but to no success. Can anyone help/point me in the right direction as to how include a terminal window in an exectuable jar file?? Outside the IDE, I can only access my program by command promt, Im not fussed about layout, I just … | |
[code] <script type="text/javascript"> function validatePID(inputField , helpText) { if(inputField.value.length != 9) { if(helpText != null) { helpText.innerHTML = "Please enter a 9 digit Number"; return false; } else if( isNaN(inputField.value)) { if(helpText != null) helpText.innerHTML ="Please enter a number "; return false; } else { if(helpText != null) helpText.innerHTML =" … | |
Here's the problem: One of my scripts allows users to upload MS-Excel files. When uploading the file, users are also required to enter details related to the file - details like start date, stop date, a description of what the file contains, and the file ID#. This Excel file contains … | |
Hello all - I need homework help. This part of the assignment is to create a struct, called StudentRecord, the first attribute of which needs to be size 20. My implementation of this is at (1). After instantiating a StudentRecord named MyStudent, I'm to assign some value to it. I … | |
Hi, How do i order results for most relevant one? [code]Select id, title from data where (titleLIKE '%PHP developer%')[/code] id title ---- ------------------------------- 1 ASP developer 2 WEB developer 3 PHP 4 PHP developer In this case, it should be displayed in this other 4, 3, 2, 1 OR 4, … | |
Hi, [code] A= [1,3,5] B=[12,24,36,48,60,72] [/code] Here list A is a list of the elements in list B i want to remove. How can I do this so that I would get list B to then look like: [code] B=[12,36,60] [/code] Thanks in advance, Zach | |
Hi all. Is there any way to extend maximum timer count value above 0x7fffffff i.e. 24.8 days? [code] #include<windows.h> #include<stdio.h> VOID CALLBACK TimerProc( HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime ); void main() { UINT time MSG msg; ::SetTimer(NULL,0,time,TimerProc); GetMessage(&msg,NULL,0,0); } VOID CALLBACK TimerProc( HWND hwnd, UINT uMsg, UINT_PTR … | |
Hi everybody, I have the following URL to grab: [url]http://www.mysite.com/profile.php5?id=43534&mode=photo&pic_id=3453432#pic[/url] I need the 2 ids. But it doesn't seem to work. [CODE=JSP] var url = "http://www.mysite.com/profile.php5?id=43534&mode=photo&pic_id=3453432#pic"; var exp = new RegExp("^http:\/\/w?w?w?\.?mysite\.com\/profile\.php.?\?id=(\d+)&mode=photo&pic_id=(\d+).*?$"); if (exp.test(url)) { var found = exp.exec(url); alert("found0: "+found[0]+" found1: "+found[1]); } [/CODE] What am I doing wrong ? … | |
Dears i need to design a database for real estate agency, the price is based on the size of the unit multiplied with the meter price, for example if an unit size is 200 meter and the price for 1 meter is 10 US$ so the price for this unit … | |
I wrote a script where users in my web can create albums and upload some photos in their album. I need someone to explain to me what i should do to enable members after they open a certain album,and see photos which are four in a row. And then if … | |
I have spent endless hours searching the web for a few days now and still the only tutorial I have found (doesn't even show everything I need) is at [URL="http://www.functionx.com/vcnet/controls/combobox.htm"]http://www.functionx.com/vcnet/controls/combobox.htm[/URL] But what I need is code or tutorials on how to make graphical interfaces such as textboxes, scrollbars, tickboxes etc … | |
I am newbie in the world of programming.. and I am using vb6.. can anyone help me to do get the data ranging it by the date. What Im trying to mean is ex: I have a data which includes data form january to june. I want to display feb … | |
This is the code i m using for updating table,which the user is entering through textbox in vb form Con.Execute "update Details set NAME='" & txtName.Text & "' and DT_OF_BTH='" & txtDOB.Text & "' and DT_OF_JOING='" & txtDOJ.Text & "' and SALARY_ACC='" & txtAccountNo.Text & "' and REMBSMNT_ACC='" & txtRmbr.Text … | |
hello! i would like to ask something about a program that i am trying to do. I wrote the program but i cant find where is my fault and doesnt check the right day for the february. I sent you my program, if anybody has something to suggest. The suggestion … | |
hi all , im trying to compare two time values , but im unable to display the correct result , the retval returns -1 for both d1 and d2 , i suppose the mktime is the convert the values into seconds since EPOCH . any idea as to where im … | |
I was wondering if it is possible to create an array of enums like this: [CODE] typedef enum { LABEL, SCREEN_BUFFER, PID, ENABLED, NUM_BYTES } SENSOR; static SENSOR sensors[] = { // formula // label //screen_buffer //pid //enabled // bytes { "Absolute Throttle Position:", "", "11", 1, 1 }, { … | |
hi, im making a page where users click on the "REGISTER" button to register into the program. the program gives the user a username by taking the first 3 characters of the first name and first 3 characters of the last name. if the username already exists i just add … | |
I have the following C++ code: [code=syntax] void f(int* x) {...} void f(char* x) {...} int main() { ... f(0); ... } [/code] I understand that this has a problem interpreting which function to call. I also think I can get rid of this problem by giving it two different … | |
Hi all! ...jup.. I'm back again.. This time I seem to have troubles with my array, I want it it to do a fairly easy job, but I can't figure out the syntax of how to do this. I have a form with several sorted TextBoxes, named accordingly: tb_dec[1-6] tb_bin[1-6] … | |
The readlines() method for file objects return the lines as a list (or is it a tuple?) however each element contains the \n character which prevents the element from being used in another function. How do I remove the \n character from the elements? I have made some code which … | |
Hi, I have finished coding a VB.Net application that has connection to SQL Express 2008 database. My question is, what steps do I have to take to make this a multi user application. FYI: There are 3 tables in the database of which two tables contain data to be viewed … | |
I have problem with detailview. My detail view like this: ProductID: 1 ProductName: car Price: 200 And when I click link button, it will appear "1" This is the code behind: [CODE]Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click Dim detail As DetailsView = DetailsView1 Dim … | |
Hi, i could really do with some help. I am trying to connect a simple button in Visual Basic 2008 Express Edidtion, to an access database in which i can get an item from the database to show in a text box. Like a till does when a product is … | |
Hello all! Below is my code to give you an idea as to what I would like to do. [code] Partial Class OLATool Inherits System.Web.UI.Page Protected Sub SqlDataSource1_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles SqlDataSource1.Selecting End Sub Protected Sub OLATool_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles … | |
Hi guys I am new to python .. i was trying to move sequential images from a folder with multiple types of sequences in same folder like a_bc_01.jpg a_bc_02.jpg a_bc_03.jpg c_de_05.jpg c_de_06.jpg etc... to different folders [ICODE] import os, glob, os.path import array path = 'd:\del' for file in glob.glob( … | |
Ok I know how to sort an array. That's not what I'm asking. Basically my problem analysis is: I have to read in a file of employee reports ie salesID Employee code numunits numdollars 6022 1 3 100.00 6023 1 6 200.00 ok so I read each value into arrays … | |
Good Morning Friends, I have a SP that is Supposed to Restore a Database from a Backup. In some Clients this works well but in those particular client its a Problem. The version is SQL 2005. Here is the Code that fails [CODE] set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go … | |
I am creating a project in which I have to show all the columns of database table named LMTS_compatibility in a datagrid. How can I do it in [COLOR="Red"]VB.NET[/COLOR] I am able to connect but cannot enter the values in datagrid and display it. Please Help!!!!!!!!! :icon_cry: | |
Tried searching but everything seems to be for VB C++. Is this even possible in dev c++ if so please tell me how to do it | |
Okay so I was the one with the Assertion failure problem earlier.. so I started all over. I have no compiling errors anymore but now the output is wrong. My new code is: [CODE]#include <iostream> #include <cstring> using namespace std; int main() { char phrase[100]; //100 characters allowed char *words[20]; … | |
Good day! Im so confused of auto incrementing a receipt number format. example i have a starting receipt no. (00000) in a mysql field called or no. when the paymentfrm load, the textbox that contains the receipt no will be added by one so that it will become 00001. I … | |
Hi all, Im learning PHP & SQL very quickly, but still have issues with counting this, and incrementing that.... so if someone could help, you'd be(proverbially) teaching a man(woman in my case..lol) to fish.... Im constructing a form which in part, allows user to input instructions. I would like the … | |
Hello I know I may receive some grief for not inserting code correctly it is my first post... My question is this: I am reading a huge list of values from a file and I need to store these elevations into an array so they can be used to calculate … | |
hi, I was hoping someone could help me. I've been trying to do this for the past hour with no luck. basically i'm trying to make a Celcius to Fahrenheit converter. So far, the converter works fine, except for the fact that I cant get it to display 2 decimal … | |
Hello everyone! I would appreciate some help with this problem i'm facing I have designed a application using Borland C++ Builder 6. The problem I'm dealing with is that the application GUI runs as designed only on my computer. If i try to run it on another computer applications components … | |
I've a perfect working code in IE but for some reason its not working in Fire fox...can anyone suggest why? | |
Hi everyone, Is there any way to open a website in the default browser that will be cross-platform? Right now I'm using: [code=C++] #include <windows.h> ShellExecute(NULL, "open", "http://sourceforge.net/projects/tro", NULL, NULL, SW_SHOWNORMAL); [/code] But this Windows only of course. Thanks, Brett | |
Can u help me in making a C++ code for simulating a bidirectional shift register?????? | |
I can't seem to figure this one out but I'm sure it's easy. My program seems to be truncating decimal values even though stored in a double Both sets of code below output the number 0 when I need them to output .5, what am I doing wrong? [code] cout … | |
Hi, I am trying to compare two strings. When i enter two arguments on the command line 12 and 100, the flag1 should be set to 1 because (argv[1] =) "100" > (junk2 = )"13". But this is not happening. So, how can i check that the input arguments entered … | |
i have made this strstr() function,it gives the correct answer if it finds the correct string inside the another but the program crashes if it does not find the string,gives a runtime error,compliler does not give any error! here is my code: [code=c++] char *astrstr(const char *s1,const char *s2) { … | |
Hi all! I'm trying to create a function that will allow me to set the properties of all the specified controls in my form at once. In a more direct example: I'm trying to change the text of every textbox in my form to null ("" would do fine to, … | |
Hi, I have to create a hunt the wumpus game using c++ and using the parameters that my proffesor set up, but I am really confused and I don't know where or what to start with. This are the parameters and other stuff that my proffesor gave us. (ps I … |
The End.