199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ace8957

Hey Everyone! So I'm a super beginner trying to teach myself the ins and outs of stacks (ever so slowly). Specifically, I'm trying to work out a programming challenge in which the objective is to write a function to tell if a string in the format of word1$word2 satisfies the …

Member Avatar for ace8957
0
172
Member Avatar for hatux

Hello people. My aim is to assing an array with words read from system.in in a single entry. So if the users enters "Hello there" i will have 0,Hello 1,Therre I have managed to achieve this with the following piece of code. [CODE] import java.util.Scanner; public class mein { public …

Member Avatar for hatux
0
127
Member Avatar for Dartz654

How do I go about do something where like every 12 hours, the webpage will add 5 to a row in Mysql? Do i have to use like unix commands or something? :0

Member Avatar for terabyte
0
86
Member Avatar for znz

HI, guyz Wordrin if sum one could help! at the moment got code which allow user to input and display in result. but mean time wana allow user to delete current input data by providing delete button next to displayd data.......... plz could some one tell me how to,what commend …

Member Avatar for sops21
0
219
Member Avatar for Teiji

Ok, I'm really really new to Python. I've installed Python 2.7 and is using IDLE (GUI). I just wrote 2 classes, Car and CarsDB, but I can't load them together to use them. [CODE] class Car(object): 'A car with its own information like make, year, model, price.' def __init__(self, mk, …

Member Avatar for TrustyTony
0
146
Member Avatar for VectorAKA

ok the guy helpes me with my problem in my last post but I need to switch this: #This module determines highest value in list def highestMonthNumber (rainfall): month = ['January','Febuary','March','April','May','June','July','August'\ ,'September','October','November','December'] highestMonthly = 0 for m, n in enumerate(rainfall): if n > highestMonthly: highestMonthly = n highestMonth = m …

Member Avatar for woooee
0
270
Member Avatar for astima

Okay, I am a serious newbie so I apologize if I use the wrong terminology. I originally created a forum in order to collect people's cell phone numbers. Now, I want to add a drop-down menu so I know which group they are in and if they do not select …

Member Avatar for TySkby
0
104
Member Avatar for ChainedHollow

I am needing to edit this client/server echo program into a client/server talk application, to send messages back and forth between the client and server, rather than have the client echo the message only. So the output would be: C: Hello S: Hello S: How are you? C: How are …

Member Avatar for ChainedHollow
0
166
Member Avatar for ausops

I'm working on a constructor which lets the player input a starting sudoku grid and also checks if it's valid and can be played, ie, it doesn't already have duplicate numbers. The code listed here is my newest attempt and works on making each number +1 to another array. So …

Member Avatar for ausops
0
149
Member Avatar for Mona..

hello.. What do we mean by binary search and how we can do it using C++ thanks..

Member Avatar for Mona..
0
118
Member Avatar for sravi.pearl

haiii all, i have a php working code for dropdown list,i am unable to display that in a table,i am getting error if i write that code in <td> </td> i am able to include buttons...but why i am i unable to include dropdownlist? so can i place that code …

Member Avatar for TySkby
0
666
Member Avatar for lulemurfan

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>Edit</title> </head> <body> <?php $con = mysql_connect("************"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("**************", $con); $1 = ($_POST['1']); $2 = ($_POST['2']); $3 = ($_POST['3']); $4 = ($_POST['4']); $5 = ($_POST['5']); $6 = ($_POST['6']); …

Member Avatar for lulemurfan
0
90
Member Avatar for WhoCares357

I'm trying to read some input from a file and print it. I have three files: Main.cpp Sudoku.cpp Sudoku.h. For some reason the program will not print anything unless it's in the main function. If I print anything in one of the functions of Sudoku.cpp file and the use that …

Member Avatar for WhoCares357
0
593
Member Avatar for kezkez

I am having a hard time figuring out how to use the db object created in the first action event within the second action... how can i make the object visible there? i am trying to say add a record to db object by saying something like ... class Action2 …

Member Avatar for kezkez
0
158
Member Avatar for death_oclock

I'm not all that familiar with the C syntax rules, I've mostly worked with C++, and I'm having some weird problems working with Visual C 2008. Here's my code: [CODE=c]#ifndef IFF_H #define IFF_H #include <stdio.h> #include <stdlib.h> #define IDS_GROUP "" #define IDN_GROUP 1 #define IDS_CAT "cat " #define IDN_CAT 2 …

Member Avatar for HHBones
0
222
Member Avatar for daneuchar

i want to use two different css for firefox and chrome but unable to do it.. :( please help !! the code i tried is given below !! [CODE] <script> function css_append(file){ var css = document.createElement('link') css.setAttribute("rel", "stylesheet"); css.setAttribute("type", "text/css"); css.setAttribute("href", file); document.getElementByTagName("head")[0].appendChild(css) } if(navigator.userAgent.indexOf("Firefox") > -1){ alert("Firefox"); css_append('css/default_ff.css'); } …

0
86
Member Avatar for an00p

I have developed a web application in PHP and I wan't to implement licencing system into it so that the application should stop functioning if the licence is not renewed. Can someone help me?

Member Avatar for chrishea
0
1K
Member Avatar for Pikachumanson

First off, this is homework and I do my classes online and the teacher doesn't respond to my e-mails in the fastest fashion. I've been getting linker errors all day and I'd like at least an explanation of why they happen. here is my problem. Main.obj : error LNK2019: unresolved …

Member Avatar for vijayaustin
0
151
Member Avatar for vmirce

Hello everyone, I'm new in the world of Delphi and Pascal, so I could use your help. Here's my first question: I use Delphi7 and I have a DBGrid that is populated with one hundred records. I run the query to refresh the content of the dbgrid after each new …

Member Avatar for vmirce
0
121
Member Avatar for Mona..

hello.. can u tell me how i can determine if a certain number is a perfect number or not?! please help me.. thanks.

Member Avatar for mike_2000_17
0
83
Member Avatar for killbill07

I was just trying to create a control array but I can't do it. What can I do? There's another sintax or it's just there's no control arrays in VB.NET????

Member Avatar for codeorder
0
345
Member Avatar for ruwanaru

[CODE] <?php $qty = $_post['qty']; $rate = $_post['rate']; $total = $rate * $qty; echo $total; ?> [/CODE] i want to print the float number in total but it gives rounded Number

Member Avatar for ruwanaru
0
120
Member Avatar for vbx_wx

How can I define an operatpr [] for this class ? [code] #include <iostream> using namespace std; class Vec4 { float f1,f2,f3,f4; public: Vec4(float ff1, float ff2, float ff3, float ff4): f1(ff1), f2(ff2), f3(ff3), f4(ff4) {} float operator [] (int index) { } Vec4 operator + (const Vec4& v) { …

Member Avatar for mrnutty
0
92
Member Avatar for Greywolf333

Hey all, I've been using Visual Studio for a long time. Lately though, after I build an executable successfully, it won't let me build it again for a solid 60 seconds or so, claiming that, for example, test.exe is still in use (when it's clearly not, because if I go …

Member Avatar for Greywolf333
0
94
Member Avatar for Amrinder07

Hi!..I am Amrinder and i am new to java language as i am a student of Engg. i have to make a program using Swings or Frame in which Loop would be handled by Two different Buttons named as Start & Stop.....but how can i make a loop in ActionEvent …

Member Avatar for Amrinder07
0
148
Member Avatar for mcosta

Hello all, I'm sorry if this is an easy fix, but I've searched everywhere and spent 3 days on this and would like my life back. I'm trying to Select data from a database using a PreparedStatement and it isn't working for me. No errors, just no data. I can …

Member Avatar for mcosta
0
84
Member Avatar for SnowyCloud

Hi, I'm reasonably new to assembly, but now that I have mastered the basics, I would like to start using something a little more fun. Can anyone tell me where I can find a book on Assembly for building GUI interfaces. Because this is nice and low level, I don't …

Member Avatar for mathematician
0
147
Member Avatar for AaronLLF

Hi. Hopefully this is my final question for this code. As you may know, I got a code from lloydgoodall.com for a Java & LWJGL FPCamera. It came with several errors, which I got to fixing, and after many, many Google searches, Option+Space's, and hitting my head against my desk's, …

Member Avatar for JamesCherrill
0
587
Member Avatar for heidik

Hello Everyone. Could anyone please help me quickly find duplicates in a vector of over 60000 records. It takes a loooootttttt of time ;'(. Here's the code. [code] #include <string> #include <vector> #include <iostream> #include <algorithm> #include <sstream> struct MyPred { std::string x; std::string y; // add default values MyPred(const …

Member Avatar for heidik
0
112
Member Avatar for jemimaloh

Hey, my code fragment is now this: [CODE]File fileName = "E:\\Major Project\\FinalLap\\278d.gz.txt.txt"; int index = fileName.toString().lastIndexOf("\\"); filed = fileName.toString().substring(0, index);[/CODE] And I hope to just get the file's name "278d.gz.txt.txt" after the last instance of "\\" and assign it to variable "filed". Can anyone tell me what am I doing …

Member Avatar for jemimaloh
0
124
Member Avatar for Pooch74

I'm trying to learn using pointers, and in the code below I can send variables to a function. But the return is obviously wrong and I can't seem to figure it out. What I want the function to return is the number of even number occurrences. Any suggestions to where …

Member Avatar for Pooch74
0
99
Member Avatar for Khodz

So I'm working on a database-type program for the Java course that i'm doing and i seem to have run into a bit of a roadblock. This class compiles and runs alright but where i have a problem with it is when i try to amend the text file using …

Member Avatar for Khodz
0
193
Member Avatar for ponens

So I am fairly new to Java and I have been trying to create a simple program that reads a list of names and a number from an external text file. So I will show you that code first. [CODE] public static void startReadFile() { // Get an ArrayList of …

Member Avatar for quuba
0
138
Member Avatar for gpjacks

I am new to programming so our assignment was to create a number guessing game, where the user picks a number from 1 to 100. The initial guess in 50 and then the program asks the user if it is higher or lower than my guess. Once the answer is …

Member Avatar for gpjacks
0
167
Member Avatar for halil.burak

Salary Works Department for use in a workplace, employees' salaries and to calculate the income tax cuts, the minimum number of net salary payments using money to make and required a program to get some statistical information. For this program the following data will be entered for each employee in …

Member Avatar for halil.burak
0
149
Member Avatar for xaop

Hi, One of my assignment questions is to write a program to illustrate external storage class, extern variable,global variable and thus write the differences between global variable and external variable. My program : [CODE]#include <stdio.h> extern int i; int main() { printf("\n%d",i); inc(); dec(); getch(); return 0; } inc() { …

Member Avatar for xaop
0
92
Member Avatar for facarroll

Hi everyone, I don't know whether this is a PHP or MySql problem, but I think it is the former. The following code queries the database correctly, (and before you ask, there are no duplicate database entries), but the output duplicates every row. e.g., hammer (jpg image) hammer hammer (jpg …

Member Avatar for facarroll
0
99
Member Avatar for famida

how to validation of textfield in java using netbeans IDE 5.5 i have done with validating the length of Textfield i need for number like if text values is number then i want a message to b displayed please help...........

Member Avatar for peter_budo
0
270
Member Avatar for gusbear

hi how you can help me i've been trying to connect a line from a point i click to a square that have been placed there previously but have no idea how to do it, could you help please??

Member Avatar for bboho
0
160
Member Avatar for funfullson

Hi Friends. I have an project with vs2005 and sqlserver2005.There is a page contain a combobox , a text box and two button.The combox items are my cost list that maybe thems count increase by user.how can I manage it? more about it: if person clicks the add button we …

Member Avatar for nsdoshi
0
104
Member Avatar for compe_dsd

this doesn't really involve codes but.... i have a problem in using my netbeans...i'm still new to this program and i don't know the controls and menus...I made buttons/JButtons but I don't know what to do next. I want that when I click a button, another lists or box will …

Member Avatar for famida11
0
121
Member Avatar for facarroll

Can anyone see what is wrong here? This is my first serious attempt at this.[CODE]<?php $query1 = mysql_query(" SELECT topics.url_big, topics.url_small, topics.title, topics.".$egroup.", quiz.passState FROM topics INNER JOIN quiz ON (topics.managerId = quiz.".$managerId.") WHERE topics.".$egroup." = 1 ORDER BY title ASC"); ?>[/CODE]

Member Avatar for facarroll
0
96
Member Avatar for eantz

Hi everyone, I have a project that need an API but still in progress. But, I have a problem with this API authentication. The authentication method I want to use is oAuth. But, unfortunately I don't have any acknowledgement about authentication. I've read many tutorial but I still don't know …

Member Avatar for Mouche
0
185
Member Avatar for sameeya007

$grade=$_POST["grade"]; $stream=$_POST["stream"]; $a=='A'; $query="delete * from class where grade_id='$grade' and stream='$stream' and class_name='$a'"; $result=mysql_query($query); if($stream==null)( [COLOR="Red"]$query1="insert into class values(null,'$a','$grade','null')";[/COLOR] $result=mysql_query($query1); }else( $query1="insert into class values(null,'$a','$grade','$stream')"; $result=mysql_query($query1); ) in this code runs .the code which color in red is occur error . please someone can tell me the reason for that?

Member Avatar for sameeya007
0
89
Member Avatar for muze

hello guys...how can i use iostream.h in VS2008?? im using following code but it is no t working... [CODE] #include <windows.h> #include <iostream.h> HANDLE hEvent; DWORD WINAPI SampleThread(LPVOID iValue) { int iFinish = 120; for(int i=100;i<=iFinish;i++) cout<<i<<endl; SetEvent(hEvent); return 0; } void main() { HANDLE hThread; DWORD dwGenericThread; hThread = …

Member Avatar for thelamb
0
178
Member Avatar for dsmith01

I have a complex query I've been wrestling with for 2 days and can'seem to get it to run. I've tried LEFT JOINs and sub-querys and GROUP_CONCATs and still can't seem to get this to work right! What am I doing doing wrong? Lets say I have 2 tables in …

Member Avatar for smantscheff
0
152
Member Avatar for jems5

With this code segment, I must be able to output text file data with names of persons along with int values after performing calculations. The program isolates the names, int values and float values and should output the percentage of each value as a functions of total... example out is... …

Member Avatar for quuba
0
101
Member Avatar for auxius

hello please help me. i want to search a data using from a textbox and a command button to search ..I have a i have a access database and 1 table with 2 fields ID and Name..im using Visual Basic 2010..please help me on second thought after finding a data …

Member Avatar for auxius
0
70
Member Avatar for achieve_goals

Hi, I am having trouble comparing characters from two strings. This is what I have [CODE] void encrypt(string plaintext, string vigenere_table[length][length], string keyword, string& ciphertext) { int row, col; for(int i=0; i<20; i++) { for(int x=0; x<length; x++) { if(vigenere_table[x][1] == plaintext[i]) //wont let me use == row = x; …

Member Avatar for myk45
0
154
Member Avatar for losh177

Hi, I need some help figuring out what's wrong with my code. I'm getting quite a few of syntax errors for missing ';' which I have and missing type identifier. This errors are happening on my intarray.h file for string declaration (line 34). I get more errors that still need …

Member Avatar for losh177
0
183

The End.