199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for achiman

Hey please I am trying to create a chat system but my main server routine in my server class keeps give error saying its out of bound. I think it is the port number but dont know how to fix it. Is there anyway I can hard code the port …

Member Avatar for masijade
0
84
Member Avatar for syue87

halo, im a newer in this c++ program.i try to execute this code(at the attachment) at ns2 unbuntu 9.10 but the following error occur. help me fix this error. analyze.cpp:55: error: ‘EXIT_FAILURE’ was not declared in this scope analyze.cpp:55: error: ‘exit’ was not declared in this scope analyze.cpp:61: error: ‘EXIT_FAILURE’ …

Member Avatar for WaltP
0
3K
Member Avatar for dinamit875

Hi everyone, I have written a program here about customers, it works fine so far, but I am having a problem with getting customer details, for example, when I enter customer name, age...etc, it saves this info into a customer.txt file, I can see this information until I exit the …

Member Avatar for WaltP
0
130
Member Avatar for softapu
Member Avatar for abhimanipal
0
336
Member Avatar for chubkakes1

Hi, im fairly new to c++.I have a variable in my while loop that gets the x position of the mouse and constantly refreshes and outputs to the screen. My problem is that i want to get the exact x position wherever the mouse is when i press the 1 …

Member Avatar for WaltP
0
146
Member Avatar for upasanac

I have this function which computes the position record of 6 requests. ( ie x,y,dx,dy--these are the position records for a request) I want to display these position records in a textfield, which i have in my GUI, as soon as i press the "positionrecord" button. I am able to …

Member Avatar for Ezzaral
0
155
Member Avatar for jose385

I just hit a brick wall. I'm writing a code that will ask a user the height of a pyramid an output the corresponding pyramid with * characters. I got that part working but now I need to turn it into a half pyramid like so: * ** *** **** …

Member Avatar for jephthah
0
302
Member Avatar for atticusr5

Hey everyone, I am using Visual Studio 2008 to debug some code where the goal is create a linked list using pointer variables. Here is the main error I am getting when trying to compile: [CODE] error C2227: left of '->Account' must point to class/struct/union/generic type type is 'Link_t' [/CODE] …

Member Avatar for atticusr5
0
142
Member Avatar for divyareddy.533

Hi, I am new to perl scripting language, While i am working with this i got a problem in this.When ever i am trying to redirect to a next page uisng perl script i got the problem it did not redirect to the next page. here i am explaning with …

Member Avatar for rdxblast
0
102
Member Avatar for i_luv_c++

hey guys...my code is working fine..only problem i have is my first do-while loop doesnt work...every time i try to compare the word given by the user to 'q' ||'Q'...it gives an error saying no match for the operator..please help me ....thanks! [CODE]#include <iostream> #include <string> using namespace std; bool …

Member Avatar for i_luv_c++
0
137
Member Avatar for rockiesmagicnum

Here is my issue. I'm attempting to create a daily mailing using a console app. Well, when I started, I for some brilliant reason made a web app. So I'm trying to translate it into a console app, and while I THINK this should work, I keep getting a "type …

Member Avatar for rockiesmagicnum
0
62
Member Avatar for phil750

Say i just do a simple printf statement [code] printf("i want this text to be different color > %s", thisbit); [/code] i want whatever i print out at the %s (the string) to be different color. Im sure it only something little that why i ask.

Member Avatar for Adak
0
550
Member Avatar for navarannan

Hi Friends I have a requirement to where my cgi program has to send an email when the "Submit" button is pressed. Here is my cgi program, which has a text field to enter the username and a submit button. [code] #!C:/Perl/bin/Perl.exe use strict; use CGI qw(:standard); use CGI; use …

Member Avatar for rdxblast
0
433
Member Avatar for CSharpUser

