43,549 Solved Topics

Remove Filter
Member Avatar for
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 …

Software Development c++
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 …

Software Development python
Member Avatar for Gribouillis
0
90
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 …

Software Development ide java java-netbeans
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: …

Software Development java
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 = …

Software Development c
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 …

Software Development gui java
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?

Software Development java
Member Avatar for ~s.o.s~
0
81
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 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){ …

Software Development algorithm java
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; …

Software Development c++
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 …

Software Development hard-drive video-card visual-basic
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...?

Software Development vb.net
Member Avatar for chan py
0
231
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] …

Software Development java
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. …

Software Development c++
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 …

Software Development assembly c++
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 …

Software Development c++ file-stream
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 …

Software Development client-server
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

Software Development vb.net
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 …

Software Development c++
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 …

Software Development gui java
Member Avatar for jems5
0
135
Member Avatar for unnamed17
Member Avatar for N1GHTS
0
97
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 == …

Software Development c++
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) { …

Software Development c++
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) { …

Software Development c
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 …

Software Development c data-structure
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 …

Software Development
Member Avatar for Steve_Jones
0
94
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 …

Software Development java
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 …

Software Development c++
Member Avatar for SgtMe
0
201
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 …

Software Development gui java java-swing
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 …

Software Development file-stream file-system listview vb.net
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, …

Software Development c++
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 …

Software Development java
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; …

Software Development app-store c++ file-system ios
Member Avatar for deeps84
1
343
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 …

Software Development java
Member Avatar for NormR1
0
102
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 …

Software Development c++ unix
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 …

Software Development c
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 …

Software Development open-source sql
Member Avatar for dimastea
0
368
Member Avatar for arjen

hello guys can u help me with this my code [CODE] Dim myFile As String = "C:\report.html" Dim stream As New IO.FileStream(myFile, IO.FileMode.Create) Dim writer As New IO.StreamWriter(stream) writer.WriteLine() writer.WriteLine("" & TextBox8.Text) writer.WriteLine("" & DateTimePicker1.Text) writer.WriteLine() writer.WriteLine() writer.WriteLine("Customer Name | Cost | Number of hours | Time Start | Time …

Software Development html-css vb.net
Member Avatar for GeekByChoiCe
0
250
Member Avatar for deepak_1706

I've just started programming in c#, its a simple Forms application with single form. I have a class written in a separate .cs file in its own namespace. The rest of the code is in the Form1.cs file. I am able to create an instance of the my class and …

Software Development c c# c++
Member Avatar for deepak_1706
0
685
Member Avatar for pixelss

I'm very new to programing, anyways, i was instructed to crate a program to calculate the are of rectangle, using the input from the user ( width, lenght ) using functions here is what i have, but i'm getting a error at the end [CODE] recWidth = input ('Please enter …

Software Development python
Member Avatar for pixelss
0
83
Member Avatar for sixdegreesunder

Hi everyone, I m running program but got stuck in after if/else if statements, Jpane doesnt show anything.I couldnt figure out. Thanks [CODE]public class FancyGuessingGame { public static void main(String[] args) { Scanner console = new Scanner(System.in); int guess; int num; String name; String Guess; name = JOptionPane.showInputDialog(null, "Please enter …

Software Development java
Member Avatar for NormR1
0
146
Member Avatar for plasticfood

[CODE]public static int totalCorrect(String [] studentArray, String [] ansArray){ int numCorrect = 0; for (int i = 0; i < 6; i++){ if (studentArray[i] == ansArray[i]) numCorrect += 1; } return numCorrect; } [/CODE] instead of returning the actual number, it always return 0. here is the whole program: [CODE]import …

Software Development java
Member Avatar for plasticfood
0
131
Member Avatar for cortez716

I'm trying to write a function called (sumTo) that takes as [B][U]arguments two integers[/U][/B]. My function should use a loop to sum all of the numbers between the two (This includes the starting and ending numbers) and return the sum. I want the function to allow for either argument to …

Software Development c++
Member Avatar for cortez716
0
186
Member Avatar for Duece_68

Hey can anyone explain the following code to me [CODE = C++] #define SQUARED(x) {x * x} int main() { int i = SQUARED(3 + 2); return 0; } [/CODE] Why does 'i' in the above code = 11 and not 25????

Software Development c++
Member Avatar for arkoenig
0
151
Member Avatar for tomo_uni

I was wondering how you would display the time in hour/minutes/seconds and then depending on what time of the day it is, it displays the relevant label e.g. Good morning, good afternoon etc thanks

Software Development visual-basic
Member Avatar for AndreRet
0
136
Member Avatar for xiansen

hey guys, i am to program a simple blackjack program that generates two random cards for the user and ask if the user wants to stay or hit it. so far, when i tried to compile the program, nothing showed up and showed me this message: "The program '[492] alt.exe: …

Software Development c++
Member Avatar for xiansen
0
174
Member Avatar for ChaosKnight11

Hi, I have just downloaded PostgreSQL and would like to add it into my new projects. I have never used PostgreSQL before so I don't know any of its technical details yet. I have registered the PostgreSQL provider using regsvr32 pgoledb.dll or something like that on my Winows partition, everything …

Software Development delphi pascal postgresql
Member Avatar for ChaosKnight11
0
952
Member Avatar for ricardo.crudo

Hello, I'm with difficult in this situation: [CODE] void teste(int *p_int) { printf("&p_int = %li\n", (long int) &p_int); // Line T1 printf("p_int = %li\n", (long int) p_int); // Line T2 p_int = malloc(sizeof(int)); (*p_int) = 123; printf("*p_int = %li\n", (long int) *p_int); // Line T3 } int main(void) { int …

Software Development c
Member Avatar for ricardo.crudo
0
98
Member Avatar for anantk

I'm working on a soccer management program I had some other members of my group to compile data on 400 real life players into a text file. I planned on reading the text file using a program ,converting individual players into objects and then writing them to another file (in …

Software Development c++ ios
Member Avatar for anantk
0
131
Member Avatar for peterman.k

Okay, so I have created and array of a maximum degree, which the user defines, and then inputs their own coefficients according to the size of the polynomial. For example, I ask for degree, they type 2, and then input 1,3 and 5 to create a polynomial: 1 + 3x …

Software Development c++ mathematics
Member Avatar for peterman.k
0
296

The End.