132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for FinaL111

I have a question regarding the use of malloc and realloc: for this, "part", of my assignment, I have to read in every word from a text file and count the number of times it appears in a text file. The definition of a word in this assignment is very …

Software Development c file-system
Member Avatar for NerdyChick27
0
325
Member Avatar for Kerok

I need to write a program where the user input their name, the program will tell them 'Hello,' and then show the user's name backwards. This is what I have: [CODE]INCLUDE Irvine32.inc .data pleaseEnter BYTE 'Please enter your name: ', 0 StringName BYTE 30 DUP(0) yourName BYTE 'Hello, ', 0 …

Software Development assembly
Member Avatar for Kerok
0
979
Member Avatar for myrongainz

[CODE]string rev; for(int i =1; i<=(int)user.length();i+=2) { rev = user.length[i+1]; rev = user.length[i]; } [/CODE] this is a part of my code where "user" is the user inputted text. I'm trying to get the output to do this. input - square output - er au qs I've been stuck on …

Software Development c++
Member Avatar for myrongainz
0
134
Member Avatar for subone

Hi guys, I want to find the sum of numbers(inclusive) between TWO integers inputted by user. Example: if user enters 1 and 4, then it outputs: Sum = 10 I just started my code: [CODE]public static void main(String[] args) { int number1 = 0,number2 = 0,Sum = 0; Scanner input …

Software Development java
Member Avatar for aspire1
0
305
Member Avatar for mehnihma

I don't know what am I doing wrong, When I input number of courses it won't loop again just once? What is wrong with the code? Thanks [CODE] // EX 3 import java.util.*; // program uses class Scanner public class ComputeGpa { public static void main(String args[]) { // create …

Software Development java
Member Avatar for stultuske
0
125
Member Avatar for NerdyChick27

I have an assignment with a slightly strange implementation of priority queues using a binary tree. I'm really having trouble trying to understand how to make my insert function work when the parameters are as follows [CODE]void insert(tree t, void* item)[/CODE] where item is the data going to be inserted. …

Software Development c
Member Avatar for NerdyChick27
0
213
Member Avatar for kipslem

Hello, could anyone please help me with this? I have a form with 4 comboboxes. The comboboxes are SBUName, Maindepartment, Team and Staff. When the High level combobox which in this case is the SBUName is selected then the preceding lower level comboboxes will all be populated with data (by …

Software Development vb.net
Member Avatar for kipslem
0
198
Member Avatar for George_91

I've to make several experiments of some algorithms. I want to send those results to a .txt file [CODE] //.... for (count= 1; count<= 20; count++){ //.... std::cout<<exp<<"Time: "<<duration << " seconds" <<'\n'; ofstream f2; f2.open("results.txt", ofstream::out); for(int i=0; i<=20; i++){ f2<<duration<<endl; } f2.close(); } [/CODE] With this code, I …

Software Development c++
Member Avatar for MachDelta
0
184
Member Avatar for seanbl1

Hi there, I am currently studying Java just over six weeks and am a novice. I have been give a question to do, the question is... Theatre Ticketing System Write a program that reads ticket details from the user and outputs those details in the form of a Theatre ticket …

Software Development java
Member Avatar for JeffGrigg
0
107
Member Avatar for slidepuppy1

I want to return the value of i, but I don't know how. My code is: [CODE]public int indexOfFile(String filename) { int value=0; for(int i=0; i<DRIVE_SIZE; i++) { if(drive[i]!=null && drive[i].getName().equals(filename)) { value= i; }else{ value= -1; } } return value; }[/CODE] so I want the value of i, but …

Software Development java
Member Avatar for stultuske
0
168
Member Avatar for just_starting

[CODE]def main(): distance, fuel = 0.0, 0.0 inStr = input ("Enter gallons and miles (with a space between):") while inStr != "": gallons,miles = inStr.split() gallons = eval(gallons) miles = eval(miles) print("MPG for this leg: {0:0.1f}".format(miles/gallons)) distance = distance + miles fuel = fuel + gallons inStr = input("Enter gallons …

Software Development python
Member Avatar for just_starting
0
167
Member Avatar for vishwanath.m

hey guys, i have a problem with this question.. Given n and m, calculate 1^1 + 2^2 + 3^3 + ... + n^n modulo m. here i cant use power function directly as it only works for very very small inputs. Test your code on anything larger and you will …

Software Development c++
Member Avatar for StuXYZ
0
205
Member Avatar for Juicyjuice

[CODE]import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.PostMethod; public class sslRequest { public void run(){ String url = "https://pipeline.sbcc.edu/cp/home/login"; try { HttpClient client = new HttpClient(); //client.getParams().setParameter("http.protocol.single-cookie-header", true); // client.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY); PostMethod method = new PostMethod( url ); // Configure the form parameters method.addParameter("user", "username" ); method.addParameter("pass", "password123" ); method.addParameter("uuid", "********-f08d-4d64-aeef-************"); // Execute the POST …

Software Development apache http-protocol java
0
161
Member Avatar for arson09

I'm really confused at the moment. I'm not looking for anyone to give me the answers, but if you could at least give hints on what i need to do in each method, i'll be happy!! FYI, one of the main things that's confusing me is that i'm not allowed …

Software Development oop python
Member Avatar for arson09
0
225
Member Avatar for graphicsgrl

I am new to python(version 3.2.11) and having some problems with this code...Please Help!! Here is the program I am supposed to write: Write a program which computes the fuel efficiency of a multi-leg journey. The program will prompt the user for the starting odometer reading and then for information …

Software Development python
Member Avatar for graphicsgrl
0
954
Member Avatar for haoth

Hi, I am having a bit of trouble finding a way to check a string for the highest and lowest number. Example: I would have a: [CODE]String example = "1 3 5 9 4 3";[/CODE] And now I would have to check which is the lowest number and the highest …

Software Development java
Member Avatar for haoth
0
371
Member Avatar for ao_py

I have written a program that simulates volleyball using rally scoring. In rally scoring, the team that wins the rally wins the point, regardless of which team is serving (for this reason my program ignores the issue of who’s serving). Games are played to a score of 30 and must …

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for lxXTaCoXxl

I have a string array that I'm storing complete strings into. The array size is 1,000 so that I have plently of space to work with. Storing the strings into the array is working just fine. The part I need help with is removing specific indexes from the array. I …

Software Development
Member Avatar for lxXTaCoXxl
0
161
Member Avatar for pavangajula2007

I am btech cse student final year. I have more eager to develop the projcet on java platform but I dont know how to initiate and what books I have to read. Please suggest me some tools and advices for developing the project in java

Software Development java
Member Avatar for stultuske
0
108
Member Avatar for red_ferrari007

PROGRAM GETS COMPILED...BUT GIVES ERROR ARRAY OUT OF BOUNDS...PLEASE HELP AS SOON AS POSSIBLE !!! import java.io.*; class Evaluate { char postfix[]; int stack[]; int i,a,b,c,top,n; BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); Evaluate() throws IOException { System.out.println("ENTER ARRAY SIZE"); n=Integer.parseInt(input.readLine()); postfix=new char[n]; stack=new int[n]; top=-1; i=-1; } void readpostfix() throws IOException { …

Software Development java
Member Avatar for NormR1
0
331
Member Avatar for George_91

I've a vector of size 'n', I need to do random couples with the n numbers (integers) and make a swap between them. Any ideas how? I had this idea [CODE] int low = 0; int temp; for (int high = n-1; i= low; high-- ) { temp = v[high]; …

Software Development c++
Member Avatar for George_91
0
191
Member Avatar for nerkla

Hi, My combobox is filled with file names (without extension) of all the .txt files in folder "[I]c:/files[/I]". When I select one file name from that combobox, how can I show that files full path in textbox or label? Sorry for my bad english...

Software Development vb.net
Member Avatar for nerkla
0
146
Member Avatar for mccarthy.den

hello everyone. couple of days back i started learning C (with the help of internet) i have do while loop which i can't get to work as long as i know, when i press 'y' it should again ask temperature. but it is not doing that. i am using Turbo …

Software Development c ide
Member Avatar for WaltP
0
135
Member Avatar for learner guy

hi can anyone help me in making this code work ..i will be very grateful to him/her [CODE]#include <iostream> #include <stdio.h> #include <conio.h> #include <windows.h> using namespace std; #define BLACK 0 #define BLUE 1 #define GREEN 2 #define CYAN 3 #define RED 4 #define MAGENTA 5 #define BROWN 6 #define …

Software Development c++ queue
Member Avatar for WaltP
0
392
Member Avatar for cdea06

Ok this is driving me absolutely crary! I'm trying to add a static method Account consolidate(Account acct1, Account acct2) to my Account class that creates a new account whose balance is the sum of the balances in acct1 and acct2 and closes acct1 and acct2. The new account should be …

Software Development java
Member Avatar for JamesCherrill
0
244
Member Avatar for selma_ter

Hello! I create a class which extends Thread. I can start the thread with run() method but the new thread does not runs parallel on my main application. I try the start() method which runs perfect and parallel to my to my main application. -Here i could not understand what …

Software Development java
Member Avatar for JamesCherrill
0
196
Member Avatar for zack_falcon

My professor has instructed me to make a simple project that requires the use of a database server on one computer, so that another can connect to it. If my program makes a change in the database, the other program is updated automatically. As in, it is updated as soon …

Software Development
Member Avatar for zack_falcon
0
145
Member Avatar for Resentful

I know this may be the wrong section, but I couldn't decide which was best. I understand VB.Net quite well, but Actionscript throws me off most of the time. I am needing a bit of Actionscript converted in VB.Net. [CODE]package com.adobe.crypto { import flash.utils.*; public class HMAC extends Object { …

Software Development actionscript flash vb.net
Member Avatar for Reverend Jim
0
168
Member Avatar for loupgarou

Hey everyone, I have a quick question about some Java code. I need to write a method that fills an array, with a few conditions. The method I'm writing is called readArray. There are [U]two[/U] arrays, one called "states" and the other "capitals". I have to fill both these String …

Software Development java
Member Avatar for JamesCherrill
0
204
Member Avatar for dennysimon

hello all i just learn java syntax to extrac jar file we command : jar xf jar-file but there no information where the extracted files will be located and what is the sign if the command successfull or not any info ? thank denny

Software Development java
Member Avatar for rajesh.ingole
0
85
Member Avatar for Vasthor

the program behaviour is different with code that have similar function this [CODE] #include <iostream> #include <string> int main() { int a = 1; while (a < 11) { int b = a++; int c = a * b; std::cout << c << std::endl; ++a; } return 0; } /* …

Software Development c++
Member Avatar for Vasthor
0
151
Member Avatar for hemant_rajput

Hi, I need wrote a script which can go to particular site and download all the wallpaper or images available there. Can any one suggest me how to start with that. I never wrote python prog before but i know python. If anyone cn give me the direction it will …

Software Development file-system python
Member Avatar for hemant_rajput
0
209
Member Avatar for shujat132

Hello Dear Brothers and sisters How are you................? I'm Student of bscs in 6th semester i write three programs but all of these are giving errors and i'm not able to findout probelm. but i thing problem is some where with CONTAINER please check all these Thanks [COLOR="Red"]First One[/COLOR] [CODE]import …

Software Development gui java java-swing
Member Avatar for NormR1
0
1K
Member Avatar for Jade4127

Hello - I am a student who bis mid-semester in an OOP course, with zero programming experience. I am trying to understand the concepts but this stuff is tough....I have an increased level of respect for all of the developers out there! Here is my question..in the code i am …

Software Development java oop session
Member Avatar for Jade4127
0
496
Member Avatar for logicmonster

I am trying to create an array of a custom object and I think the error I'm running into is that the objects within the array are not initialized prior to use (its a run time error, so i'm not entirely sure). The part that doesn't make sense is, if …

Software Development java
Member Avatar for JamesCherrill
0
778
Member Avatar for DeathEater

hey guys. i need advice and guidance for a new project i want to start. imagine a company with some subsections that each one has a program and a separate database on sql server 2008 express. what i want to do is unit these apps so that all of them …

Software Development c# sql
Member Avatar for Ketsuekiame
0
224
Member Avatar for ooops.789

I am trying to generate a random number, but it should not be a particular number. So i am passing the number which should not be the random number and the range in which it has to be generated to the function, and i am reinvoking the function if the …

Software Development c
Member Avatar for cluekiller
0
230
Member Avatar for Joey_Brown

Hello. What is the best way [an a correct one] to check a value, lets say I need a user input in a certain range. Could I place this check inside a setter method? My setter would than be a boolean return type instead of void? Are there some "laws" …

Software Development java
Member Avatar for Joey_Brown
0
3K
Member Avatar for Panathinaikos22

C is a medium level language ? i guess c++ also that's why C/C++ are faster than others, but i dont think VB/C# example are to slow like some says. That i hear exactly is: (" a ATM Software can't be in High level language VB/C#/Java because are to slow …

Software Development c
Member Avatar for timetraveller92
0
159
Member Avatar for stream4559

I am having problems with my turbo c. its showing me that it cannot find out the include<stdio.h> file from the system.

Software Development c
Member Avatar for timetraveller92
0
210
Member Avatar for s_h_a_m

hello im new in programming and i need help in printing this kind of output [CODE] * * * * * * * * * *[/CODE] the number of iterations depends on users input please help me

Software Development c
Member Avatar for timetraveller92
0
95
Member Avatar for Liuhh00

hey guys lol to be honest...i just got this based off of luck x.x idk how but i can't keep doing this with the rest of my programs lol this is a program for an asterick pattern any way i can improve it just by using for loops?please im open …

Software Development c
Member Avatar for timetraveller92
0
359
Member Avatar for Sokh

Hi everyone,Can you please help me? I want a C# code for taking time and date from a site and import this time in my program,can you pls help me.

Software Development c c# c++
Member Avatar for Sokh
0
274
Member Avatar for george08.08

Hello again I am a bit confused about how to show a constant in a class constructor. I have a savings account class (A child class of Account) which has a constant interest rate. I have it in my class as a static constant double INTEREST_RATE;. Then outside of my …

Software Development c++
Member Avatar for mzimmers
0
189
Member Avatar for Locane

This program simply creates an array of movies with a star rating for each one. My problem is, I want to have code that adds the contents of the array if the movie is the same. So for my example I was using Frozen Ground as the movie. In my …

Software Development java
Member Avatar for Locane
0
146
Member Avatar for akshayksh

hello i need to calculate age of a person and dispaly it in a label. for example i have a textbox, with these values, 130790, from this number it should generate my age. DDMMYY

Software Development vb.net
Member Avatar for GeekByChoiCe
0
86
Member Avatar for dre-logics

I have a simple question. [COLOR="Green"]Do while loop[/COLOR] to check each record in a MySQL Table, see code [COLOR="Red"] But i want certainly not just want not use recordset or MySqlDataReader.[/COLOR] I Is that possible? Information: I use Visual Basic 8.0 and Mysql 5.0 I have one table: Articles Article …

Software Development open-source vb.net visual-basic
Member Avatar for SamR44
0
5K
Member Avatar for VilePlecenta

Seen it asked for so here it is.[code]#include <Windows.h> #include <iostream> #include <conio.h> using namespace std; #define ClearScreen() system( "CLS" ) class _Notepad { public: _Notepad() { ZeroMemory( &Buffer, sizeof( Buffer ) ); pt.x = 1; pt.y = 1; } void GetUserString(); void SendToChild(); private: HWND nphWnd; POINT pt; char …

Software Development c++
Member Avatar for fengdanbailu
0
1K
Member Avatar for george08.08

Hello I am creating a bank account for an assignment and the account number must be automatically generated with consecutive numbers. I have written some code that works, but now I need to know how to use it in conjunction with my Account class, especially how to add it to …

Software Development c++
Member Avatar for mzimmers
0
206
Member Avatar for Vasthor

2-4. The framing program writes the mostly blank lines that separate the borders from the greeting one character at a time. Change the program so that it writes all the spaces needed in a single output expression. already google this, but what I got is a bunch of headache... so, …

Software Development c++
Member Avatar for Vasthor
0
359

The End.