Hi, I'm hoping someone can make sense of this... I'm trying to use WMI to get file information from a specific directory on a remote machine using CIM_DataFile. I can get all of the files on the on the remote machine using: System.Management.ObjectQuery oq1 = new System.Management.ObjectQuery("SELECT * FROM CIM_DataFile"); …

Member Avatar for CSharpUser
0
1K
Member Avatar for JdTSC

The msgbox widget is really useful. However the font limitations of the default msgbox can be brutal if your trying to deliver a message with considerable information. Has anyone coded an improved msgbox class that would take the same arguements + font?

Member Avatar for JdTSC
0
112
Member Avatar for nsxdude

Today is my first day on this site. I am vey new to VB.NET, i have a good amount of experience in VB6. I have a application I wrote for my Aikido club to track hours and I am converting it to .NET. The code below is very basic and …

Member Avatar for nsxdude
0
153
Member Avatar for mattjbond

I am curious about how to post or have published tutorials. I have searched the forum but the latest information I cna find is years out of date. Any help here?

Member Avatar for mattjbond
0
94
Member Avatar for tom23

hello i woud like to have an C# code witch will run a file at monday, one at tuesday, one at wedensday, one at thursday, one at friday, one at saturday and one at sunday, can somone provide me this please ?

Member Avatar for ddanbe
0
88
Member Avatar for richman0829

