64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for emko

Hi, I have to make a program that takes an input text file and reverses the contents of that file, and outputs that into another text file. I am new to stacks, but what I have so far nothing happens, it just outputs a blank text file. I just wanted …

Member Avatar for emko
0
112
Member Avatar for Viruthagiri

Ok guys I'm getting trouble with my php echo command. All the codes after the first echo command, displaying in browser. I mean i have problem with my php echo. I tried in several scripts. I'm using wampserver 2.0. I've given the example of my error. Please solve it ASAP. …

Member Avatar for Viruthagiri
0
184
Member Avatar for baconswife

Hello, I'm new here and not quite sure what it means by wrapping code in code tags so for my future posts can someone let me know how this should have been formatted so it would be a correct post? My question is I have a program I am writing …

Member Avatar for Grn Xtrm
0
140
Member Avatar for Enders_Game

hypothetical say i have [code] for i in range(20): for j in range(20): for k in range(20): [/code] How could I != all fo them without writing 20 statements i !=j !=k doesnt work obviously (I have to compare 5 words so writing a seperate for each combination would take …

Member Avatar for Gribouillis
0
90
Member Avatar for Viruthagiri

Guys I have 2 files. index.php and connect.php I'm getting database connection error. This is the error i got [QUOTE]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in H:\wamp\www\index.php on line 3[/QUOTE] Then i added the error detection code in the third line. I got the following …

Member Avatar for richieking
0
202
Member Avatar for y2kshane

im developing a language converter so i want to do like this source | target (this is only example) aa | q bb | w cc | e im using netbeans ide i have a one textfield for input strings and textarea(i used textarea becoz i dont know how to …

Member Avatar for NormR1
0
174
Member Avatar for PDB1982

I can't figure out what the error means that I keep getting on my loop. I have it set to only take 5 arguments, which is my limit, but I can't tell what it's saying: [code] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4 at Duplicates.EnterNumbers(Duplicates.java:20) at Duplicates.main(Duplicates.java:28) [/code] Here's my code: …

Member Avatar for kvass
0
156
Member Avatar for jay1648

[CODE] #include <stdio.h> #include <string.h> typedef struct { char firstName[50]; char lastName[50]; int age; }Person; void ModifyPerson(Person*); int main() { Person person; strcpy(person.firstName, "firstName"); strcpy(person.lastName, "lastName"); ModifyPerson(&person); printf("First Name=%s\nLast Name=%s\n",person.firstName, person.lastName); system("PAUSE"); } void ModifyPerson(Person *p1) { //This doesn't modify the original variable declared in main function Person person = …

Member Avatar for N1GHTS
0
2K
Member Avatar for enfamos

I am in my second week of java programing and after reading the chapters I seem to be a bit lost this weeks assingment is [I]• Create a non-GUI-based Java application that calculates the payroll for a department in an organization. The application should display text that requests the user …

Member Avatar for enfamos
0
124
Member Avatar for NewOrder

what is the function that allows to accept typed input usually i right import java.io.*; but eclipse has got its own function . what is it?

Member Avatar for ~s.o.s~
0
81
Member Avatar for arjen

hello guys i have a question bout my sql. I create a system in vb.net using my sql database but the problem when i create a report using microsoft report viewer it does not detect mysql database whether i create a new connection..what is the problem??..

Member Avatar for arjen
0
157
Member Avatar for frank754

I've written a C# app in Visual Studio 2008 C# Windows forms which fetches the text html from a webpage and it works fine in most cases. I needed the multipart/form data, as the main interest is sending text queries back and forth from a test server in Visual Studio. …

Member Avatar for gashtio
0
166
Member Avatar for GDICommander

Hello, everyone! I'm not able to access a WSDL file on a remote machine. I am using DOSGI and I'm creating a service in a OSGI bundle. My container is Apache Felix. DOSGI takes care of exposing a OSGI service as Web services. DOSGI publishes a WSDL at [url]http://localhost:9595/prototype1Service?WSDL[/url] on …

Member Avatar for GDICommander
0
205
Member Avatar for NewOrder

i have questions abou the algorithm that i have got here: [CODE] public class BTreeEx3 { public static void main(String[] args) { BTree tree=new BTree(); tree.add(5); tree.add(6); tree.add(1); tree.add(19); tree.add(3); tree.add(10); tree.add(2); tree.print(); } } class BTree{ private Node head; // why is the head private? public void add(int info){ …

Member Avatar for JamesCherrill
0
123
Member Avatar for SeanBlack0000

//Cursor.h [code=c] #ifndef CURSOR_H #define CURSOR_H #include <stdlib.h> #include <iostream> template <class Object> class Cursor; // Incomplete Declaration template <class Object> class CNode { public: CNode( const Object & theElement = Object( ), CNode * n = NULL ) : element( theElement ), next( n ) { } Object element; …

Member Avatar for SeanBlack0000
0
214
Member Avatar for abelingaw

SOFTWARE: If i install a Payroll System made from VB6, would this be enough for its requirements..? [COLOR="Red"]SOFTWARE: Windows XP (Any Service Pack) MS Access 2003 or Higher HARDWARE: Hardware Requirements * 200 Mhz Processor * 128 Mb RAM or Higher * 100GB SATA (Serial Advanced Technology Attachment) Hard Drive …

Member Avatar for PoisonedHeart
0
1K
Member Avatar for chan py

i wan to create a table to show my sales report in vb,but we are not allowed to use datagridview what type of form we can use to show our sales report without using datagridview...?

Member Avatar for chan py
0
231
Member Avatar for ivan3510

Hi! Sory for my bad english. I don't know the name of it. Can you write. Thanks. See the picture (attached). Let's say that the name of it is "little window". I want to make on my site that this disappear, and when I something type, I want that this …

Member Avatar for ivan3510
0
97
Member Avatar for Xufyan

In my program I've created two methods , one with integr type and other with float (line # 20 and 29) !! [CODE]class Stack{ int StackArrayI[] = new int[2]; //0,1,2,3,4,5,6,7,8,9 float StackArrayF[] = new float[2]; //0,1,2,3,4,5,6,7,8,9 int tos=-1; public void push(int value){ if (tos==1) System.out.print ("Stack already Full..!\n"); else StackArrayI[++tos] …

Member Avatar for Xufyan
0
114
Member Avatar for chudapati09

[CODE]result = number1 / number2;[/CODE] I am new to C++, but I have some knowledge in Java. What my program does is, the program asks the user two numbers. The user could only select, one, two, or zero. Then the user would select an arithmetic operator: plus, minus, times, divide. …

Member Avatar for Stefano Mtangoo
0
36K
Member Avatar for rahman86

Hi everyone. This is my first post. I have a project to develop an assembler for my studies. The problem is I don't really know how the assembler really works and how can I develop one. It is assembler for mc68000 assembly language. If possible please provide me with a …

0
80
Member Avatar for burcin erek

wrong reading. wht I want is name and surname=burcin erek number=783389 but output name and surname=burcin number=erek it is so funny but no solution. #include <cstdlib> #include <iostream> #include <fstream> #include <conio.h> #include <string> using namespace std; void file_read() { string name1; string numb1; ifstream f("file1.txt"); f>>name1>>numb1; cout << "name …

Member Avatar for burcin erek
0
122
Member Avatar for destruct0

Hi !!! I have one problem! I use StreamWriter to send (object) stream to server (not string). But how to read this object with StreamReader ??? The server who send stream (object): [CODE]private void SomeMethod(SqlDataReader reader) { string column = "ColumnName"; object stream = ReadFromDB(reader, column); SendStream(stream); } public object …

Member Avatar for destruct0
0
2K
Member Avatar for jatt09

hi i really need help, i m trying to write a program that displays in a textbox a talbe of the binary, octal, and hexadecimal equivalents of the decimal numbers in range 1-222. Plz help i m new to vb....Thks you

Member Avatar for jatt09
0
188
Member Avatar for epicbeast9022

Hi everyone, I'm trying to program a game in C++ using SDL and i want to get peoples names. its not working though, and I'm really confused as to [B]why[/B]. :?: i'm using code like the following: [B]StringInput.h[/B] [CODE] class StringInput { private: std::string str; SDL_Surface *text; int x,y,r,g,b; SDL_Color …

Member Avatar for Stefano Mtangoo
0
575
Member Avatar for jems5

Since starting this course and seeking to join this forum, I have learned a lot and want to thank everyone for their assistance on my own forum questions as well as those I have read during research in this forum. Having said that I have another array question. I now …

Member Avatar for jems5
0
135
Member Avatar for unnamed17
Member Avatar for daviddoria

In the past when I've done this: [code] int function(int a) { if(a == 2) { return true; } else { return false; } } [/code] the compiler has complained that the function may not return a value. I've fixed this by adding: [code] int function(int a) { if(a == …

Member Avatar for mrnutty
0
220
Member Avatar for myk45

Hello. im having a small problem creating a tree. im not sure where im going wrong. Can anyone please help? Thanks. Here is the code: [CODE] #include <stdio.h> #include <stdlib.h> struct tree_el { int val; struct tree_el *right; struct tree_el *left; }; typedef struct tree_el node; void printout(node *tree) { …

Member Avatar for myk45
0
219
Member Avatar for myk45

Hello. im having a small problem creating a tree. im not sure where im going wrong. Can anyone please help? Thanks. Here is the code: [CODE] #include <stdio.h> #include <stdlib.h> struct tree_el { int val; struct tree_el *right; struct tree_el *left; }; typedef struct tree_el node; void printout(node *tree) { …

Member Avatar for myk45
0
87
Member Avatar for Slimmy

Hi! I have an array of doubles that I map to a hashmap to keep track of the indices of the elements. I want to be able to sort the array and still keep track of the indices and thats no problem as long as the elements are distinct. But …

Member Avatar for Slimmy
0
126
Member Avatar for Steve_Jones

How can i search a specific area on the screen. Right now i can only do a single pixel or point, but i want to do an area. Can i make a moveable label that takes up whatever image is behind it and then search that label? If yes, how …

Member Avatar for Steve_Jones
0
94
Member Avatar for ivan3510

Hi! Sory for my bad english. Is it posible to make in php a html compiler (program that will check if there is lexical or semantic mistakes)? (eg. If someone write: "<html><haed>", the program will check and write message that is error in code and that must be writen "<html><head>"). …

Member Avatar for ivan3510
0
125
Member Avatar for Capt Spaghetti

Thanks to a forum member I have moved a little forward but now I am stumped on how to convert a passed value to a variable so it can be used to search a MySQL database. When I use the passed variable as the value I receive the following error: …

Member Avatar for Capt Spaghetti
0
133
Member Avatar for ceeandcee

Good Morning, I am hoping someone can help me. I am not even sure if this is possible. I am building a hockey pool site and I would like to automatically update the value of a variable once a week or 26 times. I would like to use the clock …

Member Avatar for ceeandcee
0
110
Member Avatar for plasticfood

[CODE] int [] wronglist = new int [incorrect]; for (int i = 0; i < 6; i++){ for (int j = 0; j < i; j++){ if (studentArray[i] != ansArray[i]) wronglist[i] = (j+1); [/CODE] ok i'm trying to write a program that figures out what number did the user got …

Member Avatar for plasticfood
0
305
Member Avatar for SgtMe

Have another problem with an OBJ model format converter I'm making. As a test, I want to read in data from an OBJ file, and write it out in a different format, and then the other way around. The problem I currently have is that I want it to be …

Member Avatar for SgtMe
0
201
Member Avatar for fobos

Hello CF Coders, I have another question. Basically i want to use a cfif statement with out haveing to use it until im ready. Ill give an example and problem i getting. page.cfm [CODE=CFM] <body> <cfif #URL.get#> or <cfif isDefined(URL.get)> // execute code </cfif> <a href="page.cfm?get=this">click</a> </body> [/CODE] When i …

Member Avatar for arrgh
0
167
Member Avatar for dreamsky999

Hi Netizens, I wish you guys can guide me in here. In the following code, I've compiled flawlessly and I didn't managed to get the output screen and I'm kind of in the dark since I didn't find the answer that I wanted through internet browsing after a while. Any …

Member Avatar for JamesCherrill
0
249
Member Avatar for arjen

hello guys i have a question because in my I.O.File i use this to save the data in the listview in a c:\test.txt but the problem is that it only save one data and every time i click the save the previous data that i save is deleted and it …

Member Avatar for codeorder
0
2K
Member Avatar for iw2z

Hi all, I'm sure this is a trivial question for the veterans (and the newbs maybe as well). But I just can't find a straight answer to it. So here it goes: I have my main.cpp file, and 2 more files, custom.h and custom.cpp. Obviously, custom.h would contain declarations, prototype...etc, …

Member Avatar for Ancient Dragon
0
180
Member Avatar for Xufyan

in this program i've pushed 10 values into array but i use the condition [iCODE]if (tos==9)[/iCODE] which means no value should be stored at 10th position but when i am storing values, [iCODE]for (int i=1;i<=10;i++) first.push(i);[/iCODE] [CODE]class Stack{ int StackArray[] = new int[10]; int tos; Stack(){ tos=-1; } public void …

Member Avatar for NormR1
0
284
Member Avatar for crazylunatic

I have been doing a small project as part of my lab assignments and I encountered this funny probelm while working with the files in C++. I have this class Member which I am using to store the member details. [code=c++] class Member { private: char name[30]; long int userid; …

Member Avatar for deeps84
1
343
Member Avatar for Capt Spaghetti

I am trying (unsuccessfully) to pass a variable to another php file. I am able to retrieve the information from MySQL, and present it on the web page but I am unable to pass the "hot link" ID to another php file. I am a beginner so it must be …

Member Avatar for P0lT10n
0
141
Member Avatar for natchattack

This is a simple problem but one of those that eats at your brains the more you think of it. I basically want to write a a variable to a php file ( the variable name itself not the contents ). The code i have below. [CODE] // we will …

Member Avatar for natchattack
0
85
Member Avatar for purijatin

What is the maximum size of one Datagram Packet java makes. Iam implementing my own protocol with defined features which runs over UDP. For every packet i have defined a set of headers. Now these headers are to be defined in every packet. So unless i do not know the …

Member Avatar for NormR1
0
102
Member Avatar for kracko

Hey ppl. I use apach and i've got a problem that i cant fix when i write this code .. [CODE] <img src="Z:/home/localhost/www/ImageGallery/Images/mmbg3xmx3g.gif" width="100px" height="100px" name="imgPreview" /> [/CODE] no image is shown. Whats wrong? The image surely exists in the specified path. And one more problem with this is that …

Member Avatar for kracko
0
105
Member Avatar for avataralien

I am trying to create a cpp file that will enable user to download the content from a web URL & stored it to a desired html file. I am running on Linux. The program will call GNU wget CLI program to grab the content & stored it to a …

Member Avatar for avataralien
0
189
Member Avatar for freda173

Below is code from an assignment I am working on, the parts in bold are what I have added. What I have to do is add command line argument "-c filename". Basically the code is a hashtable that when -c is used, user will enter a list of words into …

Member Avatar for freda173
0
160
Member Avatar for dawsonz

Hi, I'm trying to create a Web Form in C# - the form has a username and password textbox. The user enters there username and password which I want the program to check if it exists in the SQL database. I'm trying to create a login.cs class and then run …

Member Avatar for dimastea
0
368

The End.