199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MrBentley

[CODE]#include <stdio.h> #include <string.h> #include <ctype.h> int getemail (char * email); int getfirstname (char* firstname); int getlastname(char * lastname); int getphonenumber (char * phone); void main () { char email[30]; char firstname[80]; char lastname[80]; char phone[15]; int namevalid; do { namevalid=getfirstname(firstname); if (namevalid ==1){ printf("You entered: %s, A good name\n",firstname); …

Member Avatar for jonsca
0
211
Member Avatar for Rickay

I am fairly new to programming but have been working on putting together a group of functions into one program. It is coming along nicely, but for some reason I can't get the loop on the divisibility function to work properly. When you prompt it to quit to return to …

Member Avatar for jonsca
0
172
Member Avatar for sisterjo

#include <fstream> #include <iostream> #include <iomanip> int main() { int index; int counter=0; double comparison_variable; float numbers; double array_numbers[10]; // an array with 10 floating points for(index=0; index < 10; index++) { cout <<"enter array_numbers"<< (index +1)<<":" ; ERROR: undeclared (first use this function cin >>array_numbers[index]; if(index > 0) { …

Member Avatar for tesuji
0
101
Member Avatar for genie0582

Hi, I use Runge Kutta to solve for ODEs. (Thanks for someone who provided this runge kutta code. I'm sorry if I didn't put a credit here) I was wondering why when I set TIME 75, the result of y[3] becomes negative at the time around 70+. it is supposed …

Member Avatar for tesuji
0
117
Member Avatar for Andreas5

Hello again, i just finished excersise 11-6 in Accelerated C++. Through this chapter the book emulates a simplified vector class, and as a excersise i have written an erase() member function. My solution allocates new memory, with the size of the original minus the size of what i erase. Then …

Member Avatar for Andreas5
0
190
Member Avatar for Duki

Hey everyone, I have an excel file I'm trying to work with. I can open it, write to it, and save it fine. But now I'm trying to work with adding sheets, and modifying the names of those sheets. For some reason though, my app keeps locking my excel files. …

Member Avatar for nick.crane
0
107
Member Avatar for ChPravin

Hello All, I recently came across this question asked in one of Google Tech Interviews.I am not able to think as to how to proceed on this.Any suggestions will be greatly appreciated. Question-Write code to check whether every element of an array has been visited (you are given a starting …

Member Avatar for TrustyTony
0
1K
Member Avatar for maria99

Hi I run a c++ program in VC++ 2008 expression edition. The program was running perpectly in VC++ 6.0 edition. But when i execute the program in VC++ 2008 expression edition, the following error is shown Debug assertion failed Expression: Vector subscription out of range. I define the two dimentional …

Member Avatar for maria99
0
383
Member Avatar for sunilmp

Hi all, I m designing a hospital management project, and I need to provide unique id to every patient. The requirement from our client is that the format of this unique id is: ddmmyyxxx. For example, 080710001, 080710002 etc Here is what I did: concat dd mm and yy strings. …

Member Avatar for d5e5
0
259
Member Avatar for Duki

Hey everyone, Does anyone know how to specify which sheet you're going to be modifying in an exel worksheet? For example, if I have an Excel file that has 5 sheets, and I want to modify (4,7) on sheet 3, how would I do that? Here's what I have so …

Member Avatar for nick.crane
0
207
Member Avatar for vlad44

hi everbody, i;ve made a file of size 128MB and fill it with nulls except for a part whose offset is (655424) i fill it with integer numbers from 1 to 129407 then i try to read an object of structure from it where that structure consists of four integer …

Member Avatar for vlad44
0
148
Member Avatar for QWaz

Hi, I am using some code that I use pretty much most of the time for every insert. However now I am getting this error and have no idea why this is happening. SQLSTATE[42S22]: Column not found: 1054 Unknown column 'NULL' in 'field list' My code is below. [CODE] $id …

Member Avatar for sourcebits
0
515
Member Avatar for raju_boini525

hi all, i am new to wordpress. i am developing one sample theme. i created 5pages. i dont know how to set my home as index page. when i click my theme logo it must redirect to index.php it redirected but dynamic home page content are not displayed it displays …

Member Avatar for sourcebits
0
198
Member Avatar for xnukerx

Hi, I have a forum when members posting a lot of images links. I would like to organize the page but I don't really know how since I'm lack the knowledge of php :| . Here it how it's look like now: IS: [url]http://img78.imageshack.us/img78/3997/123.jpg[/url] [url]http://img78.imageshack.us/img78/3997/12345.jpg[/url] TP: [url]http://i42.tinypic.com/123.png[/url] [url]http://i42.tinypic.com/123.png[/url] and so …

Member Avatar for sourcebits
0
122
Member Avatar for neotaunter

Please help... This is driving me nuts. I have been searching for an answer to this for a few days now. In c... How do you stop a line feed or new line after pressing enter for an input. I want the printed information to appear on the same line …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for jeevsmyd
Member Avatar for TrustyTony
0
1K
Member Avatar for Mr Programmer

Hi... :) I have only [B]1 LABEL[/B] in my form. There is [B]no text in Label1[/B]. I want that when i run the project, the label has any [B]word or number[/B] in it like '[B]1[/B]'. I want that when i run the project [B]AGAIN[/B], the [B]word or number[/B] in the …

