199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Newskin01

Hello, Is it possible for anyone to explain to me what "Initialize the 3 parallel arrays" means? Here is the problem. A file called seats.txt contains a description of an airline seating arrangement and a list of individual seat assignments. An example is shown here: rows 7 leftSeats 1 rightSeats …

Member Avatar for Taywin
0
803
Member Avatar for phfilly

Hey everyone, I'm having abit of trouble with a seg fault. As said in the topic, the piece of code that gives the error isn't really working with an array. I ran the program through the gdb tool in g++, and it says the the seg fault occurs in the …

Member Avatar for phfilly
0
155
Member Avatar for Borzoi

Hello everyone, If I was to set my site to redirect any subdomain to the main page in the htaccess file like so: [code] RewriteCond %{HTTP_HOST} ^(.*).example.com RewriteCond %{HTTP_HOST} !^www.example.com [NC] RewriteRule ^(.*)$ http://www.example.com/ [P] [/code] Would this mean that if I was to type in elephant.example.com it would redirect …

Member Avatar for Borzoi
0
275
Member Avatar for jimbennett57

I'm a newbie to SOAP, and have been searching for an answer with no luck. Hopefully someone can help me out here. I have a VB script which successfully retrieves a SOAP response (xmlhttp.responseText). I can see the response with WScript.Echo, save it in a variable or can save it …

Member Avatar for jimbennett57
0
584
Member Avatar for NewOrder

