199,114 Archived Topics
Remove Filter ![]() | |
[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); … | |
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 … | |
#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) { … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 : … | |
Hey, How do I use the Windows forms designer, and produce native code? | |
[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 … | |
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. … | |
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" … | |
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 … | |
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 … | |
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 … | |
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) , … | |
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] … | |
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 | |
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 … | |
//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) … | |
[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; // … | |
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 | |
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 … | |
Why this Error may happend? I have to readjust huge application and I need the most supposed possibilities which make this kind of error. | |
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 = … | |
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 … | |
[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. | |
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 … |
The End.