199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for infomanas

Hi, maybe can you can help me. I need to write a pascal a program [B]which would read text file from hard disk and would sort all text's words to 3 columns, and would save results to the another file. Let's say that we have no more than 1000 words …

Member Avatar for ExplainThat
0
249
Member Avatar for miguel40

How can I put "text" directly next to a variable in a URL? My variable is $bandodd. It will have a numeric value. In the resulting URL, I want the value of $bandodd to be right next to the text - "AA" - so it will look like this: "?size=32AA" …

Member Avatar for nav33n
0
102
Member Avatar for erichn

I am stuck to know how to design a database for an asp.net 2.0 project. I have a table with many fields. In addition to all the other fields (mainly text fields) I would like to keep track of 4 values: alt, sy, LaF, ord. Any combination of these values …

Member Avatar for erichn
0
98
Member Avatar for chubbs1900

Alright, in this situation I want to take a program that I wrote and modify it so it can take an integers and if any of the numbers are negative, it returns a negative number, but if all the numbers are positive, it returns their average. This is the program …

Member Avatar for WaltP
0
108
Member Avatar for kevinpovec

I am writing a program to convert ints to roman numerals. this is the function that gets called when the user enters a number. it works just fine for number 1-99, but then it will either crash, or give bogus data for any numbers higher that 99. any pointers as …

Member Avatar for WaltP
0
319
Member Avatar for Marauder_Pilot

I'm trying to go through an array of char where all the chars are numbers, convert them to int, add them together, and save them as char again. For example, char string1[10] ={'0','0','0','9','3','1','4','0','9','1'}; char string2[10] ={'0','0','0','4','1','7','4','2','6','5'}; should produce an end result of char string3[10] = {'0','0','1','3','4','8','8','3','5','6'}; However, it won't convert …

Member Avatar for Ancient Dragon
0
119
Member Avatar for Dean_X

Here is my problem. I have searched everywhere for help on this one. I haven't found any. So, I sat down and tried the best I could to write this code: Now I am stuck: Here is what I have so far: [code] #include <iostream> #include <iomanip> #include <fstream> using …

Member Avatar for WaltP
0
178
Member Avatar for tony.willson

We struggle to come up with a decent error handling function. I thought that I use a global variable $live to easily make a switch from testing to live. I will keep the function in an include file. I kind of got there to print a "user-friendly" message when the …

Member Avatar for hielo
0
104
Member Avatar for ceyesuma