Member Avatar for trpsjt2008
0
119
Member Avatar for cleve23

i saw from this forum on how to make line number in python but where should i paste the code into???i pasted the code in my gui code and no numbers appear out??Can anyone help me???i am a beginner in this. Thanks. [CODE]import wx,os,re ID_OPEN=102 ID_SAVE=103 ID_SaveAS=104 class MainWindow(wx.Frame): def …

Member Avatar for vegaseat
0
595
Member Avatar for RaniThomas

Hi All, Can i Compile a java program without a single line in a main method. If s, how it works. Please explain. Help Me.

Member Avatar for Taywin
0
158
Member Avatar for gampalu

Hi, I am trying to load an image into an applet, however unsuccessfully. What's wrong here? [CODE]package sess31; // Import the AWT graphics package import java.awt.*; import java.applet.*; public class myownapplet extends Applet { Image image; public void init() { // Load image //image = getImage(getDocumentBase(), "show14.gif"); } public void …

Member Avatar for Alimuzzaman
0
695
Member Avatar for kalpa23

c# ,webforms,vs2003, frames i have a web form that have two frames top frame and main frame and the top frame contains all the links to the pages wich is loaded in the main frame and lets say i have 2 web forms (webform1 & webform 2. my problem is …

Member Avatar for nick.crane
0
244
Member Avatar for fraenckel

I'm writing an application to catalog a very large number of files (2 million+ files)on a share drive. For each file in the directory tree, I'm adding a record to a mysql database. The share drive is active, in that files will be regularly added; thus the app will need …

Member Avatar for rch1231
0
146
Member Avatar for Dan08

Is there a way to delete every n bytes from one point to the first byte? This s quite confusing. What I've done: [CODE]a = open("file.txt","r") b = a.read() a.close() findit = "WIN - PLACE" texto = b.find(findit)[/CODE] And now I need to delete everything before "WIN - PLACE", its …

Member Avatar for TrustyTony
0
180
Member Avatar for ayesha789

Hi, this is my query. I calculate difference of 20 days from pDate(Process Date) form today. But I want if rfDate(Resubmitted date) it will count from rfdate and ignore Pdate. [CODE=mysql]SELECT * FROM `lims_payment` WHERE TO_DAYS( NOW( ) ) - TO_DAYS( `pDate` ) >20 AND rfDate LIKE '0000-00-00'[/CODE]

Member Avatar for rch1231
0
165
Member Avatar for chinee

