199,112 Archived Topics
Remove Filter ![]() | |
[CODE]#include <iostream> using namespace std; void pop(int s, int n) { for (int l = 0; l < n; l++) { for (int i = 0; i < n; i++) { cout << s[l][i] << "\t"; } cout << endl; } } int main() { int n, num; cout << … | |
Hello I would like to start learning allegro but need some suggested sites, please help! | |
hey all, im new to this programing stuff consider a buffer of size 2048bytes. the data i need to send is more than 2048 bytesof the of buffer. i have a func SendDataReq (u8* pu8_TxBuffPtr,u16 u16_NoBytes);. how do i send this data using this func | |
Hello, everybody. I had a problem while connecting to Oracle. Got messages: [QUOTE=Error]ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified[/QUOTE] And found solution for this - setting the default locale in java code: [code=java] Locale.setDefault(Locale.US); [/code] This works just fine … | |
Im using regex to pull an image url from a site and would like my site to display the image from that url. Anyone have an idea on how to do this since setting the image url to the response url isn't working? | |
Hi, this is pretty much my first post here. I just started learning C++ about a week and a half ago and I started working on a program that could compare pixels on the screen to see which letters they form (kind of like OCR). I probably know what you're … | |
Hi all, I made a script that can be used as a captcha. It shows a random amount of (roman) letters sliding by every 2000 miliseconds (thats why its called [B]Matrix[/B]Captcha. But I am not sure wether it is able to stop bots from spamming. Does anyone have a suggestion … | |
Hi I have took from internet PHP script that uploads images to the host [CODE] <form name="upload-form" id="upload-form" method="post" action="./upload.php" enctype="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="30000"> <fieldset> <legend>File upload:</legend> <dl> <dt> <label for="file">File:</label> </dt> <dd> <input tabindex="1" accesskey="b" name="file" type="file" id="file" /> </dd> </dl> <input tabindex="2" accesskey="l" type="submit" name="cmdupload" value="Upload" /> … | |
hai i want to know that how to compare the two srting's ... i mean i have a date in string 1 and in the second string i have other date now i want to compare by operant <,>, i convert that string to int but it through error | |
I've been trying to code a catch me game (for anyone who doesn't know: a game with a ball that randomly jumps around the screen - the goal is to click the ball before it moves, and not to miss it). I've got the clicks part down. You can click … | |
Studying for the final and can't remember the details behind the copy constructor. I know what it does, just don't know the "why" behind some stuff. Here is an example of a copy constructor I have. [CODE] Person::Person(const Person& aPerson) //m_variable=private variables { m_name = aPerson.get_name(); m_pBirthDate = new Date; … | |
We have several legacy "Windows" applications built in Visual Basic 6 that until Windows Vista displayed normally. Now we have random textboxes that display with a black background, even before any records are brought into the form (and after as well). Some forms in one application have one or two … | |
Please i'm developing an application with vb.net and mysql. I want to add additional users to the application but with different access levels. this is my original code [code=vb]sql = "select username, password from users where (username = '" & UsernameTextBox.Text & "') and (password = '" & PasswordTextBox.Text & … | |
Hi there. I'm currently attempting to create a vector of structs whereby the struct itself contains a vector. The problem I am having is upon creation of the struct itself, throwing the following error. error:C2075: 'Target of operator new()' : array initialization needs curly braces. [code=c] struct DISPLAY_DEVICE_CAPABILITIES{ vector<int[3]> resolutions; … | |
Hello, I'm trying to create Frame with 2 JButtons and 1 JList. Buttons are Add and Remove. After clicking Add button JFileChooser creates and user choses a file. The file then must to be added to the JList. [CODE]public class GmFrame extends JFrame { private JButton bAdd; private JButton bRemove; … | |
Hello I have tow queries on my website. A first query that extracts a number of records from my "Tutors" database based on the criteria "Location". This query works fine and returns "Id", "Name" and "HourlyRate". I want my user to be able to see an extended profile for each … | |
hi, im getting recv:bad address error in the server code when im receiving the data from the client.i tried passing the structure and an integer alone ,but for both i got the same error. for structures: client: [code=c++] struct Data { char data1[255]; char data2[255]; int val1; }; struct Data … | |
i have been trying to compile for a while now worked fine until i added a symbolic constant then i get all kinds of syntax errors please help thanks heres source code: [CODE]#include <stdio.h> #include <stdlib.h> //GIGO.c- Coded by Ross Camarillo aka Bubonic_88 // on 12/02/2009 //Created by Randy Gibson … | |
how long a default session stay in php | |
Dear Experts I Have four textboxes, I want textbox1 to accept only char data. I want textbox2 to accept only numeric data. I want textbox3 to accept only alphanumeric data. I want textbox4 to accept only bolean data. Please help | |
Hello Guys, Can someone please show me if this is possible or not, if so where can i get further information or a code example will be nice. When i enter first name, and then click from the drop down selection "product spec 3" from options "product spec 2" , … | |
I will if i press down that the focus go to the next textfield. i will not do every time [CODE] if (focus() = controlname) controlname.focus() else if (focus() = controlname) controlname.focus() [/CODE] what can i do? | |
I am new to XML and have a very sketchy knowledge of C. I am writing a C program in which I need to read strings (each on a separate line) in a text file, match that string with a value enclosed in a specific tag inside an XML file, … ![]() | |
I have this simple project that I'm sure has come throught here before. I am take input from a user using JOptionPane, make sure it is >15 Chars, and count the uppercase. Here is what I have so far. I am having trouble setting the first loop correctly. [CODE] import … | |
Hi All I have a listview attached to a dbase app I am working on, the last column has a price value and I would like to create a total value for this column in a label or text box below the listview control. I was searching back the old … | |
hello.... is javascript works in mailbody? i mean admin sends registration form through email to new users. for that registration form validation javascript is not working. any suggestions | |
hi guys please help me.i have confusion for file handling. i am developing a application that uses one txt file. now i want to find a particular word from file and replace it as space. i don't how to do this. please help me | |
I just started using both PHP and MYSQL and i have this SQL statement that get record from three tables ie [CODE]Select name,age, datejoind, active, avrage_time_in,avreagework_duration from Personalrecord Union Activestaff Union Timetable[/CODE] but i need to be able to get a the list of Returnd field name into a PHP … ![]() | |
:idea:I'm a bit stuck I wrote a printing part. But cant find how to preform a pagefeed [CODE]Private Sub PrintBTN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintBTN.Click copieen = 1 PrintDocument1.PrinterSettings.Copies = copieen PrintDocument1.Print() end Sub Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage … | |
Don't know if this is the right place to post this but... I just started with SDL, and get the error: expected constructor, destructor, or type conversion before '*' token With this code: [CODE]#pragma comment(lib, "SDL.lib") #pragma comment(lib, "SDLmain.lib") #include "C:\Documents and Settings\Mikael\Mina dokument\SDL\SDL-1.2.14\include\SDL\SDL.h" #include <cstdlib> #include <iostream> #include <string> … | |
Write an if/else statement that compares the value of the variables soldYesterday and soldToday , and based upon that comparison assigns salesTrend the value -1 ( soldYesterday greater than soldToday ) or 1 . i wrote: [code] if (soldYesterday > soldToday) { salesTrend = -1||0; } [/code] and its coming … | |
Hello, I need help with re-ordering the values in ascending order in the array (Unordered). However, I cannot use swap or sort function (i.e. Bubblesort). How can I do that? | |
I'm currently trying to create a client program that sends location variables (x and y) to a server, which then passes it on to another client and vice versa so when one client moves the object, the other client see's the change immediately on screen. I think get and set … | |
[code] #include <iostream> #include <iomanip> { void DispalyStoreItems (); int ChoosingItems (); double calculateChange ( int , int ); { int cost; DispalyStoreItems (); cost = ChoosingItems (); calculateChange ( int pay , int cost ); system ("PAUSE"); return 0; void DispalyStoreItems () { std::cout <<"Code" << setw (10) << … | |
I need to grep a line from a text file, and delete the fourth and fifth field. then save it back to the text file. If that wont work I could also grep the line, and delete the first number and everything after it on that line. Both would accomplish … | |
i got a project that uses TooN and cvd libaries. i got the TooN and cvd source and headers files (downloaded from their sites) but i dont know how to add them to my project. i think i should make lib files and than add them to the project, but … | |
Hello fellow python programmers. I had an idea the other night when watching a video on the creation of the Tasque application. Developers at novel are given a week called "Hack week" were they have no management and are allowed to code anything they like. Well two of the developers … | |
Hi, I have a sentences like this: I have words like this: Example 1: [code] $string="control"; @arr= qw(Our data suggests that shape and growth control are unequally affected,The growth of tissue is control,The observed regulation is due to elevated levels in the blood,The sugar levels are in control and there … | |
First here is what I need to accomplish: --------------------------------------------- The program In this program you will create a direct access file on a simulated disk. A number of sectors will be allocated for the file and records will be written to the sectors using hashing. The sectors will be buckets, … | |
My code outputs the correct answer to both the GUI and to a text file, but it displays it in a list format instead of a clean looking table. What modifications have to be made to assign formatting of output correctly? [CODE]import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.GridLayout; import … | |
The program calls for: Here is what the program calls for: Write a program that lets a maker of chips and salsa keep track of their sales for 5 different types of salsa they produce: mild, medium, sweet, hot, and zesty. It should use two parallel 5-element arrays: an array … | |
All, I am currently trying to implement Global Exception handling in a website and ASP.Net is throwing a File Not Found exception all the time. I did some search in this regard and the issue is still not solved. I kindly request some one to guide me in solving this … | |
I've read some articles and forums on the topic, but still hasn't gotten a clear answer for myself... What I need is my incoming emails to be stored in my MySQL database. I understand that the email has somehow be submitted to a PHP script that will handle it further, … | |
Hello all, I am not sure if I should post this in this forum or the PHP forum. Basically, I am designing a web application for a school project. On the delete action, I want to prompt the user to make sure they mean delete. I was wanting to use … | |
Any ideas on how would I be able to traverse this BTree in asceding order? right now I am sorting the data and giving it to my retreival() function to look for the keys. But naturally it visits and prints the data in ascending order because I give it sorted … | |
[B]For school, using Visual Basic 9.0 (2008)[/B] Write a program called Histogram that reads data from a file (allow the user to input the file name) and produces a horizontal histogram. The first line of the file should contain he title of the histogram, and each subsequent line should contain … | |
Hello frnds, I have created a b'day reminder application in VB 6. I want to that application will remind us every two hours in small icon like when small pop window. and i also want that my login form should be displayed at that tima when system booting complete. can … | |
How can I SWITCH the contents of 2 textboxes by clicking on a command button? I tried to solve it this way : [CODE]Private Sub Command1_Click() Text1.Text = Text2.Text Text2.Text = Text1.Text End Sub [/CODE] But it didn't work out and it only changes the content of text1 Thanks in … | |
Hi, What I want to do is to upload a file to a specific directory as well as enter the data into a MySQL database. The specified directory would be a value that has come from a previous select statement from the database. So as an example, I would want … | |
Hi, I am new to Dev C++ (and C programming iteself!). I was trying to write a project in Dev C++ and I faced two problems. I will really appreciate it if anyone can help: 1- I created a project and added one main file to it. There are some … |
The End.