Can any one tell my why the images[i] is not affective? [code] /* * TPanel.java * * Created on December 9, 2007, 7:42 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package keycards; /* * TPanel.java * …

Member Avatar for darkagn
0
179
Member Avatar for kamatatul

Hi. When i run a dephi 7 project the executable file is created with only 1.9mb size, actually it should have been around 7 mb. Can any one help me ?

Member Avatar for squidd
0
90
Member Avatar for rw0

I'm trying to get the CreateProcessA function to work, but it continues giving me trouble and more trouble. Here's the code: [CODE]#include <iostream> #include <string> #include <windows.h> // CreateFile(), CreateProcess(), OpenFile(), etc. and // STARTUPINFO, PROCESS_INFORMATION #include <ctime> // srand(), time(NULL) #include <cstdlib> // rand() using namespace std; string execute(const …

Member Avatar for rw0
0
101
Member Avatar for osva

Is there any way to do a permutation program with conditions.. like enter "n" girls and "m" boys can stand in a line but without two girls standind together or something like that... is there any algorithm to do this.. Thanks in advance.

Member Avatar for osva
0
240
Member Avatar for doublex

hi there, i try to map a file in memory, in linux, using mmap, so that what i write in memory will be written in the file as well. the piece of code looks like this [code=c] fd = open(argv[1], O_RDWR); if (fd == -1) { error_message(__FILE__, __LINE__, "'open' failed …

Member Avatar for doublex
0
125
Member Avatar for dotNetDummi

Hi experts, I need a validator in my gridview. When the user update a field in the gridview, I need to check if the email is valid. How can I do that? Below is my gridview. Please help. Thanks! [CODE]<asp:GridView ID="gv_retrieve" runat="server" AutoGenerateColumns="False" CellPadding="3" ForeColor="Black" GridLines="Vertical" Width="751px" OnRowEditing="gv_retrieve_RowEditing" OnRowUpdating="gv_retrieve_RowUpdating" onRowCancelingEdit …

Member Avatar for dotNetDummi
0
106
Member Avatar for alathea

Im trying to practice writing a small DB that involves three tables-internal users, external users, and a Rep (call rep) table to tie them together so if someone is partial to working with one of us it is notated. Here is what I have so far: Employees (for later down …

Member Avatar for alathea
0
88
Member Avatar for twickywabbit

Could someone help me with this code, I have syntax errors it appears. Here is the compiler's output: root@bowser03:/usr/include# gcc ouija.c -o ouja ouija.c:430: error: expected declaration specifiers or '...' before 'fp' ouija.c:432: error: expected declaration specifiers or '...' before 'fprintf' ouija.c:435: error: expected declaration specifiers or '...' before 'while' …

Member Avatar for Salem
0
152
Member Avatar for cs_tx_usa

Hi, I've been working on a program that reads two binary files, then each value of file1 is divided by each value of file2. My binary files are 8-bit grayscale image files that is each pixel has a value between 0 and 255. I read them into byte arrays. I …

0
84
Member Avatar for hosanna

i am trying to write some vba code to copy 200 workbooks from 200 folders on a network. example i have a directory called F Within F i have staffstreamA within STAFFSTREAMA i have 200 folders named as forth A1,A2,A3 ETC TO A200 Within folders A1 is a folder called …

Member Avatar for hosanna
0
82
Member Avatar for DaitoTsu

Hi again, This time am outputting some html using a switch statement, but the outputted html code is not acting as coded, seems a very strange error as in both the case statements (first and third) its plain html but the link is just not acting correctly, but the main …

Member Avatar for DaitoTsu
0
85
Member Avatar for ryy705

Hello, I need to create dynamic consent forms, meaning the admin should be able to upload a file and the visitor should be able to read the file and then hit the consent button. I don't have any experience with this. I don't see any such example in my text …

Member Avatar for ryy705
0
137
Member Avatar for Taffd

Hi everyone, Can anyone tell me the security issues when passing url parameters for a forum. I'm building my own forums using dreamweaver and as I understand it, using url parameters make the site susceptible to sql injection. Regards Taffd

Member Avatar for nav33n
0
102
Member Avatar for Savage221

Hello everyone. I have to write a program that needs to use generics. I'm basically just hoping someone can guide me in the right direction here. Lets say I need a program that loads different crates onto a boat. I have to have a boat class (generic class), then other …

0
82
Member Avatar for drew.haley

Can anyone give me an idea of how to run a console app and a windows form at the same time? Basically it's a game I'm creating and I want the console window to be the main game screen and the form for the map/game options/shortcuts. Thanks in advance, Drew

Member Avatar for drew.haley
0
71
Member Avatar for Lynxus

I don't know what the proper name is for it lol, but I have an assignment. I am fairly new to delphi. I understand the homework rules so I don't expect it all to be done I just need help in the understanding and feel free to help as much …

Member Avatar for Duoas
0
126
Member Avatar for lemme_live

Hey i have to create a vector in order to store shapes,in specific circles. but i have no idea of how to do such a thing. if anyone is able to help lemme know. thanks in advance.

Member Avatar for lemme_live
0
72
Member Avatar for balla4eva33

If I have this main: [CODE] { Matrix m1(3,3), m2(3,6), m3; Matrix m4(2,3); m1 = m1 + m2; m1.print(); m3 = m1 * m2; m3.print(); } [/CODE] then how do I need to adjust this implementation file to work with it!?(Right now I'm just trying to get the '+' '=' …

Member Avatar for balla4eva33
0
161
Member Avatar for mmonaco27

I'm writing a simple complex number class in c++ and we're supposed to overload the four arithmetic operators to work on complex+-/*complex, complex+-*/double, and double+-*/complex. This is easy enough, but I wanted to try and make it a little more generic and instead of coding for doubles, extending the functionality …