i created a flash screen but all i could get is a blue screen not even the picture is comin up and not even the menu is coming up.and plus there are errors from place order to change order with the variable and the equal sign. so can any one …

Member Avatar for NormR1
0
250
Member Avatar for doomas10

Hello all, Quick question-i am trying to write a programs whcih calculates the average of the numeric values of words that appear multiple times (if a word appears more than once then i want the average of its values). I do not get an error but instead only the sum …

Member Avatar for woooee
0
120
Member Avatar for Derrin

Hello everyone and thanks in advance for your help. I am having trouble with a piece of java code for class and have asked the insructor for help and he has only helped in confusing me further. The assignment was due Sunday and I have been in the hospital since …

Member Avatar for JamesCherrill
0
178
Member Avatar for rayborn66

Hey guys need as much help as you can give me cause I need to turn this in by midnight. I am trying to do this: You are to write a program that will input English text translate it into Pig Latin, then output the result to a file Pig …

Member Avatar for Aranarth
0
778
Member Avatar for doS!

Hi, yesterday i downloaded a script. Now, im installing it on my website, but when i load index.php page and all the page where config.php is included, it say that: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mhd-01/www.newsict.com/htdocs/config.php on line 13 this is config.php : …

Member Avatar for it200219
0
181
Member Avatar for bbman
Member Avatar for Ancient Dragon
0
103
Member Avatar for Sandeep929
Member Avatar for anerchy

[CODE]private void checkBox1_CheckedChanged(object sender, EventArgs e) { sayi = double.Parse(textBox1.Text); sayi = sayi * 2; string a; a = sayi.ToString(); textBox1.Text = a; }[/CODE] here's a little code. when I enter a number and click on the checkbox,it multiplies the number by 2. but when I toggle it, it does …

Member Avatar for anerchy
0
75
Member Avatar for bbman

Hi, folks. I'm not a C# programmer, but for now I have the task of translating a short PHP script into C#, and I'm hoping someone here will be able to help me. The goal of the script is to bundle and minify JS and CSS files on the fly. …

Member Avatar for nav33n
0
380
Member Avatar for thewannabe

Hello there. My aim is to use the Flickr API to extract details of only one photograph given a set of keywords. I have the request URL which (in a browser) returns XML much like the following: [CODE]<rsp stat="ok"> <photos page="1" pages="8951" perpage="100" total="895061"> <photo id="4503248539" owner="33965274@N08" secret="b60e5fcc27" server="2774" farm="3" …

Member Avatar for microtrends
0
313
Member Avatar for shena

Hi friends, I have a form with 8 textfields. Textfield1 is combo box. Thus, when user chooses an item, Textfield2 and Textfield3 automatically retrieve value from DB and fill in the textfields (in lostfocus event). Then, user will add running number behind Textfield3. After that, fill in the rest of …

Member Avatar for vb5prgrmr
0
188
Member Avatar for Pokenerd

Hi guys, I'm having a bit of trouble with a bit of trig in C#. I've written code similar to this in actionscript3 (flash), but it is giving me issues in C#. I am not receiving errors, but all the shapes I rotate are somewhat screwed up. Here is the …

Member Avatar for nick.crane
0
906
Member Avatar for patr1c1a

I'm trying to update an Access database by using an OLE connection, retrieving the information from textboxes where the user enters the new information. All the fields in my Access table are required fields, so I have validated that some info is entered in each one of the textboxes and …

Member Avatar for G_Waddell
0
186
Member Avatar for santoshj.1983

There is a problem like I have 3 arrays i,j, & k ( the array count can be anything) i j k _____________ 2 4 7 3 5 8 6 9 A combination has to be created like (2,4,7) , (2,4,8) , (2,4,9) , (2,5,7) , (2,5,8) , (2,5,9) , …

Member Avatar for Lusiphur
0
86
Member Avatar for benhowdle89

