199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for niro_fernando

i m new to php , i want to know how get data from multiple textboxes ,can i name text boxes as like a array, is it correct ,and how to display them i return them like this echo $_POST[txtName[0]] but it is not working , plz help me this …

Member Avatar for niro_fernando
1
1K
Member Avatar for Piya27

Hi All, Can anyone please suggest some good tutorial for SilverLight Business Application (in C#) ASP.NET???

Member Avatar for Piya27
1
119
Member Avatar for Namibnat

[COLOR="Red"]Note two things: First off, I don't guarantee that it works well. Writing to files, if done wrong can always break things. Be careful. I mostly participate in this forum (the Python part) for fun, and my code is written like that. Second: this script is about copying things. I …

Member Avatar for Namibnat
1
822
Member Avatar for fragtech

I wrote a program that compares two strings and tests to see if they are the same. Case difference doesn't matter. The problem is this: When the program is run it works only half the time. The other half the program doesn't wait for the second string to be entered, …

Member Avatar for zobadof
1
104
Member Avatar for bgspace

Hello I have a little problem. I have to make a single task for the school. Here the condition of the task: Elaboration of a program with which to process the source texts of arbitrary C progams, saved as file structures. Should be created and creates and displays statistics on …

Member Avatar for jephthah
1
326
Member Avatar for bonzi200x

I need to implement a huge array of 2100000 integer elements. I have to find duplicate elements in this array which means there will be lot of search. Can you please suggest me an efficient way to implement this? What collection to use and how to search.

Member Avatar for JamesCherrill
1
113
Member Avatar for aarya

i have experience in php but i need to persue my career in JSP. Anybody suggect the site where i get jsp freelance project. i am ready to project free also.i have very good knowledge in j2ee application(swing.struts,ejb,javabeans) and have very good knowledge in web technology.

Member Avatar for peter_budo
1
179
Member Avatar for jonathanYoung

allrighty, this MAY take a bit to answer, but i have here a standard visual c++ function that clears the screen, i found off the internet. what i need, is some help knowing what all the different functions inside do.... since codes useless unless you know what it does :) …

Member Avatar for Clinton Portis
1
426
Member Avatar for Dave Sinkula

In [URL="http://www.daniweb.com/forums/post1071291.html#post1071291"]another post[/URL] I found the following construct: [CODE]#define STATIC_ASSERT(condition) \ do \ char foo[condition] = {0}; \ while ( false );[/CODE] First, I had to do a [URL="http://clusty.com/search?query=static%20assert%20compile%20time"]search[/URL] to see whether "static" meant "compile-time" here (that poor keyword [I]static[/I], it's got too many overloaded meanings in C and C++). …

Member Avatar for jephthah
1
184
Member Avatar for mloC

This Program is supposed to get a filename, title and description of a database and then store it to and appropriate filename. [CODE] #include <fstream> #include <iostream> #include <cstdlib> #include <string.h> #include<ctime> #define MAX_FILENAME 256 #define MAX_INIT_NAME 1024 #define MAX_DESC 1024 using namespace std; class date { public: int DAY; …

Member Avatar for mloC
1
96
Member Avatar for hotice47

Hi .. i am new in programing and i need to solve this problem ..so far i have done few things but there are some thing missing which i can understand ....so plz help.. The program is to be used to calculate the loading on a beam by a single …

Member Avatar for hotice47
1
138
Member Avatar for halluc1nati0n

[CODE]#include <stdio.h> #include <fcntl.h> #include <iostream> using namespace std; int main() { int fd, i, oflag; char buf[100]; oflag = (O_RDONLY); fd = open("from4to5", oflag, 0x1c0); if (fd < 0 ) {printf("Error opening\n"); exit(1);} while ( (i = read(fd, buf, 16)) != 0 ) { cout << "child: # bytes …

Member Avatar for halluc1nati0n
1
309
Member Avatar for TimeWalker

Here's the code that increases x value by 0.01 increment and outputs: x, placeholder for initial x+t and how many loop cycles it took to find a solution to the equation in function f1() in intervals for temp (0.5 ; 1.0)U(1.0 ; 1.5). [code] #include <iostream> #include <cstdlib> #include <cmath> …