isalpha and ispunct work punctiliously, but isspace spaces out. [CODE] cout << "Please enter an integer: "; cin >> str; int bogus = 0; for (int i = 0; i < str.length(); i++) { char temp = str.at(i); if (isalpha(temp) || isspace(temp) || ispunct(temp)) { cout << "Please try again!" …

Member Avatar for richman0829
0
300
Member Avatar for elorc

I'm using the VB.NET 2005 RichTextBox control as a base for a user control that I've written, and one of the functions I'm writing into this control is a spelling check. There's a problem I've found though: I can't preserve RTF markup when corrections to the spelling are made. I've …

Member Avatar for elorc
0
867
Member Avatar for TeddyKiller

I have images in the database, and I am looking to resize images whilst keeping the quality. This is link one, without image resize [URL="http://horble.com/test/test.php"]http://horble.com/test/test.php[/URL] This is linke two, with image resize. [URL="http://horble.com/test/test1.php"]http://horble.com/test/test1.php[/URL] As you can see, the resize image distorts the image, and for the image already displayed that …

Member Avatar for TeddyKiller
0
139
Member Avatar for IAuchmoody27

Warning: require_once(../../GrBx/cw3/admin/application.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\GrBx\cw3\admin\ProductForm.php on line 2 Fatal error: require_once() [function.require]: Failed opening required '../../GrBx/cw3/admin/application.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\GrBx\cw3\admin\ProductForm.php on line 2 Can someone please explain this error message? I am using Cartweaver and I'm trying to change it in a …

Member Avatar for Cartweaver
0
412
Member Avatar for vij123

i have a Jsp page. in this Jsp page having some links. i want when i click to link of result some data should be display. but it does not displaying. please check the below code. Indus.jsp [CODE] <html> <head> <title>Indus Public School</title> </head> <body> <div align="center"><font size="+3"> Indus Public …

Member Avatar for vij123
0
123
Member Avatar for dawsonz

Hi i've got a simple username and password entry on my webpage. My login class works perfectly in Windows Form but not in my Web Application Login class: [code] using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SqlClient; namespace assignmentForm { public class UserLogin { private SqlConnection connection = …

Member Avatar for dawsonz
0
100
Member Avatar for windany

This code : ...line 6... [code] #include "FileToVector.h" #include "VectorToIntArray.h" #include <string.h> #include <iostream> using namespace std; int main(int argc, char *argv[]){ char* in = argv[1]; FileToVector ftv = FileToVector(in); vector<char> v = ftv.fileToVector(); VectorToIntArray vt = VectorToIntArray(v); //int* a = vt.letterFrequencies(); cout<< v.size(); return 0; } [/code] produces this …

Member Avatar for windany
0
103
Member Avatar for danz23

we were asked by our professor to create a web program which is called BOOK RESERVATION.. from the name itself, i guess it's way too obvious on what he wants us to do.. we are to use EJB which makes things a whole lot harder since he never discuss this …

Member Avatar for jwenting
0
54
Member Avatar for neolyte120109
Member Avatar for dillinger88

HI, I'm relatively new to programming in C++. I'm pretty solid in C and Java though. Anyway, I'm trying to create a class, Mesh, that has a vector full of my other class, Node, however the compiler doesn't seem to like it. I've looked through the console message but I …

Member Avatar for dillinger88
0
206
Member Avatar for dmane

Hi All, I am trying to learn stl to have some knowledge of how things work. I have just covered some basics and I have come to a block. I will explain what I am trying to do. I have a class that performs some basic operations on its member. …

Member Avatar for mattjbond
0
129
Member Avatar for aianne

Hi! I need help for my homework in c++. My professor wants us to write a program that ask a question and there is a multiple choice and the answer. like the gameshow "Who wants to be a millionaire?" Please give me some example.. (^_^) thank you so much!

Member Avatar for Tigran
0
103
Member Avatar for LJames

This is a distraction task in a Psychologgy experiment. For a period of 5 mins the user moves a pic box from the centre of the panel to a matching triangle. The picbox mouseup detects which region it is and adds a score and then sets it back to the …

Member Avatar for LJames
0
168
Member Avatar for SamTheDevGuru

Hi Experts , I have a datagridview which is bound to a data source,I modify the data source and add one empty row at the beginning,this is to provide a quick search,user can click on a cell and filter the datagridview. But the problem is I am facing an exception …

Member Avatar for Geekitygeek
0
498
Member Avatar for Sujit_Patil

Hi, I am create one application using C#.net and SQL Server 2005, In this application uses procedure,plz give me syntax how to create procedure in SQL Server and how to handle error in stored procedure.

Member Avatar for kvprajapati
0
99
Member Avatar for vij123

I have two Jsp pages named bestschool.jsp and schoolnames.jsp. I am calling schoolnames.jsp from bestschool.jsp. I want when I click the link on INDUS School. It can show all concerning link of INDUS School links like profile, result, facility etc. in the same place instead of other naming school links. …

Member Avatar for vij123
0
194
Member Avatar for bustersox

I am having issues getting my code to work properly. The objective of the program is to allow the user to enter 5 scores and then it is supposed to calculate the mean and rearrange the data set from highest to lowest (descending order). I am supposed to run it …

Member Avatar for stevelg
0
2K
Member Avatar for toykwon5

Hello everyone. So, I am trying to come up with an algorithm to do following: I have total 12 cells that I need to fill until program stops. I have 3 rows and each row has 4 columns. As an example, let me illustrate this as in airplane. So you …

Member Avatar for Geekitygeek
0
71
Member Avatar for empror9

hello, how can i call function from another function? i declare 3 functions which are move_mid ,move_left and move_right please see this code (it's just my idea and i know i has many syntacs erorr , but my goal is just how a function call some functions) [CODE]move_left() { cout …

Member Avatar for empror9
0
89
Member Avatar for karet

hello everyone.. im student from indonesia n im newbie ihave a problem n i need your help ihave data from table, like that: TGL || Tahun || semester || Keterangan 2010-1-1 || 2010 || Genap || LIbur tahun baru 2010-1-2 || 2010 || Genap || LIbur UAS 2010-1-3 || 2010 …

Member Avatar for asaizanm
0
71
Member Avatar for Arkapravo

Desperately need help ! ..... I need to install Player/Stage ( [URL="http://playerstage.sourceforge.net/"]http://playerstage.sourceforge.net/[/URL] ) on Ubuntu 9.10. Found this, [URL="http://curtis-thoughts.blogspot.com/2010/01/install-playerstage-in-ubuntu-910.html"]http://curtis-thoughts.blogspot.com/2010/01/install-playerstage-in-ubuntu-910.html[/URL] ..... but could not get it to work ! Any help is greatly appreciated !

Member Avatar for Arkapravo
0
204
Member Avatar for cane23

can anyone offer some help on this matter i have 5 session arrays and i want to merge all of them. however these session arrays are take from several multiple select list. while the code that i have done so far works fine, it has one small problem. in the …

Member Avatar for as.bhanuprakash
0
87
Member Avatar for tulipputih

hi everybody, I am doing pagination. if I set the limit to 5 and the no of result is 30, then 6 pages is shown as the overall page). however, only the first 5 results is shown. How should I change the code? many thanks [CODE] <?php /* call this …

Member Avatar for tulipputih
0
108
Member Avatar for ryan311

here's my code [CODE] $sql=mysql_query("insert into guest (fname, lname, address, contactno, emailadd) values ('$fname', '$lname', '$country', '$contact', '$mail')"); $search = mysql_query("select * from guest order by code DESC limit 1"); $row = mysql_fetch_array($search); $lastnum = $row['code']; $number = $_POST["Rooms"]; $count = count($number); for ($i=0; $i<$count; $i++) { mysql_query("Insert Into rent …

Member Avatar for as.bhanuprakash
0
80
Member Avatar for pysdex

I try to generate 10 random integers and store it in an array(9). Then I split the array into half by converting it into string. My code can compile but it sometimes work and most time cannot work. I don't know what is the problem.... [code] Public Class Form1 Private …

Member Avatar for Renukavani
0
95
Member Avatar for judge6

I have a simple file watcher application which watches the folder C:\. I am watching the folder so that as soon as a new file is created in C:\, it moves the newfile to a specified folder somewhere else. My problem is that if two files are dropped in the …

Member Avatar for kvprajapati
0
113
Member Avatar for shyami

Hello there, I wrote a code for reading xml datas from one url, the code is working fine, but if data contains "-" it throw error message. Here is my code [CODE] h = httplib2.Http('.cache') response, content = h.request(dataurl) data = content.decode('utf-8') elem = etree.fromstring(data) [/CODE] i am getting error …

Member Avatar for Stefano Mtangoo
0
83
Member Avatar for ryan311

ive already search in google and yahoo but i don't know how to add that code to my code. here's my code in displaying a data in the table [CODE] $result = mysql_query("SELECT * FROM rent where status = 'pending' order by cno asc"); $count = mysql_num_rows($result); <table border='1' cellspacing='0' …

Member Avatar for ryan311
0
91
Member Avatar for Lolalola

Hi, i creates this program: [CODE=python] import wmi c = wmi.WMI() for i in c.Win32_Processor (): cputype = i.Name print cputype for i in c.Win32_ComputerSystem(): mem = int(i.TotalPhysicalMemory) print mem/1000000, "mb" [/CODE] I make exe file with py2exe. When i run program, i see this error: [CODE] D:\py\dist>cpu.exe Traceback (most …

Member Avatar for Lolalola
0
175
Member Avatar for nverma

i have a datalist,i want an add button at the end of each row,clicking wich should result in a new blank row

Member Avatar for Ramesh S
0
82
Member Avatar for arvin2006

good day everyone! is there any idea on how to set the picture property of the Data Report's Image Control based on the Form's Image Control? this code doesn't work: 'Me.Sections("Section2").Controls("imgEmployee").Picture = frmMain.imgPic.Picture Thank you very much for responses.

Member Avatar for shenba.akila
0
178
Member Avatar for scooby36

I have a problem trying to copy 3 fields on a form to a database. The reason I cannot seem to do it is that the last field asks how many copies you want to save in a combo box. So lets say the user selects 3 I need to …

Member Avatar for scooby36
0
117

The End.