Member Avatar for mmonaco27
0
87
Member Avatar for Acidburn

Hey guys, How do you tell which type of GUI should you use ? I'm making a swing application but everytime I look at a Java example / tutorial they tend to use different ones for each example. Is there a reason? I'm guessing so which leads me to which …

Member Avatar for enes
0
103
Member Avatar for AskLeo

I have a client who's attempting to support a file upload script on several servers. All appear to have PHP configured with file_upload turned on, however *some* act as if it's not. This is an area I've not got a lot of experience in (yet) ... Any hints on what …

Member Avatar for Dsiembab
0
329
Member Avatar for Dha_King

when i use security trimming. i cant figure out whats wrong. Please help me =) secure/web.config its in a map called secure with admin.apx [code] <?xml version="1.0" encoding="utf-8"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <location path="Secure/Admin" allowOverride="false"/> <system.web> <authorization> <allow roles="Administrators" /> <deny users="*" /> </authorization> </system.web> </configuration> [/code] Web.sitemap [code] <?xml version="1.0" encoding="utf-8"?> …

Member Avatar for Dha_King
0
109
Member Avatar for Agentbob

I'm trying to change the font for the turtle graph. [code] def goto(x,y): turtle.up() turtle.goto(x,y) turtle.down import turtle turtle.tracer(False) turtle.width(3) goto(-270,270) turtle.right(90) turtle.forward(540) turtle.left(90) turtle.forward(540) turtle.left(90) turtle.forward(540) turtle.left(90) turtle.forward(540) goto(50,50)[B] turtle.write('testing')[/B] turtle.tracer(True) [/code] That's a box I created and I want to add text to it. I looked around the …

Member Avatar for vegaseat
0
1K
Member Avatar for koekie17

Hi, Simple query: [code]select * from MyTable where Id=123456;[/code] The first time I execute this query it takes 14 seconds. However, the second time I execute it takes 0 seconds. I wanted to clear the cache so the second execution takes 14 second just like the first execution. So i …

Member Avatar for koekie17
0
68
Member Avatar for people123

Here is my code, it is suppose to take the double num, round it, and return it using call by reference, but when i try to compile it gives me an ambiguity error at [inlinecode]round(i);[/inlinecode]. please help. [CODE=c++]#include <iostream> #include <cmath> using namespace std; void round(double &num); int main() { …

Member Avatar for people123
0
110
Member Avatar for sartann

am a new in c+= and i hve to do those two functins : strcpy and atoi functin....if anyone can help plz reply thanx alot

Member Avatar for Ancient Dragon
0
75
Member Avatar for ConfusedMuchMor

Can any boby explain to me in simple english why this I get this error "Compiler Error CS0118" I'm a beginner about to throw my machine out the window!!! Below is the code for my Calcultor & the code for the DLL i'm using!!!! using System; using System.Collections.Generic; using System.ComponentModel; …

Member Avatar for JerryShaw
0
104
Member Avatar for shenmue232

Hi guys Ive been having problems with calculations on arrays. What i want to do is times two numbers in an array for example: 4 x 4 = 16 Here's what i'm trying to do double timeArray[3]; cin >> timeArray[0]; cint >> timeArray[1]; answer = timeArray [0] * timeArray[1]; the …

Member Avatar for shenmue232
0
325
Member Avatar for EMUGOD

[CODE] private int[][] gameBoard; private int[][] scratchBoard; public Intboard(int[][] world) { gameBoard = world; scratchBoard = world; } public void updateBoard() { gameBoard = scratchBoard; } //...skipping a bunch of confirmed working methods... public void advanceOneGen() { for(int x = 1; x<gameBoard.length-1; x++) { for(int y = 1; y<gameBoard.length-1; y++) …

Member Avatar for Ezzaral
0
120
Member Avatar for smilyswapna10

