199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ana_1234

So I've been working on this program for a while, I'm finally finish but I have two error that I can not understand why. My first error is when I am declaring the header f [CODE] //------------------- Mixed.cpp -------------- #include <iostream> #include "mixed.h" using namespace std;[/CODE]ile> it keep sending me …

Member Avatar for ana_1234
0
305
Member Avatar for _Nestor

I wrote this code to convert from number in denary to a different base I was curious if anyone has any tips on a better way to write this code I'm always looking to improve my coding and I find others critiques to be a great way of improving. In …

Member Avatar for Schol-R-LEA
0
171
Member Avatar for Voldemort2

I have just started programming in java. I am planning to do a project on barcode reader. Can you suggest from where shall i start? I want to learn about manipulating pixels. How can i convert the set of pixels into the array of pixels? I am in desperate need …

Member Avatar for Voldemort2
0
152
Member Avatar for monstercameron

this code makes a slideshow(a very long fast slide show, video), it plays audio and can adjust its frame size. i have 4 streams(4 diferent groups of jpegs from 4-50kB @720x480), and can switch between them. audio is nearly automatically in sync and both it and the "video loops". using …

Member Avatar for monstercameron
0
341
Member Avatar for myk45

Hello, [CODE] #include <stdio.h> int main(void) { const int j = 2; int i; switch (i) { case 1:break; case j:break; default:break; } return 0; }[/CODE] i tried executing the above code, and i got the following error: [B]error: case label does not reduce to an integer constant[/B] Well, since …

Member Avatar for gerard4143
0
88
Member Avatar for Bubbleboy

I wrote some jquery code for my websites navigation bar that displays a drop down menu by fading it in. It works in chrome, and firefox, but, like usual, not in Internet Explorer. I am using the fadeIn and fadeOut effects and everything seems in order. I even added the …

Member Avatar for Bubbleboy
0
172
Member Avatar for iloveall

Can you guys help me build conway's game of life? I don't need anyone to build it for me, but if you could help me work through it, I have no idea how to implement the rules correctly. Here is the basic board which I have set up so far.. …

Member Avatar for kes166
0
364
Member Avatar for JBLDW

