199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for digital_ice7

[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 << …

Member Avatar for mrnutty
0
94
Member Avatar for zobadof

Hello I would like to start learning allegro but need some suggested sites, please help!

Member Avatar for zobadof
0
98
Member Avatar for bhavz

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

Member Avatar for Narue
0
70
Member Avatar for Antenka

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 …

Member Avatar for Antenka
0
146
Member Avatar for Firethorn

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?

Member Avatar for privatevoid
0
102
Member Avatar for FanatiK

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 …

Member Avatar for FanatiK
0
901
Member Avatar for Graphix

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 …

0
117
Member Avatar for azegurb

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" /> …

0
102
Member Avatar for dskumar_85

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

Member Avatar for privatevoid
0
73
Member Avatar for CoolGamer48

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 …

Member Avatar for twatface4000
0
157
Member Avatar for ihatestarch

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; …

Member Avatar for ihatestarch
0
79
Member Avatar for meeny

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 …

Member Avatar for meeny
0
91
Member Avatar for azdonald

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 & …

Member Avatar for azdonald
0
115
Member Avatar for kirennian

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; …

Member Avatar for kirennian
0
211
Member Avatar for Perveance

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; …

Member Avatar for Perveance
0
244
Member Avatar for bouncycastle

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 …

Member Avatar for praveen_dusari
0
414
Member Avatar for karthik.c

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 …

Member Avatar for programmersbook
0
3K
Member Avatar for bubonic88

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 …

Member Avatar for xavier666
0
103
Member Avatar for anu.reka85
Member Avatar for tqmd1

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

Member Avatar for TomW
0
267
Member Avatar for NoID

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" , …

Member Avatar for NoID
0
146
Member Avatar for tchiloh

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?

Member Avatar for tchiloh
0
159
Member Avatar for ravinamita

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, …

Member Avatar for JenniLei
0
2K
Member Avatar for NickT80

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 …

Member Avatar for MxDev
0
134
Member Avatar for kanababa

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 …

Member Avatar for kanababa
0
99
Member Avatar for muralibobby2015

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

Member Avatar for almostbob
0
415
Member Avatar for ujjval dave

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

Member Avatar for kvprajapati
0
105
Member Avatar for awo

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 …

Member Avatar for diafol
0
189
Member Avatar for Ulukay

: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 …

Member Avatar for Ulukay
0
127
Member Avatar for DawnOfIkaros

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> …

Member Avatar for DawnOfIkaros
0
119
Member Avatar for adventk

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 …

Member Avatar for xavier666
0
74
Member Avatar for fedya

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?

Member Avatar for xavier666
0
6K
Member Avatar for poorquality

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 …

Member Avatar for poorquality
0
138
Member Avatar for zobadof

[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) << …

Member Avatar for Nick Evan
0
2K
Member Avatar for Mattpd

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 …

Member Avatar for hichnam
0
156
Member Avatar for dardar4

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 …

Member Avatar for hichnam
0
118
Member Avatar for ShadyTyrant

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 …

Member Avatar for Gribouillis
0
367
Member Avatar for Vandithar

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 …

Member Avatar for vapro
0
136
Member Avatar for jralexander137

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, …

Member Avatar for ivakadfc
0
178
Member Avatar for tnccjavaMatt

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 …

Member Avatar for BestJewSinceJC
0
714
Member Avatar for C++ Beginner

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 …

Member Avatar for valtikz
0
445
Member Avatar for amrish_deep

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 …

Member Avatar for Ramesh S
0
106
Member Avatar for levsha

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, …

Member Avatar for Simply T
0
494
Member Avatar for Roebuc

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 …

Member Avatar for Roebuc
0
110
Member Avatar for UberJoker

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 …

Member Avatar for wmsigler
0
232
Member Avatar for emerituspundit

[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 …

Member Avatar for vb5prgrmr
0
104
Member Avatar for kunju87

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 …

Member Avatar for vb5prgrmr
0
141
Member Avatar for Lida_pink

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 …

Member Avatar for vb5prgrmr
0
146
Member Avatar for SunnySideUp

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 …

Member Avatar for Simply T
0
79
Member Avatar for mohammad1982

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 …

Member Avatar for Frederick2
0
113

The End.