how to disable the parent window when we open the child window. i have written this code but its working only one time.any one can help me s.html <html> <head> <SCRIPT > function popuponclick() { my_window = window.open("p.html", "mySelect", "status=1,width=750,height=450,resizable=no"); } </script> </head> <body> <form name="formSelect"> <P> <A HREF="#" onclick='popuponclick()' …

Member Avatar for ~s.o.s~
0
225
Member Avatar for controlsi

Ive been working on this program for a little while now. and i keep getting the error messages: proj6b.c:61: error: syntax error before '{' token proj6b.c:68: error: syntax error before '{' token ive looked over the code and cant seem to find were the problem is. I am also a …

Member Avatar for Ancient Dragon
0
118
Member Avatar for johnson7767

I am working on this program that will show interest in an account for each year for 10 years. I want to click on a button and it display the interest for each year for 10 years. The box shows up but the calcuations do as well. It all comes …

Member Avatar for ~s.o.s~
0
175
Member Avatar for aggagier

I know you use printf to print to the screen. What would I use to send the file to a printer using C++

Member Avatar for ithelp
0
211
Member Avatar for atish00

I am making a quiz show in C++ I need help in storing the answers of a quiz in a array like [QUOTE]cout<<"Q.1 Who is Known as the lady with lamp ?"<<endl<<endl; cout<<"A. Sonia Gandhi "<<"B. Florence Nightngle"<<endl; cout<<"C. Mother Tersa "<<"D. Madame Rozario"<<endl<<endl<<endl;[/QUOTE] So how do I Input the …

Member Avatar for ithelp
0
117
Member Avatar for ravi_forum

Hi Can any one help me what is the order of evaluation for the expressions in printf() function in C language..... I have sooo much confusion in the expression like a=10; printf("%d",a++ - a++); the output is -1 any one can help me how -1 is the output...... But when …

Member Avatar for Salem
0
922
Member Avatar for ilikecheese

I have an output in one format that I need to basically read line by line and reformat into another file. I was originally going to try do this in Java, but Java does not have a lot of good classes for text processing. Here is an example of my …

Member Avatar for radoulov
0
101
Member Avatar for ilikecheese

So I have text file that I need to reformat so I can import it into a spreadsheet. I was originally going to do this in Java, since I had a vague familiarity with it, but there are few good classes in Java that are useful for text processing, and …

Member Avatar for iamthwee
0
191
Member Avatar for Jakiro

[B][/B] If the user input a equation something like 2 + 2 * 2 + ( 2 - 2) infix expression. how i collect the data to stack? using string? someone can give the algorithm. I don't have idea to get the input.

Member Avatar for iamthwee
0
143
Member Avatar for Underdog67

Here's the code: [code] #include <iostream> #include <fstream> #include <iomanip> using namespace std; const int MAX_EMPLOYEE = 500; enum PayType{H, S}; struct EMPLOYEE { int idNumber; char name[21]; double payRate; short int numberDependents; enum PayType; }; int LoadMaster(EMPLOYEE& record); int main(){ int count; EMPLOYEE record; count = LoadMaster(record); cout << …

Member Avatar for iamthwee
0
118
Member Avatar for cessna172

[code=c] #include<stdio.h> #include<stdlib.h> struct sales { int week; char name[20]; int units; int price; }; int main () { char data1[300]; int itemAmount = 0; char itemNumber[10]; int timeToFinish = 0; int elapsedMinutes = 0; int iLoop = 0; int readCounter = 0; int finishTime[20];//holds the finish items int counter …

Member Avatar for invisal
0
131
Member Avatar for chauhansanjiv

Hi Frnds, Can Anyone tell me, how can I , [B] Change the BACKGROUND color of selected text in TEXTAREA[/B] sanjiv

Member Avatar for MidiMagic
0
107
Member Avatar for HailttRedskins

I got the coding for uploading files to my website throug a simple browse option off a page. I choose the file upload size to be 150mb, but it wont allow anything under 10mb it seems. I am real good friends with my host, he told me something like, it …

Member Avatar for Dsiembab
0
165

The End.