199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ohnow

for a program that tries to dtermine how many votes are in each congressional district. the program reads records that each contain a name., a Social Security number(nine digits, no non-numeric characters), and a district number from 1 to 7.the records should be read until the end of the file. …

Member Avatar for ohnow
0
80
Member Avatar for DanLB

Hi all - hope you can help me with this. I'm trying to search through a vector of struct's; I'm able to loop through the vector using a simple for() loop, but i'm unable to use the generic find(). Secondly i want to delete a element if there's a match. …

Member Avatar for kay25
0
2K
Member Avatar for Lukezzz

I wonder how it is possible to retreive a string from a function that is generating this string. How is it possible to get the string "SendThis" when presssing the button1 in this case and declare it to getgenerateString ? [code] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { String^ getgenerateString …

Member Avatar for Lukezzz
0
156
Member Avatar for virang_21

Hi Folks, I have created a login page that allows user to login to the system. I have a table in database called Users (userid, password, roleid) . When I try to login with proper user id and password the system let me login and redirects to proper page but …

Member Avatar for Naresh Sharma
0
71
Member Avatar for vino4all

How to get the following output using c? ---1 --12 -345 6789 Please guide me with the code. It can be a blank space instead of '-'.

Member Avatar for 0x69
0
369
Member Avatar for rasheed0987

Salam to all. I m new to this forum. I m doing Php Mysql just for fun. I want to make a "login form and Register me" form . so plz tell me the simple code for it.

Member Avatar for colweb
0
47
Member Avatar for wildgunman

I'm writing a program which searches through a list of medium sized text files for a particular keyword string. This string may appear more than once in the file. The files are generally parsed out for readability, so they have hard returns at the 80 column mark within paragraphs. As …

Member Avatar for d5e5
0
122
Member Avatar for iliali16

Hi guys I am not a c# guru and i think this is a good question to ask here. I have a pannel in which i am writing coordinates but since the cordinates change in every loop i when they change the panel gets the new coordinates on top of …

Member Avatar for iliali16
0
100
Member Avatar for JHus00

Hey everyone. I want to call dateConversion and send along the date string which I do with this "dateConversion(dateString);" I want that to print the month day and year. I will have to do it at this line "cout << "on " << date << endl << endl;". When I …

Member Avatar for Nick Evan
0
136
Member Avatar for #define

hello everybody! i have a question that i want to reverse the queue in BigO(1) time and space without effecting its enqueue, dequeue ,print and other function. thnx in advance 4 answering

Member Avatar for Narue
0
83
Member Avatar for teen-omar

Hey guys, I'm stuck at a problem. Check out the code: [CODE]import java.util.*; class testAll { public static void main(String[] args) { Scanner input = new Scanner(System.in); ArrayList pointsArray = new ArrayList(); ArrayList linesArray = new ArrayList(); System.out.println("Enter amount of sides: "); int sides = input.nextInt(); if (sides <= 2 …

Member Avatar for teen-omar
0
282
Member Avatar for bjeffries

Well at least I think my troubles are with the get variable. I know my code is amateur I am very new to PHP and trying to learn as much as I can. So I am trying to create a photo gallery any having trouble with getting my get variable …

Member Avatar for bjeffries
0
349
Member Avatar for jpknoob

I'm trying to create a form that updates stock in mysql database. I have created the forms to upload new stcok and they work fine. However, i'm including a link that will take the user to an update php that will then update the required fields, but i can't seem …

Member Avatar for diafol
0
99
Member Avatar for Mena samy

hello I am trying to send an array of character but when i receive it in the other processor i receive it with garbage !!! any suggestion? [CODE] #include <stdio.h> #include "mpi.h" int main (int argc, char *argv[]) { MPI_Status s; int size, rank; char line [128]; //char* str="hjfjh"; static …

Member Avatar for Mena samy
0
189
Member Avatar for Geodude0487

[QUOTE=khanhtrung;460562]Hi omoz4real. In your code,i found that you hadn't opened your connection before executed a command,so you probably couldn't connect to the database. If you didn't intend to execute a command which return a table as a result,you should use another way.There is [B]xxCommand.ExecuteNonQuery().[/B] I have a small attached program …

Member Avatar for Geodude0487
0
112
Member Avatar for anjal_pawar

On line no 1 there are 1 star On line no 2 there are 3 stars On line no 3 there are 5 stars On line no 4 there are 3 stars On line no 4 there are 3 stars On line no 5 there are 1 stars * *** …

Member Avatar for javaAddict
0
124
Member Avatar for plowguy

First time posing on this forum. Need some help performing simple math with date functions in C#. Having problem with defining an integers value for search end span markers. i.e. EndSearch = today BeginSearch = (today - 14 ). I have tried using DateTime like this DateTime EndSearch = new …

Member Avatar for plowguy
0
77
Member Avatar for vodkasoda

OK, this is probably very simple and it's likely that I am very simple, but it's bugging me big time :$ !!! I have never written anything in VB before, a few things in VBA, but this is my first venture in to VB.net ... so sorry if I am …

Member Avatar for vodkasoda
0
2K
Member Avatar for cengineer

I have the following code to generate combinations of string for a small list and would like to adapt this for a large list of over 300 string words.Can anyone suggest how to alter this code or to use a different method? Basically what i need to do is generate …

0
104
Member Avatar for girlscodetoo

Hi Guys! I am a Python noob. I wanted to merge data and eliminate duplicates. I have the solution. Now I am stuck at dumping the dict contents to MySQL. Any help is really appreciated. Data : [QUOTE]a b c d e f key dupe -------------------- 1 d c f …

Member Avatar for girlscodetoo
0
184
Member Avatar for Trents

Okay, so I am EXTREMELY new to programming and my teacher is not exactly a great one, sadly. I am attempting to sort a string alphabetically. For example: Prompt to enter name: Alex Joe John Bill Cait Then sort and print: Alex Bill Cait Joe John Here's what I have …

Member Avatar for invisal
0
147
Member Avatar for JJBallanger

Hi there, As a student I am new to python and am struggling with the following program I have been tasked to create. My code so far is like so. The idea is that the function will take a guess x, incorporate an arbitrary function f(x) and then take feps, …

Member Avatar for JJBallanger
0
231
Member Avatar for empror9

hello guys, i want to programming a simple game. please see these picures first picture: [URL="http://img519.imageshack.us/img519/6323/boardf.jpg"]http://img519.imageshack.us/img519/6323/boardf.jpg[/URL] second picture: [URL="http://img151.imageshack.us/img151/9964/18245360.jpg"]http://img151.imageshack.us/img151/9964/18245360.jpg[/URL] last picture: [URL="http://img25.imageshack.us/img25/3871/21456530.jpg"]http://img25.imageshack.us/img25/3871/21456530.jpg[/URL] "Jump over a token and capture the token. Every move must be a jump! Only horizontal and vertical moves are allowed, no diagonal movement in the game. The …

Member Avatar for Salem
0
121
Member Avatar for scratchwiz

[CODE]private void eaddbtnActionPerformed(java.awt.event.ActionEvent evt) { if(eaddbtn.getText().equals("Add")){ eaddbtn.setText("Save"); eupbtn.setVisible(false); // edeletebtn.setVisible(false); ecanbtn.setText("Cancel"); } else{ Enrollment e = new Enrollment(eid_txt.getText(),ecode_txt.getText(),egrade_txt.getText() , emarks_txt.getText() ); // ERROR APPEARS IN HERE e.SaveEnrollment(); } } [/CODE] i want to add int value to mysql database...how can i do that? how to convert int value to string …

Member Avatar for scratchwiz
0
148
Member Avatar for SKANK!!!!!

like im at [url]http://www.mysite.com/thispage.php?black=acolour[/url] and i need the whole thing in the variable not just the mysite.com/thispage.php i need the variables. NOW the pages variable names will be changing so i cannot count on them being the same name like "black" everytime. so far i have got [CODE]$fullurl = "http://www.mysite.com".$_SERVER[SCRIPT_NAME];[/CODE] …

Member Avatar for SKANK!!!!!
0
196
Member Avatar for azegurb

hi all i have a problem with file content copying. i have index.php and there are codes in it. i would like to create [COLOR="red"]indexa.php[/COLOR] and append[COLOR="red"] index.php [/COLOR]file contents to newly created [COLOR="red"]indexa.php [/COLOR]file thanks beforehands here is my file [CODE]<?php // This function shows your form function form(){ …

Member Avatar for azegurb
0
1K
Member Avatar for xylude

I have an if statement that is always evaluating true even if none of the conditions are true. It goes like this: if(condition1 || condition2 || condidion3) { //do stuff } For whatever reason even if none of the 3 conditions are actually true, it just runs anyway. Is there …

Member Avatar for theighost
0
114
Member Avatar for kristo5747

Greetings! I created this form that works like a charm, captures data in my db and sends email. Suppose user Joe hits the RESET button before he clicks SUBMIT, all fields are reset. If Joe hits the RESET button AFTER he clicked SUBMIT (e.g. to make a new submission)...nothing gets …

Member Avatar for kristo5747
0
122
Member Avatar for Midnite003

I have thsi script and I am trying to pass the variables to a form ... and have it email them but for some reason its not working ... can anyone offer a reason why it might not be or what I might do to fix it ? This is …

Member Avatar for digital-ether
0
175
Member Avatar for nikolaos

I have a public class change which holds the private static int [B]commonresource[/B] and the methods : public synchronized void [B]increment[/B](int inc) public synchronized void [B]decrement[/B](int inc) to handle the variable commonresource I have a main class which starts 2 new threads "nikos" , "fosses" with a constructor that takes …

Member Avatar for JamesCherrill
0
113
Member Avatar for tjfitz68

Hello, I'm likely overlooking something but I'm having a problem with a Decimal variable dropping a zero which is make the value incorrect. After a bit math, on other variables, I'm ending up with .9 instead of .09 While debugging, if I display the results of the calcuation it's shows …

Member Avatar for tjfitz68
0
73
Member Avatar for alabay2010

Hello everyone! I have task to write a program that would read a data from any txt file and visualize it on a bar chart using turtle module. I have to structure the program using modules and functions for nice design. The program must be fit for any other txt …

Member Avatar for TrustyTony
0
624
Member Avatar for einas

Write a class datetype it can perform the following operations on a date , in addition to the operation already defined : 1-set the month 2-set the day 3-set the year 4-return the month 5-return the day 6-return the year 7-test the year is a leap year 8-return the number …

Member Avatar for einas
0
164
Member Avatar for Lukezzz

I have a little spoky problem here. I really cant understand what it is. I am reading a file that is completely empty. But still the second MessageBox is showing this string: "22" I cant wrap my head around why if( line != "" ) is executing and no character …

Member Avatar for Lukezzz
0
110
Member Avatar for luvthug

I am having problem with the following code `public void grow(int size)`, can't seem to get it working import ou.*; import java.util.*; /** * Class DiscoLight * This class uses the Circle class, and the Shapes window * to simulate a disco light, that grows and shrinks and * changes …

Member Avatar for drohnwerks
0
590
Member Avatar for rena0514

my previous button does go to the previous file: [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; public class StudentAddress extends JPanel { private JButton submit, clear, next, display, previous; private JLabel first, last, street, town,state, zip; private JTextField fName, lName, hStreet,hTown,hState, hZip; private int studentCount=0, displayCount=0, i; //studentCount …

Member Avatar for moutanna
0
103
Member Avatar for nathanpacker

I have looked everywhere, I've figured out how to add x amount of days to the current date, or take away x amount of days from the current date. But let's say I have a date stored in my database as "0000-00-00", that is not the current date. How can …

Member Avatar for ripraw
0
194
Member Avatar for COKEDUDE

Could someone please tell me what these errors mean and how to fix them. [CODE]inputter.c: In function âget_next_tokenâ: inputter.c:21: warning: initialization makes integer from pointer without a cast inputter.c:17: warning: unused variable âcur_posâ[/CODE] [CODE]/* Get an RPN expression from the keyboard. * Accepts q as indictation that user wants to …

Member Avatar for jephthah
0
178
Member Avatar for bharattripathi

Hi guyz I have a problem with page-load event. When i m runing the website on local host it is working fine but On putting it to web space there is problem with page load event where on page load it is showing "Object reference not set to an instance …

Member Avatar for bharattripathi
0
83
Member Avatar for KozZZak

Hello, I have a problem, I needed a change from C++ to C#. help anyone? I made it from this: ( This is script in C++ [CODE]using namespace System; using namespace System::Text; using namespace System::Net; using namespace System::Net::Sockets; String^ chr(String^ str) { Char^ c = Convert::ToChar(Convert::ToInt32(str)); return Convert::ToString(c); } Int64^ …

Member Avatar for KozZZak
0
278
Member Avatar for fiaolle

Hi I'm trying to set a property in the User Control. I see that the property is set when I'm debugging. But when I'm using the property in a method in the User Control the property is set to 0 everytime. I don't understand why. Here is the code I'm …

Member Avatar for reach_yousuf
0
211
Member Avatar for empror9

hello guys, i have a simple question which is how can i declare a variable to accept character and number at one time for example, i ask the user to input 'a1' to do something waiting for you

Member Avatar for empror9
0
200
Member Avatar for khess

If you are a PHP, Zend or IBM fan, today Zend and IBM announce a major release for IBM i-Series Servers. Zend Technologies and IBM are working together to offer PHP solutions for IBM i customers. Today Zend announced Zend Server for IBM i, a Web Application Server for applications …

Member Avatar for theighost
0
883
Member Avatar for anumitadas

Can we make a software using Php As php is web development softawre I am confused :( Plz help

Member Avatar for hondros
0
62
Member Avatar for Fenlevi

Hi guys,I was interesting,how to write a function,to determine the nearest square number that is equal or greater to the length of the string( for example 16 is the next square number after 13) I don't even know what is the mechanism of this function:-/

Member Avatar for Robert1995
0
101
Member Avatar for dre-logics

I use: Visual Studio 8.0 Label design For MySAP I have created a barcode label and stored as [COLOR="Red"]barcode.lbl[/COLOR] This barcode.lbl has [COLOR="Green"]two fields[/COLOR]: 1. name = &Barcode& {variable barcode field EAN field 12} 2. name = &text1& {variable text field length character field (10)} I want to link textbox1.text …

Member Avatar for dre-logics
0
3K
Member Avatar for Mestika

Hi, I’m going to calculate a ratio between two entities but are having some trouble with the query. The principal is the same to, say a forum, where you say: A user gets points for every new thread. Then, calculate the ratio of points for the number of threads. Example: …

Member Avatar for svmvishnu
0
814
Member Avatar for tchiloh

i work with C#.net and mysql. i will fill a combo box with data from stored procedure. but i get only 1 value. how can i fill the combobox?

Member Avatar for tchiloh
0
669
Member Avatar for ale_jrb

Hi. I'm new to C++, and I'm having problems understanding a certain type of function argument. I wrote this code to try and understand it, and it didn't help much. :) [code=cpp] #include <iostream> using namespace std; class TestClass { public: int a ( TestClass arg ); int b ( …

Member Avatar for ale_jrb
0
103
Member Avatar for Ycefire

Hi there, I'm a beginner in ASP.NET with VB and I'm stuck on problem with a SQL query. I'd like to ask you for advice what does my page or config file miss. thats how my form looks like [CODE] <form id="form1" runat="server"> <div style="margin: 0 auto; width: 180px;"> <asp:Label …

Member Avatar for Ycefire
0
805

The End.