[ICODE]using System; using System.Collections.Generic; using System.Text; namespace Project1 { class Class1 { public static void Main(String[] args) { int b = 0; string stop = ""; SharePortfolio share = new SharePortfolio(); string shareName = ""; int sharePrice = 0; string doYouWant2AddShare = ""; string whatShareDoYouWant2see = ""; string doYouWant2changeSharePrice = …

Member Avatar for NewOrder
0
96
Member Avatar for sijei

Im a beginner programmer this semester, and python is my first language. I can do the homework but am naturally curious at spiffing up my programs to help me understand how to have many things working at once in a program. I have some ideas but have not been able …

Member Avatar for TrustyTony
0
127
Member Avatar for joydsouza90

how do you fill an object such as a rectangle with a colour using setfillstyle(); ?? I dont want to use flood fill as i am having more problems with that..

Member Avatar for 007himanshujain
0
76
Member Avatar for ageq

I need a help for change the code below for use it as a simple void function. I found this code on Gretl : [url]http://gretl.sourcearchive.com/documentation/1.8.2/genfuncs_8c-source.html[/url] Now i ha some problem , can someone help me. [CODE]/** * bkbp_filter: * @y: array of original data. * @bk: array into which to …

Member Avatar for ageq
0
111
Member Avatar for ckdoublenecks

I think the below code will do the password If I can figure out how to direct this program to the the main program if the password is correct. Can someone help me with the link, please? [CODE]<?php mysql_connect(localhost,root,""); mysql_select_db(entrydb) or die( "Unable to select database"); if(!empty($_POST["submit"])) { $password = …

Member Avatar for ckdoublenecks
0
190
Member Avatar for henryford

I keep getting a error for adding strings and integers together. how can I fix this? It is in the line hours.append(hWork + "\n") [CODE] hours=[] hWork="1" while True: employee=raw_input("\nPlease enter the employees' first and last name. ") hWork=int(raw_input("How many hours did they work this week? ")) if hWork < …

Member Avatar for TrustyTony
0
127
Member Avatar for Chrisfs

Hi, I keep getting the error Traceback (most recent call last): File "<string>", line 11, in <fragment> builtins.TabError: inconsistent use of tabs and spaces in indentation (<wingdb_compile>, line 11) With the lines being [CODE] for line in datafile: pricedata = line.split(",") newdata[pricedata[0]] = pricedata[6][/CODE] I have taken out and put …

Member Avatar for woooee
0
1K
Member Avatar for sha11e

Database: motion_world table: accounts columns: id | username | password | register_date | account_level When i go into HeidiSQL -> Query and write: [CODE]SELECT account_level FROM accounts WHERE username='Sha11e'[/CODE] it returns: administrator But if I, in a PHP file, write: [CODE] mysql_connect("localhost","root",""); mysql_select_db("motion_world"); $hi = mysql_query("SELECT account_level FROM accounts WHERE …

Member Avatar for psycode
0
83
Member Avatar for denmarkstan

i need help here(my school project- UNIVERSITY HOSTEL ALLOCATION PORTAL): i want to load table with data from database. the table will contain FullName,RegNumber,Sex,Level,Department,Faculty,Session from database(StudentData) where the RegNumber match. I use table.Load(Reader) ie "result2.Load(dr)". the problem is that it works atimes; other times it give error:> "THAT I SHOULD …

Member Avatar for Mitja Bonca
0
288
Member Avatar for FlowerPower1

Does anyone know how I would go about creating a IM bot which repeats back what you say?

0
70
Member Avatar for yeticannotski

Dear All, I am not only new to python, but completely new to programming in general. So please don't laugh (too much) of this certainly dumb question. I was going through the first pages of "A Byte of Python" and decided to change a bit one of the models and …

Member Avatar for yeticannotski
0
84
Member Avatar for subrat_p

[code] import java.awt.*; import java.awt.event.*; import java.sql.*; import javax.swing.*; import java.util.*; public class attendance extends JFrame implements ItemListener, ActionListener { static Connection con; static Statement stmt; static ResultSet rs; static ResultSetMetaData rsMeta; String query; String ref="",rollno=""; String[] heads; int[] stChange; String[][] cubeData; int rows, cols, coo; public attendance(String tit, String …

Member Avatar for subrat_p
0
215
Member Avatar for Ivanero

Hey guys I am trying to calculate statistics for an array such as min,max,median... etc and am not getting any answers or results although the program runs well. here's the full code so far... [CODE]//Mostafa Abdel Moez 111606 //Calculating some common statistics for an array of integers. #include <iostream> using …

Member Avatar for Ivanero
0
194
Member Avatar for Vininski

Having a problem with assigning a string in this linked list, any ideas? the line that reports an error is highlighted in red. I would expect this to work as variable 'name' is a char array and i am simply assigning the string "Vin" to it. [CODE]#include<stdlib.h> #include<stdio.h> typedef struct …

Member Avatar for Vininski
0
251
Member Avatar for tobeye

hello, I'm new to the PHP-scene and I'm having difficulties with creating a log in system. The login system writes to a postgresql database. when I try to run the page I receive this error: [CODE]Warning: pg_num_rows(): supplied argument is not a valid PostgreSQL result resource in /var/ftpdirs/512544/PHP/login/adduser.php on line …

Member Avatar for hielo
0
337
Member Avatar for rAshter

I am just beginner in c++ so I am weak in debugging c++ codes. I am having problem with the code below. It is showing segmentation error and i am not able to remove in from the code. I am using g++ editor in linux. #include<iostream> #include<string.h> #include<stdio.h> #include<stdlib.h> using …

Member Avatar for gerard4143
0
118
Member Avatar for getack

Have a class, in a separate .h file, and the implementation of this class in it's own .C file. The class does not include anything external, so it exists completely on it's own. When I compile, G++ tells me it is looking for a semicolon before the class declaration. This …

Member Avatar for gerard4143
0
5K
Member Avatar for juniper2009

Dear All I am a newbie Java Learner.I try to learn over Java API Docs.But still I need some help. I have a gui which consist of four textfields(tf1,tf2,tf3,tf4) and a button(b1). If I press the button(b1)"Register", I want my action write whole textfield sources into a text.txt file by …

Member Avatar for JamesCherrill
0
114
Member Avatar for ttamilvanan81

Hai, I am new java developer. Now i am doing one struts application. In my application, at the User registration time, i need to Encrypt the password field and then i like to store into the database. After that the same user will be logging, at the moment the database …

Member Avatar for reshmajohney
0
2K
Member Avatar for SHENGTON

Hello, good afternoon. :) Now I got some problems with my "Create Payroll". I changed the "rate[100]" integer to "salrate[100]" float. After changing these errors prompted me. [b]Errors:[/b] payroll system.cpp(157,22): Illegal use of pointer <-- This is "Error" payroll system.cpp(158,8): Possible use of 'gsalary' before definition <-- This is "Warning" …

Member Avatar for Ancient Dragon
0
173
Member Avatar for khushhappy

<body> <p> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("select", $con); $result = mysql_query("SELECT * FROM view"); ?> </p> <form id="form1" name="form1" method="post" action=""> <table width="100%" border="1" cellspacing="0" cellpadding="0"> <?php while($row = mysql_fetch_array($result))?> <?php { ?> <tr bgcolor="#F5F5F5"> <td > <?php echo $val['name']; …

Member Avatar for khushhappy
0
103
Member Avatar for anonymousi

its a simple car parking fee calculator that uses timer start and stop value to calculate hourly fee....

0
81
Member Avatar for LianaN

Hi! The problem is connected with using frame.pack(). So, let's say there is JFrame: frame. Depending on the option selected from JComboBox, the content and size of JFrame should change. Everything works perfectly in NetBeans (!!!). However, if I try to run the JAR file, then the size of JFrame …

Member Avatar for LianaN
0
522
Member Avatar for cbsinc

Sorry to bother you all with such trivial stuff, but I just finished about 35 years of work in construction, all over the US and Europe. And when the market went south I went back to school. Calc and trig are going fine, but C++ is kicking my butt. We …

Member Avatar for cbsinc
0
120
Member Avatar for sureshprg

Dear all, I need to send a string value along with an 'Enter' keystroke from an active form to a multi-line text box in an inactive form. Tell me a way to do this in VB6. Thanks.

Member Avatar for PoisonedHeart
0
141
Member Avatar for jkon

Hello all, I have a table dir_records < SHOW CREATE TABLE dir_records > CREATE TABLE `dir_records` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `TITLE` varchar(250) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `URL_TITLE` varchar(250) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `TXT` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `COMPANY_ID` …

Member Avatar for smantscheff
0
169
Member Avatar for tqmd1

Dear Experts I have loaded a picture in PICTUREBOX1 by this command Me.PictureBox1.Image = Drawing.Image.FromFile("D:\C2007\BITMAPS\pict.jpg") How to store this picture SQL server 2005 table1's IMAGE column? I do not want to store image path in table. I want to store picture in image column in any format. Reason: If I …

Member Avatar for akar
0
277
Member Avatar for DA_BKJ

Hey everyone. BKJ here, need some help with a homework, really appreciate some help. Heres the question: Write a program that reads one line of text, one character at a time, and then prints it with all its blanks, commas, astricts (*) and periods removed. Heres my answer:[CODE] #include <iostream> …

Member Avatar for DA_BKJ
0
2K
Member Avatar for serena5

I am writing Spring web MVC app whereby the client and the server communicates by sending json messages. On the client I am making asynchronous calls to update textboxes. Could you please let me know if I am using the right syntax? I have hit a brick wall and cannot …

0
62
Member Avatar for nathanurag

[CODE]#include<stdio.h> int main() { int i,j,k,c; char s[1000]; //array to store the input string for(i=0;(c=getchar())!='.';++i) //string to be ended with '.' { s[i]=c; for(j=0;j<=i;++j) { if((s[j]==s[j-1])&&(s[j]=='\n' || s[j]=='\t' ||s[j]==' ')) { j=j-1; } } for(k=0;k<=i;++k) printf("%c", s[k]); } return 0; } [/CODE] I am trying to create a program that …

Member Avatar for vinitmittal2008
0
174
Member Avatar for SunnySideUp

Hi, I have this image script and I want to upload the image and then save the file into a Database, but I keep on getting errors(a blank screen). Here's my code: [CODE] if(isset($_FILES['logo'])) { if(($_FILES['logo']['type'] == "image/jpg") || (($_FILES['logo']['type'] == 'jpeg') && (($_FILES['logo']['size'] < 524288)))) { $logoname = $_FILES['logo']['name']; …

Member Avatar for SunnySideUp
0
147
Member Avatar for Obelisk4

Hi all ! I 'm working with my friends in a basic game project ( it 's just a newbie one, though ) I 've searched and tried all tips that I 've found : setting the include Directories, adding the Linker, copying SDL.lib and SDLmain.lib to VC++ lib folder, …

Member Avatar for shijobaby
0
225
Member Avatar for chavez

Hi guys! I get this exact error Main.obj : error LNK2001: unresolved external symbol "public: int __thiscall CGui::GetActiveState(void)" (?GetActiveState@CGui@@QAEHXZ) Release/test.dll : fatal error LNK1120: 1 unresolved externals Heres the code: [CODE] #include "Gui.h" #define WINDOW "3D World" HWND ( __stdcall *pCreateWindowExA )( DWORD, LPCTSTR, LPCTSTR, DWORD, int, int, int, int, …

Member Avatar for shijobaby
0
514
Member Avatar for Geek-Master

Hey everyone, I'm working on my first program using "[COLOR=RoyalBlue]Winsock2.h[/COLOR]". I'm getting back linker errors "error LNK2001: unresolved external symbol ..." 9 unresolved externals total The program came from an MSDN tutorial: "A simple winsock program", its a simple ping program that sends packets to a loopback address. when I …

Member Avatar for shijobaby
0
169
Member Avatar for hermann87

So, I'm having another problem this time... I'm on Windows 7 x 64, working with VC++ 2008 Express I've been working on this DX10 tutorial up to this point where I tried to build my project and got this : [CODE=CPP]error LNK2019: unresolved external symbol _D3D10CreateDeviceAndSwapChain@32 referenced in function "void …

Member Avatar for shijobaby
0
352
Member Avatar for DioRani

I am currently working a registration project and here is my code.. [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace Thesis { public partial class Registration : Form { Form formParent = null; public Registration(Form par) { …

Member Avatar for DioRani
0
118
Member Avatar for shrikantdhyani

Please help me I want to write url like [url]http://mysite.com/cpanel/manager/subadmin/view_event.php?e_id=137[/url] to [url]http://myurl.mysite.com[/url] in PHP myurl comes from database on behalf of e_id. If user enters [url]http://myurl.mysite.com[/url], on behalf of "myurl",e_id retrived from database and append to this url [url]http://mysite.com/cpanel/manager/subadmin/view_event.php?e_id=137[/url] My mail id is -<<Email Snipped>> Thanks in Advance

Member Avatar for monica singh
0
96
Member Avatar for JackDurden

I have this error when debugging called Debug Assertion Failed , does anyone know what that means? Im using Visual C++ 2008. [CODE]void merge (string alpha, string beta) { string temp; string temp2; stringstream insert(alpha); stringstream insert2(beta); // Insert the string into a stream ostream_iterator<string> output(cout, " "); vector<string> words; …

Member Avatar for shijobaby
0
843
Member Avatar for radmaker3

I just started using MS Visual C++ express to brush up on C\C++ I wrote one little sample program and it ran successfully, then every time after that i kept getting this debug assertion failed error that killed my program. Here's my code. #include <iostream> using std::cout; using std::cin; int …

Member Avatar for shijobaby
0
357
Member Avatar for spetsnaz26

I'm transitioning my old, dinasour-ish program written with arrays and pointers to vectors and ran into some problem with iterators. I'm using Visual Studio 2005 SP1. In debug mode the follow message appeared upon reaching the part of the code indicated further below: Debug Assertion Failed! expression ("_Myptr > ((_Myvec*)(this->_Mycont))->_Myfirst",0) …

Member Avatar for shijobaby
0
341
Member Avatar for EngSara

Hi, When I run my program it crashes and a message that an asseration failure happened appears. when I debug the program it points to following: [CODE]for ( i = 0; i < delta*d; ++i) delete [] o[i]; delete [] o;[/CODE] I create this array as follows: [CODE] int **o; …

Member Avatar for shijobaby
0
183
Member Avatar for integer*09

Hi all, I got this assertion problem that i cant seem to solve, could you guys help me on this. So far, i think the problem might be due to the while loop for the iterator line by line check and i have made changes to it but still cant …

Member Avatar for shijobaby
0
771
Member Avatar for Kunal Aggarwal

I program using Visual C++ 2008. MFC Application. I was creating a program to open a Media (.avi) file. The default association of avi files is the Windows Media Player. Now in the program I want to load a button that when clicked will open the specified avi file using …

Member Avatar for srilekha nikky
0
185
Member Avatar for bookmark

Line 10 keeps on getting a Type "Double" Unexpected Any idea what the problem is? [CODE] #include<iostream> using namespace std; double grossPay(double a, double b); int main(){ double a,b; cout << "Hours worked this week and hourly rate of pay"; cin >> a >> b; cout << double grossPay(a,b); system("pause"); …

Member Avatar for bookmark
0
452
Member Avatar for navi17

Hello friends, I need your ideas on my new project in word press. How should i approach that. what i want to achieve is that Client will have library of word press themes called wps themes on his server. I need to create a plugin which when install 1)- The …

Member Avatar for navi17
0
108
Member Avatar for jjspikejones

I have many errors in this program will someone help I also have to put another for loop the the isRightprime var. [code] // imports #include <iostream> int isRightPrime(int); int isPrime(int); // begin main int main() { // declare variables int rightPrime; int Prime; int x; int y; using namespace …

Member Avatar for VernonDozier
0
110

The End.