I have [I]this[/I] foreach statement: [CODE]foreach ($googlebasemap as $key => $linkdata) { $xmlmap['item.' . count($xmlmap)] = array('title.0' => $linkdata['title'], 'link.0' => $linkdata['link'] . '?source=googlebase', 'description.0' => $linkdata['desc'], 'g:price.0' => $linkdata['price'], 'g:id.0' => $linkdata['id'], 'g:model_number.0' => $linkdata['prodnum'], 'g:brand.0' => $linkdata['brand'], 'g:condition.0' => 'new', 'g:mpn.0' => $linkdata['mpn'], 'g:image_link' => $linkdata['img'], 'g:product_type.0' => …

Member Avatar for JBLDW
0
245
Member Avatar for Slowly

Hi, This code snippet works. Except for one line, which I cannot find the solution to. public void read(Scanner in) { Pattern p = in.delimiter(); in.useDelimiter("\n"); while(in.hasNext()) { in.next(); lineCount++; } //rewind pointer - how!! ?? in.useDelimiter(p); while(in.hasNext()) { wordCount += 1; charCount += in.next().length(); } } ...it appears, much …

Member Avatar for Slowly
0
5K
Member Avatar for yznk

im trying to create a short email based program that displays only the subject of each email and how many emails with that specific subject there are. However im having a few scoping errors i cant figure out in my SearchCommunication. Can anyone take a look at it and let …

Member Avatar for kes166
0
170
Member Avatar for gishi

Hi Guys, I was hoping someone can help me with this. I have a python program that reads and writes files in utf-8(unicode). When I run it in Eclipse, the output is perfectly fine. When I try making an exe file of my program it is not working. I also …

Member Avatar for TrustyTony
0
370
Member Avatar for novice20

i have a problem... within my python script which does an snmpwalk, there should be an intelligence to create a static table which maps OIDs to corresponding text strings, query the table and in the output of snmpwalk, i need to replace the numeric string with its textual string.. for …

Member Avatar for woooee
0
122
Member Avatar for glenak

This is a proper beginner's question, as you can tell from the thread's title. I have to say, working with java is so much less frustrating. I created a managed c++ project on eclipse, and created a c++ class. Problem is I can't run any of the codes I write …

Member Avatar for kes166
0
127
Member Avatar for aquilai

Hi, does anyone know if its possible to set up a system, preferably using php where by people can send information via SMS and this data can automatically be uploaded to a website/database, also what sort of technology would this require?? cheers

Member Avatar for timpogue
0
663
Member Avatar for chineerat

Hi! I am trying to manipulate the value of an input box based on whether a checkbox is checked or not. example checked input = 1600 and enabled unchecked input = 0 and disabled I am having 2 problems: 1) When the page is loaded I get unchecked and input …

Member Avatar for Taywin
0
111
Member Avatar for malashukla

hello to all, i have write a code in asp.net to show and hide the div. according to the value in the query string. here is my code: [code] if (Request.QueryString["divid"] != null) { divid =Request.QueryString["divid"].ToString().Trim(); if (divid == "watercalc") { watercalc.Style["display"] = "block"; pregnancycalc.Style["display"] = "none"; heartbeatcalc.Style["display"] = "none"; …

Member Avatar for croker10
0
210
Member Avatar for fukki

Hello! I want to pass array of struct to a function. After from that function to pass it to another function. I made some efforts but without result. Those are some parts of my code i create the structure to my main function [code]airplane ticket[numberOfTickets];[/code] from main function i pass …

Member Avatar for kes166
0
139
Member Avatar for bhanu1607

Here i created four buttons. If i clicked second one i should able to draw a line. please tell me what is the mistake.. [code = Java]import java.awt.*; import javax.swing.*; import java.awt.event.*; class Polygon extends JFrame implements ActionListener { JFrame f; public JPanel jp1,jp2,jp3; JButton b1,b2,b3,b4,b5; JTextField txt; int x,y; …

Member Avatar for NormR1
0
153
Member Avatar for Lazarevski

Basically I'm using LINQ to connect to a database(LoginDB) and the table (Korisnici) and see if there are entries in the username and password column that fit the entries of the Login1 Login Control. The Error message is : Cannot implicitly convert type 'string' to 'bool' Cannot implicitly convert type …

Member Avatar for croker10
0
136
Member Avatar for croker10

All: I created two asp.net projects with c# behind. One is an interface with options to create new users etc, the other is a reporting interface. I would like users to be able to click on links from the admin interface and go to the reporting interface. It doesn't really …

Member Avatar for croker10
0
144
Member Avatar for theonly

Hi, I was wondering is there a way to password protect a directory. Here is my problem. My site require a login using php and mysql. This works, however I want to protect a certain directory that only lets a user who login previously to download files from it. I …

Member Avatar for chrishea
0
137
Member Avatar for bhanu1607

This is code for, a smiley have to move on the screen from one place to another. But in this code Smiley create but it is moving. Please tell my? Is there any wrong in my code. import javax.swing.*; import java.awt.*; class CreateSmiley extends JPanel { int x = 0,y …

Member Avatar for bhanu1607
0
101
Member Avatar for cpappas

Hey, So I am using PHP although any language solution would be great. I am looking at displaying whether or not a cookie from a specific ad network is present on your web browser. A good example is with AdChemy. They are a part of the NAI (Network Advertising Initiative) …

Member Avatar for cpappas
0
187
Member Avatar for jimmiller96

Hi all, Fairly new at SQL, and running into the following problem. I am trying to create a query to count the number of unique fields in a column and display, but can't seem to get it right. For example, each day there are x number of entries from y …

Member Avatar for Brillig
0
277
Member Avatar for diagramatic

Hi there, What coding standards are most important to you? I'm doing a review and would like to get some feedback. Naming conventions, is m_ used these days? Class Names - prefixes, case? Comments - style, on functions? Do people prefer to use == NULL or == 0? Any feedback …

Member Avatar for mike_2000_17
0
186
Member Avatar for mpc123

I have a database which is quite large (around 1.7 million rows, with about 40 fields) . I want to do about 10 different queries and echo these results out in a tables that are spaced with headings for the seperate results, but i am worried about the length of …

Member Avatar for mpc123
0
120
Member Avatar for codingNewB

Hello Everybody I cannot get my file to open in my eof program. Outlined below is what the program needs to do: 1) Program needs to read from a file (ex. "Data.txt") 2) Program needs to read even & odd numbers down file. (ex. 2 3 12 5) 3) Program …

Member Avatar for codingNewB
0
769
Member Avatar for angel_eyez

Hi all I write a code which read all application and system logs but i'm stuck at one place. How do i read the security logs i've tried alot but it didn't work.I logged in as administrator but still got the exception [COLOR="Red"]{"The source was not found, but some or …

0
59
Member Avatar for myk45

Hello, im trying to write a recursive algorithm to generate the following binary sequence. ie basically: for 3: 000 001 010 011 100 101 110 111 i tried the iterative method, it works fine. this is what i did: [CODE]for (i = 0 to pow(2, n) ) { //generate the …

Member Avatar for mrnutty
0
1K
Member Avatar for abstrand

I've created a mail message to be sent based on a select statement within a while argument. The problem I'm having is when I add additional fields. The mail message sends just fine with the following concatenation and coding: [CODE]while ($row = mysql_fetch_assoc($result)) { $to = "abstrand@yahoo.com"; $subject = "New …

Member Avatar for richieking
0
1K
Member Avatar for Archenemie

Basically after every guess i want the loop to run until the user guesses right. This is just a simple number guessing game. I ask the user for more input after every wrong guess but the program ends after the second guess is given. Can anyone help? [CODE]#import <iostream> #include …

Member Avatar for Archenemie
0
209
Member Avatar for nonshatter

Hi all, I have an array called html which contains rows of text. E.g: [CODE]$html[0] = 1 Full, Gen. 3 TMSWK2D 9 Poor write quality $html[1] = 2 Full, Gen. 1 TMSWK2C Read Only, Clean Tape [/CODE] How would I go about taking each array value and splitting the row …

Member Avatar for nonshatter
0
119
Member Avatar for dev.vini

how we can delete a uploaded from its source folder when it is deleted from database pls tell me

Member Avatar for richieking
0
88
Member Avatar for seekinghelp

Greetings everyone, I am new to this site and I am just a end user so I do not have the expertise that you all have. I have read the threads in which relate to my error message but this is the senario: When I am on Joyce Meyers website …

Member Avatar for Airshow
0
107
Member Avatar for --Fire--

Hi As a part of my semester project, I am supposed to do a Python based OS. The key idea is, simplest OS that lets you boot successfully and run some simple command line scripts, like how DOS works, but in Python and runs Python. I am completely baffled as …

Member Avatar for Archenemie
0
749
Member Avatar for snow56border

I am working on an assignment in python. The goal is to make a function with two parameters, one for a string and the other for a pattern. If the pattern appears in the string, the program must return true, or false if otherwise. Also, the pattern can accept *'s …

Member Avatar for TrustyTony
0
376
Member Avatar for brontok214

write a program that declares three one dimensional arrays named price,quantity, and amount. each array should be declared in main() and be capable of holding 10 double-precision numbers. the numbers to be stored in price are 10.62, 14.89, 13.21, 16.55, 18.62, 9.47, 6.58, 18.32, 12.15, and 3.98. the numbers to …

Member Avatar for daviddoria
0
251
Member Avatar for kominosmash

I'm having trouble trying to figure out how to code an output for the customer when they order a certain item for example: customer orders a number 1 which is a double burger or a number 2 a heap of fried chicken, then they are prompted if they want fries …

0
225
Member Avatar for Jalwes

We were assigned a game of hangman for our Perl class. In this Perl script, we must use an html page to get the user's name. I feel like I'm getting awfully close, but I can't quite seem to get the userName value to print after each time the user …

Member Avatar for Jalwes
0
225
Member Avatar for swebb

Hi all, I've just started to learn XSLT, so apologies if this question is very basic! I want to create a new html document, one of my elements in the XML file uses mixed elements. I want to do more complicated formatting using linked documents etc. but for the moment …

Member Avatar for iceandrews
0
282
Member Avatar for starpointer123

I'm currently working on a recursive descent interpreter using C++. Though there is already a code on the project, I'm asked to rewrite the Recursive Descent Interpreter implementing it using a list class without using templates and facilites from the standard template library. I already worked through part of the …

Member Avatar for starpointer123
0
188
Member Avatar for el33t

Hi, I'm trying to develop a PHP script which will calculate the internet connection speed of the users. In order to achieve this, the script will perform 5 basic tasks : 1) Fetch the time and store the value in a variable (say: $start_time) 2) Transfer a chunk of data …

Member Avatar for richieking
0
1K
Member Avatar for Tommymac501

I cannot find an article for the life of me that explains what I want to do, which seems so simple to me. We have an SSIS package we use to run some processes against our SQL server 2008. Each time we run it, we need to edit some of …

Member Avatar for Tommymac501
0
304
Member Avatar for ryan311

hi i manage to upload 1 file and save it to the server. how can i add more button to upload a file and save it to mysql? i want is after the user upload a file theres another a button to upload again another a file how can i …

Member Avatar for richieking
0
173
Member Avatar for NewOrder

[CODE]import java.io.Console; import java.util.ArrayList; public class IteratorEx5 { public static void main(String[] args) { Console console=System.console(); String movie=""; String Subscriber=""; String movieType=""; ArrayList<Subscriber> sub=new ArrayList<Subscriber>(); String stop; BlockBuster dvd= new BlockBuster(); while(true){ System.out.println("Enter the movies name"); movie=console.readLine(); System.out.println("Enter the movies name"); Subscriber=console.readLine(); System.out.println("Enter the movies name"); movieType=console.readLine(); System.out.println("Enter the movies …

Member Avatar for kramerd
0
188
Member Avatar for edubar

In Robot.h: #include "Motores.h" namespace SoftRobot { ... public ref class Robot : public System::Windows::Forms::Form { .... public: void ComunicarEnviar(System::String^ EnvDados); private: System::Void Robot_Load(System::Object^ sender, System::EventArgs^ e) { Motores ^newMDIChild = gcnew Motores(); newMDIChild->MdiParent = this; newMDIChild->Show(); } }; } In Global.cpp: #include "Robot.h" using namespace SoftRobot; void Robot::ComunicarEnviar(System::String^ EnvDados) …

Member Avatar for daviddoria
0
174
Member Avatar for pythonlearning

just write this function for a recursion trace back, but it become a infinite loop and won't get into the next level of recursion. I cannot find the problem, many thanks! p_value gotten from a matrix outside, tested that and it is OK. status, i, j pass form main and …

Member Avatar for Gribouillis
0
77
Member Avatar for danholding

i am a newbie to python (well to all programming really) i am having problems with "pywinuato" i have downloaded it and installed it but when i try to import it, it states that there is no module names "pywinauto" am i missing something. also i tried deleting it and …

Member Avatar for cghtkh
0
380
Member Avatar for lukename

Hi. How can i get handle of button if i don't know it's id? I tried to get it's id with AutoIt and i failed. AoutIt Windows Info doesn't reconsie it as button. I mean i moved cursor on the button and nothing appeared in control tab. Maybe i can …

Member Avatar for lukename
0
141
Member Avatar for slawson01

I am working on an assignment that is to make 2 classes that hold a char* with a constructor to initialize as a new char[5] as the private variable. Both classes do the same thing, but one has a copy constructor defined to do a deep copy and the other …

Member Avatar for nbaztec
0
179

The End.