199,114 Archived Topics
Remove Filter ![]() | |
I'm doing command line compiling, and thought there might be some switch that would list starting and finishing time, but couldn't find anything. I'm using Windows, and trying to work with the default gcc/g++ from mingw installed with Code::Blocks. Or is there some way of doing this with some shell … | |
[CODE] // image - input image // result - output image // N - width of the image // M - height of the image void _medianfilter(const element* image, element* result, int N, int M) { // Move window through all elements of the image for (int m = 1; … | |
Can anyone suggest me some nice string tutorials because I found few of them but they seem pretty hard to learn (like one on [URL="http://www.cplusplus.com/reference/string/string/"]http://www.cplusplus.com/reference/string/string/[/URL] ) It should be native C++ string library because that is the one I started learning, So I would appreciate any suggestions... thanks | |
Hey all! So i've been working on a unix chat server and I think I've done a good job having no idea what I'm doing :-p. The only issue I'm running into is that I can't get it to go 1 to multiple. For instance, the idea is that any … | |
Hi, I am writing a piece of code that takes copies the contents of one file to another (which is created by the code, the name is given by user as an arguement). I've managed to successfully open and read in the source file, and the program will create the … | |
I am trying to set up a text message newsletter on my website. The basics of it are someone submits their number and I can go in and send out a message to a list of the numbers. I want to know the best method of going about this. I … | |
ok so i have this program here i had to finish, and it was for input and output files, i wrote everything, and even wrote the data.in and data.out files but when i run it i get nothing in return. do the files have to be in the ".in" format … | |
i have a problem with refreshing a datagridview. so i have an unbound datagridview that is not enabled. rows are added when a button is clicked. this works the first time, but when i click the button again, the new rows are not all displayed, only the rows that fit … | |
Hello all, I need to extract data from a website, say for eg. Buy.com's Electronics category and save it either in MS excel. I tried looking for the code over the internet, but this wasn't properly explained anywhere. Please help me. ![]() | |
Hi everyone! New here and to Python. I'm having trouble with my break statement executing and cannot figure out why. I'm learning to write to files and want the loop to break if the user hits enter. It's not working for some reason. I've even tried to get fancy (in … | |
The program takes a file with names and GPAs and sorts them in order of highest GPA to lowest using vectors. I cant seem to find out whats wrong with the code. Everytime i run it it says 'vector subscript out of range'. Can someone please help me? File: James … | |
Hi how can I assign html body tag contents into php variable then use it as the body of email | |
Does anyone know how to copy subfolders from one place to another in VB?. I have a Template folder on a network share I want to use to set up the base folder structure on newly created job folders, however, I can't seem to get any copy methods to take … | |
(I'll make this sweat and short, writting in class) Okay so I am working on a sudoku program, and am using a dataGridView for the gameboard. But I need to know how to create different boarders for the cells so that I can make up the 4 black lines that … | |
Hi,I've started learning Java to enhance my programming knowledge and i've written code for individual GUIs which are working perfectly. Within each GUI i have common Labels,Buttons all in a JPanel that are the same in all of the GUIs which are linked together. What I want to basically do … | |
hi, pls help me the following if feasible. 1. i have a file "tax.php" <TR> <td ALIGN = "left" valign = "top"> <b>ABC</b> <br> --ABC BG<br> <u>Address- </u>123 main st. Suite 307, Flushing, NY 11354<br> <u>Phone </u>111-11-11<br><u>Email</u>- [email]SOMEONE@DOMAIN.COM[/email]</td> <td ALIGN = "left" valign = "top"> <b>ABC</b> <br> --SDFS BG<br> <u>Address- … ![]() | |
Hey guys, I understand how to setup the cron job to run once a day. Now I am having trouble putting together a function to do the following: I need to delete all content (rows) automatically where the "expire_date" field is equal to or greater than todays date. Keep in … | |
Hello I am a complete novice so apologies in advance. I want to have a gallery on my website that looks something like the attachment. There is an image in the middle cell of the table and the current image number in the top cell as part of the navigation … | |
Hi! I need to use if statement to check if its the summer time (CEST) or Winter time (CET)...But I dunno how to do that..Couldn't find anything useful on the INTERNET.my date format is (d-mm-yyyy) Basically I need to do sth like that [code] if DateTimePicker->Value>(31-10-yyyy) {time="CET";} [/code] THX For … | |
I have no specific question, though I could go on asking random questions for days. I am still rather early in the learning phase as far as c++ goes. I decided to post here for a rather different reason. I was Google searching for a problem related to getch() and … | |
hello all i need to create a jtable which carry a customer ID and first name and last name and when clicking on that row of a specified customer it turns me to another frame containing the other data of the customer(email , phone number , address) | |
Having trouble storing dollar amounts in the thousands due to the "," that gets inserted once the number becomes 1, 000.00. Any advise? | |
[url]http://msdn.microsoft.com/en-us/library/aa505945.aspx[/url] im curious as to why microsoft has typedef'ed simple "data types"? what's the point of this and why should i use them in my programs? | |
Is there any way for me to get a .php file to open in a web browser without a server? | |
Hey! I am creating an application which will allow users to search parents names and display their childen respectively in a datagrid. I have created a form with two text boxes, a search button and a datagrid. The two text boxes are txtFName.text and txtLName.Text. On clicking btnSearch I want … | |
I have an html div [CODE] <div id="myDiv"> <table border="1" bgcolor="#FFFFFF" width="600"> <tr style="text-align:center"> <td>Subject Code</td> <td>Subject Title</td> <td>Credit Hour</td> </tr> </div> [/CODE] Now, I want to have a button by which i can convert this [B]<div id="myDiv">[/B] to image or .doc.... can any one help me | |
![]() | Hi everyone. I am trying to work on a script that will ban a user from accessing my website for x amount of time. Here is the html and sql code. [B]HTML[/B] [CODE]<?php $date = 'd-m-Y'; $endDate = strtotime($date); ?> <tr> <th>Length of Ban</th> <th>:</th> <th> <select name="period"> <optgroup label="Temporary … ![]() |
This is part of my linked list program. I need to change the data(node) with a new one when it is found (using the find function. And in other case I need to delete the found item using deleteNode() function, once the matching item is found. But, it is not … | |
I've made a Matrix class that contains arrays, however I'd like to inherit the array class if possible. I've done some searching online and can't find any solid information on this. Does anyone know if I can even inherit this class? If so, do you have a good site with … | |
Hi, I am trying to compile this program: [CODE] //hello.h #include <afxwin.h> class CMyApp: public CWinApp { public: virtual BOOL InitInstance(); }; class CMainWindow: public CFrameWnd { public: CMainWindow(); protected: afx_msg void OnPaint(); DECLARE_MESSAGE_MAP() }; //end of hello.h [/CODE] [CODE] //hello.cpp #include <afxwin.h> #include "hello.h" CMyApp myApp; BOOL CMyApp::InitInstance() { … | |
blem I have a probem with my api signup page, the below code $this->obsConfig.... is not working i think it is outside a call but not sure how to put it in a class anyone know how to wrap this up? [code] $this->obsConfig['apiCall'] { ='AddUser.do'; $command = ""; if (!isset($obsAccount['username'])) … | |
Hi Guys: I have completed my source code for the following problem using the "if" statement. I have gotten 4 errors which are: Line|26|error: ambiguous overload for 'operator>>' in 'std::cin >> (Total_Number_of_Seconds / 3600)'| Line|29|error: ambiguous overload for 'operator>>' in 'std::cin >> (Total_Number_of_Seconds % 3600)'| Line|32|error: ambiguous overload for 'operator>>' … | |
I am trying to pass an object as parameter to another class wich contains a SQL connection: Base class is a swing class where this method is the essential to know for my question: [CODE] public void actionPerformed(ActionEvent e) { ModelNY mo = new ModelNY(); mo.setPersonID(txtField1.getText()); mo.setFName(txtField2.getText()); mo.setLName(txtField3.getText()); mo.setAdress(txtField4.getText()); mo.setEmail(txtField5.getText()); … | |
Hello, I'm trying to code a script using GreaseMonkey that alert's you when someone removes a reputation from you. It's for a mybb forum. So it needs to: Search the source for the usernames > Put each into an array > Store the array and check it only when that … | |
I have a DataSet displaying data on a DataGridView. The current method I am using to filter the grid is as follows: [CODE] foreach (DataGridViewRow row in dgvXML.Rows) { foreach (DataGridViewCell cell in row.Cells) { if (cell.FormattedValue.ToString() != String.Empty) { //Highlight cell if the value from the textbox is found. … | |
Hi! So I have this program that will read from a file of responses to a survey. The ratings are 1-10 and there are over 250 responses. I have found the average response and also the standard deviation but I also want to find the Median response. To do this … | |
I am trying to write some queries and I am confused on exactly what to do. Here are my tables that reference my 3 questions. Branch ([U]branch_id[/U], branch_name, street_address, city, state, zipcode, phone, branch_manager, library_id) FK – library_id > library Library ([U]library_id[/U], library_name, street_address, city, state, zipcode, phone, manager_name) Patron … | |
The Javascript that I have included in my php created site is [CODE]<script type="text/javascript"> $(window).load(function(){ setHeight(); }); if(navigator.userAgent.search(/msie/i)!= -1) { } else { window.onresize = function(){ setHeight(); } } </script>[/CODE] Would this cause my browsers (Firefox - IE - Chrome - Opera) to not work? | |
Is there any way that i can be able to get the ExecutenonQuery to Execute faster. Am using it to run mysql queries that have joins from diffrent tables. As I have come to notice, the user has to wait a while before the statement ExecutenonQuery can be completely executed.. … | |
Hi, I want to populate 2 javascript variables with data from 2 form text boxes, the javascript and form text bosex are on the same page using the following code: Form: [CODE] <form name="addSite" method="post" action=""> <label>URL: <input name="url" type="text" id="url" value="<? echo $site; ?>"> </label> <p>Title: <input type="text" name="title"> … | |
I need some help with parsing information from a query string to a database. There is a company that wants to send me information to a page on my server as a query string (http post) e.g. [url]www.mydomain.com/info.aspx?Name=Smith&LastName=Taylor[/url] They will send probably about 15 different strings of information a day. … | |
help i can not figure this out. my home is to encryption a four digit number I have to add 7 and use mod 10-- i think i have that part but now i need to swap the first number with the third and second with the fourth. i can … | |
Hi, I am trying to get my little program to do some calculations. So far i got 15 textboxes, named TxtPP(followed by product type),so i got TxtPPproduct1, TxtPPproduct2 etc.... At the bottom of the form i got a disabled textbox which shows the total of all the above textboxes. Now … | |
![]() | Hey guys, So I today I converted my programs from VS 2005 to VS 2010. I came across an issue involving the string null terminator ('\0') in a function of mine. (Note: It worked in VS 2005). [CODE]int StrLength(string str) { int i = 0; while(str[i] != '\0') { i++; … |
Hi everyone, Edited: So I figured out how to show the submit buttons. My next question is how to incorporate a security measure like html_entities in the action of the form? [CODE] <?php require ("core/config.php"); $tablevaluegetter = mysql_query("SELECT * FROM ratingsystem WHERE typeofsite='somthingtorate' ORDER BY ratetotal DESC"); echo "<table border='1'> … | |
hey, I can seem to make this one work so I wrote another one. It runs but it doesn't work. I tested this but it keep saying invalid for everything anyway. You can check the flow chart again; i just changed ThisOne to ToBeChecked. valid invalid c cc ccc b … | |
hi guys, i want to express the data which is extracted from database in a table in the following fashion item1 item2 item3 item4 item5 item6 item7........... ............itemn dynamically but i can express either row wise or column wise but not as shown above please help me with the code … | |
Hello I am currently attempting to write the contents of a .hrm file into a datagridview and place each piece of data into its required column. This is the code I have at the moment which is currently just extracting some data from the .hrm file and placing it in … | |
I have an application that I'm trying to write in C#. This is my first application using C#, so please bear with me. I tried to create a small app with a textbox and two buttons: start and stop. The start button calls a function that iterates from 1 to … | |
Hello I am currently trying to read specific data from a .hrm file and then display it within a form in c#. For example I want to read the date data from this file and then display it on the form. All I have managed to do is read in … |
The End.