1
60
Member Avatar for matmeister

The problem: Palindromes are words or phrases that read the same backwards as forwards. Write a C++ program that indicates whether each line on an input file, called sentences.txt and given on my homepage, contains a palidrome. Those lines of sentences.txt that are palidromes should be written to an output …

Member Avatar for zobadof
1
334
Member Avatar for klactose

Hello all, I am getting the following run-time error every time I try to run a program I've converted from Lisp to C#: [QUOTE] System.InvalidCastException was unhandled Message="Unable to cast object of type 'System.Single[]' to type 'System.Collections.Generic.List`1[System.Single]'." [/QUOTE] In the function below the problem is occurring at line 16. The …

Member Avatar for privatevoid
1
242
Member Avatar for Ggiirr

Hello everyone, I'm new here. I was working on a homework problem for a basic intro to C class and I'm getting a syntax error for an if statement and I have no idea why it's popping up. [code] #include <stdio.h> // Function Declarations int Sum (int x); float Average …

Member Avatar for Ggiirr
1
145
Member Avatar for samipa

excuse me but i wrote this code for it could u cheek it pleaze [CODE]#include<iostream.h> int binarysearch (const int [],int , int ); const int arraysize=10 ; int a[arrayaize] ; int searchkey; for (counter=0;counter<arraysize;counter++ ) a[counter]=2(counter)+1; cout<< "enter your search key : " ; cin>> searchkey ;[/CODE] idont know what …

Member Avatar for tkud
1
87
Member Avatar for greko2009

Hello, I have a binary file of this format: 1st 2 bytes = total number of entries (This appears only once at the file beginning) Then each record is of the following format: 2 Bytes = Entry no. 2 Bytes = Entry category 2 Bytes = Description length n Bytes …

Member Avatar for greko2009
1
321
Member Avatar for MRWIGGLES

Writing my own turtle class (I understand that Python has it's own turtle class, but this is for an assignment) with an imported graphics.py to draw a koch snowflake and c-curve. What I have came up with so far are all the functions I need. I just need some assistance …

Member Avatar for Lardmeister
1
153
Member Avatar for DdoubleD

Hi. I decided to try out the Report Wizard, having only worked with Crystal Reports prior, and when I try to connect to an Access DB with the default OLE DB data provider, I get "Unspecified Error" in the Add Connection dialog upon "Test Connection" or trying to accept the …

Member Avatar for DdoubleD
1
166
Member Avatar for llemes4011

This is a very basic implementation of a Julia Set Fractal Generator. All of the variables are coded in, so feel free to change them to experiment with different results. I give an explanation of Complex Numbers and the Complex Plane, but you should look it up for your self, …

Member Avatar for andreshani
1
2K
Member Avatar for shmeeps

Basic, I'm trying to read in a file that has lines of data, where each set is on a new line, and each variable is separated by whitespace, save for the name, which can have multiple white spaces. Here's basically my code, the parts that matter. [code] #include <stdio.h> #include …

Member Avatar for shmeeps
1
186
Member Avatar for arsenal23114

Hello all, on an assignment my professor has asked us to "paint" a few different shapes on a canvas. (square, rectangle, circle, ellipse) to keep it simple, I had no problem breezing through the square and rectangle. to help you understand, here's a bit of code from one of the …

Member Avatar for mrnutty
1
92
Member Avatar for DimaYasny

Hi all, I'm helping my girl out with her hw, (/me not knowing C at all, but someone has to help, right?) I am supposed to read user input, and then try to execute a given command plus the arguments in every given $PATH. I managed it all, but I …

Member Avatar for DimaYasny
1
296
Member Avatar for fabfour

hello guys and girls, as it's going to be quite obvious i'm not going to lie to you, this is coursework - however i really struggle with the programming aspect of my course and although repeatedly reading chapters in savitch's c++ guide and trying to understand my teacher i'm finding …

Member Avatar for mrnutty
1
139
Member Avatar for ssheck1034

This is the first time I have done this, I hope I am doing it correctly. If not, guide me toward proper etiquette. I am a beginner, intro C++. I received a message from the compiler that I don't know how to fix. My question is where is the error?, …

Member Avatar for Narue
1
66
Member Avatar for Gribouillis

Joining together ordered sample points (xi, yi) when ths xi's are different yields a piecewise linear continuous (P1) function. This snippet defines a handy class to manipulate these functions. It allows computing the value and the slope of the function at each point, arithmetic operations, absolute value, truncation and linear …

Member Avatar for Gribouillis
1
598
Member Avatar for 15389049

I am creating a page to search for a user in a database and display the results in a gata grid (Which i have done) Then i would like to select one of the results and use this record by holding it as a variable and pass it back into …

Member Avatar for 15389049
1
176
Member Avatar for tasky23

I am writing a program that can read in statistics from a basketball team. The file lookes like this: Joe 3 114 9-19 1-3 2-4 3 15 4 2 1 2 3 21 I have created an array of structs to read all of them in I used ifsteam infile2("file.txt") …

Member Avatar for jonsca
1
133
Member Avatar for jeet_portal

Hi... I have a small doubt about php print statment. pls let me know if there is any reason Here is a doubt for me. [CODE] <?php $a=08; print $a; ?> [/CODE] why its output is 0.

Member Avatar for jeet_portal
1
109
Member Avatar for momo219

So... I have a 2 Table (mysql) Db. Table 1 = (sub)Menu, Table 2 = Images per (sub)Menu. Typical scenario - new.php - loads a form with a MENU ADD form, and a List of current Menus (with Edit and Delete). Edit loads Edit.php, with MENU Edit form (id got …

Member Avatar for momo219
1
1K
Member Avatar for shahab_abbasi

HI All, I am facing one problem that i have to do a vertical span for the table columns. But i am not getting any way to solve this problem. My input xml is as follows:- [CODE] <tabular frame="all" colsep="1" rowsep="1" orient="port" id="ctab1"> <tgroup cols="3" tgroupstyle="tabular" colsep="1" rowsep="1" align="left" charoff="50" …

Member Avatar for witinnovation
1
277
Member Avatar for Mitja Bonca

1. My namespace is called "MyNameSpace". So... How to create that Form3 will inherit from Form2, which is already a child of Form1 (Form2 has class: public partial class Form2 : Form) I would like to creat like: class Form3 : Form2 And do not forget, all are windows forms. …

Member Avatar for Geekitygeek
1
255
Member Avatar for sciwizeh

Hello all, As you may know by now, from my previous posts recently, I am working on a Paint application. My question, then, surprisingly does not involve Graphics or Swing. So my question is this: I would like to be able to have a directory such as "APP_HOME\tools" or something …

Member Avatar for sciwizeh
1
135
Member Avatar for stefanief

I am trying to write a point of sale program. I need to display the menu, the operator enters the lunch order. Total bill is calculated with sales tax, customer payment is accesped and change (if any) is calculated. order summary should be written to a log file that includes …

Member Avatar for jonsca
1
116
Member Avatar for abd2

hi, this is the code for switch:[CODE] include <stdio.h> main() { int i=2; switch(i) { case 1; printf("i am in case 1\n"); break; case 2; printf("i am in case 2\n"); break; case 3; printf("i am in case 3\n"); break; default; printf("i am in default\n"); } }[/CODE] and this is the …

Member Avatar for mrnutty
1
156
Member Avatar for shenberry

I have a simple time tables that goes from 1 - 100. It takes like 6000 seconds to run. I figured I could break this down into a a multi thread program main thread for(int c = 1; c < 101; c++) { cout << c << "| "; for(int …

Member Avatar for shenberry
1
154
Member Avatar for grib

First off, I'm a complete and absolute programming newbie and a bit of an old fart to boot, so I'd appreciate a gentle-but-firm correction if I'm pushing the wrong buttons here. I'm slowly working through a used copy of Prata's C++ 5th edition, but something's not working in my version …

Member Avatar for Nick Evan
1
133
Member Avatar for Rsh>>>

[CODE=C] /* This program returns a run time error as follows: "Your code has stopped its execution with a non-zero (failure) exit value.This is generally due to run time Exceptions like Memory Access Violation and Floating Point Exception. Please check your code for run time Exceptions and try again." PLEASE …

Member Avatar for Ancient Dragon
1
90
Member Avatar for imagine88

Logic Used: Insert Pixel Data into a struct containing RGB values of the pixels read Data in a 3x3 array: | BGR(-1,-1) | BGR(-1,0) | BGR(-1,1) | | BGR(0,-1) | BGR(0,0) | BGR(0,1) | | BGR(1,-1) | BGR(1,0) | BGR(1,1) | Assign Average of all Blue,Green,Red components respectively to another …

Member Avatar for death_oclock
1
154
Member Avatar for saikatroy1985

As i am new to jsp, i need a solution for to connect login page with the database which is having username and password.

Member Avatar for peter_budo
1
100
Member Avatar for foxmulder

Hi everybody! I dont want to lie and say this isn't an assignment because it is, and I have really got stuck here. The assignment was to create a lottery-program which randomly displays 10 ordinary numbers and 5 extra numbers, all in between the interval of 1-50. The problem is …

Member Avatar for foxmulder
1
102
Member Avatar for wmsigler

My heapsort is not functioning the way it should, and I was wondering if perhaps one of you could help point me in the right direction. Much thanks in advance should you care to look! :) If it helps anyone, I posted it on pastebin.org with syntax highlighting: [url=http://www.pastebin.org/55997]http://www.pastebin.org/55997[/url] Source …

Member Avatar for wmsigler
1
167
Member Avatar for Doughnuts

Hi everybody, I have a problem with output files. I have installed Code::Blocks and MinGW, replacing my old Borland compiler. I am trying to make a program that uses arrays and files: [CODE]#include <iostream> #include <fstream.h> #include <conio.h> #include <string> #include <stdlib.h> #include <cassert> using namespace std; void Save(ofstream& f, …

Member Avatar for bamcclur
1
113
Member Avatar for nobodycool

Hello there, I am working on an assignment for school and I am having a hard time understanding the concept of an array of objects. I am required to create an array of Music objects so that I can search through them via a binary search and make changes as …

Member Avatar for javaAddict
1
147
Member Avatar for iDevelop

I'm new to using C++ but I thought I would give it a try. The goal is to delete all files and folders located in %userprofile%\Local Settings\Temp without deleting the folder called "Bluezone" located in the Temp folder. Any help would be appreciated.

Member Avatar for Excizted
1
130
Member Avatar for Stefano Mtangoo

I'm new to Java, but will eventually want to use GUI for my Desktop applications. So as usual in any language, GUI toolkits are "debatable". In Python (My current "mother toungue") We have PyQT vs PyGTK vs wxPython and it is a good debate. I would like to hear your …

Member Avatar for Stefano Mtangoo
1
179
Member Avatar for carlqt

hi i'm carl from the philippines. Would someone help me on a thesis topic for undergraduate in computer science. It seems that my prof is quite strict and wouldn't allow any topics to be approved without significance and without a CS problem (reason for choosing the topic). Sorry for troubling …

Member Avatar for ithelp
1
258
Member Avatar for samarudge

Hi, I need to create a function to shorten a numerical ID to a string of letters E.G. [code=php] echo encode_num('1'); //Outputs a echo encode_num('3'); //Outputs c echo encode_num('26'); //Outputs z echo encode_num('27'); //Outputs A echo encode_num('52'); //Outputs Z echo encode_num('53'); //Outputs aa echo encode_num('54'); //Outputs ab [/code] etc. But …

Member Avatar for samarudge
1
113
Member Avatar for Jelmund

Hello people :) My teacher gave me a new project to work on. I need to write an application that output all the letters of the alphabet in a random order. I've made some applications before but im still kinda new to this. Could any of you give me a …

Member Avatar for zortec
1
236

The End.