Hi, I'm developing a php script that reads data from a mysql db and then puts the data into csv format to then be sent upto Pachube.com for a web app i'm developing. This is a simple problem i'm sure but i cant seem to solve it! Code below: [CODE] …

Member Avatar for benhowdle89
0
167
Member Avatar for moddie

Hi, I'm trying to create an applet that allows users to login with their usernames/passwords. Users will also be allowed to register a new account. Question is, how do i create this? Where do i store the username and passwords? Thanks in advance

Member Avatar for NormR1
0
144
Member Avatar for dhawalchauhan

Hi I need an urgent help...... I Have made a project on C# where i have use MS-SQL as a database....after that i have published the program which creats exe of my program.......after creating exe 1) I download .net framework 3.5 to friends computer. 2) Then i install MS_SQL Server …

Member Avatar for srikaaanth
0
88
Member Avatar for csha_cs508

//Program that computes for the salary of the employee [CODE]#include <iostream> using namespace std; int main() { int EmployeeCode; float WeeklySalary, HourlyWage, NumHoursWorked, Overtime; cout<<"Enter Employee Code: "; cin>>EmployeeCode; if (EmployeeCode==1) { cout<<"Enter Weekly Salary: $ "; cin>>WeeklySalary; WeeklySalary = WeeklySalary; cout<<"Weekly Salary is: $ "<<WeeklySalary; } else if (EmployeeCode==2) …

Member Avatar for Fbody
0
2K
Member Avatar for wiegmale

[CODE]#ifndef ARRAYLIST_H #define ARRAYLIST_H #include <iostream> using namespace std; template <class ItemType> class ArrayList { public: enum SortOrder {ASCENDING, DESCENDING}; private: typedef ItemType* pItemType; typedef pItemType* ppItemType; ppItemType items; size_t count; // Finds the index of the next item in order. size_t FindNextIndex(const int start, const SortOrder order) const; // …

Member Avatar for mitrmkar
0
158
Member Avatar for Mikey12345

Hi, Is there a frequency function in C# like there is in Excel. I need to show a distribution chart in bell curve form. Thanks

Member Avatar for ddanbe
0
1K
Member Avatar for fenhopi

I have this code that searches for a set of numbers in my textfile. When it finds those numbers I want it to print what's on column 5 to 12 in the same line. Is this possible to do? I've been looking for an answer for ages now, and I …

Member Avatar for G_Waddell
0
94
Member Avatar for Carolus89

Why this Error may happend? I have to readjust huge application and I need the most supposed possibilities which make this kind of error.

Member Avatar for Carolus89
0
9K
Member Avatar for Agent Cosmic

What's the the difference if I were to use "this.x=y" instead of just "x=y"? All I know is that this refers to the object created from the class. Also what's the difference if I were to use "this.method()" as compared to creating a new class like so, "Class cs = …

Member Avatar for JamesCherrill
0
101
Member Avatar for hims4u

Hello mods!!This problem is really frustrating me now!! i already know about ur tutorial on MVC Connection but i do not want to follow it since it is very complicated for me to understand and implement. So i have written a code (Ora.jsp) to connect to Oracle XE on my …

Member Avatar for musthafa.aj
0
419
Member Avatar for idb_study

[CODE]#include <stdio.h> #include <stdlib.h> /*(*void)displayValue(char* );*/ void main() { char* userInput = (char*)malloc(sizeof(userInput); printf("\n\nEnter : "); scanf("%s", &userInput); printf("\n\nEntered : %s\n\n",userInput); } [/CODE] I have got core dump by running this code. Please suggest.

Member Avatar for mitrmkar
0
305
Member Avatar for pritesh2010

hello everyone. can any one tell me how to delete recored from gired view dynamically. in my program i have one gridview and sqlDatasource in this i have 4 label and one button.Label shows name, date, title and description and button for delete. all this is done at source view …

Member Avatar for prashantchalise
0
118

The End.