43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for phfilly

Ola! I'm still kind of new with the whole assembly language and just need some help with this program i'm writing. What I want it to do is to ask a question -like for a number and then store that inserted number in a variable. And then test whether its …

Software Development assembly
Member Avatar for AceStryker
0
1K
Member Avatar for Zssffssz

When on the digital mars website he advertzed that their compiler could use all 80bits of a 32bit machine. What the heck does this mean?

Software Development c++
Member Avatar for Narue
0
63
Member Avatar for linhj

Hi All, I am tring to using the below function to read in a .txt file, which consist of a 10x10 matrix number. I just cannot find out where goes wrong, it appears such a funny number -858993460... [CODE]void readinput(int in[][MAXCOLS]) { int row ,col,ip; //Declare row,col, ip as int …

Software Development c++ file-stream
Member Avatar for linhj
0
3K
Member Avatar for Efficience

I have written a code for checking vfork in unix. But I am getting the ambiguous behavious. When I am using exit(0) in child process , output is fine i.e; output :- Before fork I am a child My name is parent child PID=> 23133 kValue => 2 ] But …

Software Development c multithreading unix
Member Avatar for Efficience
0
296
Member Avatar for Zssffssz

Ok simple question. Google didn't bring up much and I need this. This is the question: How do I interact with non-text files in a simple console app?

Software Development c++
Member Avatar for vijayan121
0
175
Member Avatar for nikita.

I want to write a shell script to automate the ftp session, in that it should take the inputs like the server ip , username , password from a different file who path i'll pass. and also the validations that if the server path exits or not.

Software Development session shell-scripting unix
Member Avatar for nikita.
0
207
Member Avatar for i2u2me

Why do you think the Java language chooses to treat file data as a stream rather than as a single object?

Software Development file-stream java
Member Avatar for i2u2me
0
75
Member Avatar for bilal_fazlani

I am looking for the a simplest for of code where I can add some items to a listview. i have 4 text boxes and 4 columns in a listview.. what could be the code to put 4 values as a single row in list view.. i managed to put …

Software Development listview vb.net
Member Avatar for Reverend Jim
0
197
Member Avatar for zachattack05

I'm working on a custom textbox control that can "filter" out inappropriate input. The filter property can be: None, Numerical, LowerAlpha, UpperAlpha, Alpha, AlphaNumeric, Symbol None would function like a normal textbox Numerical would be any number key (1,2,3...) LowerAlpha would be any alphabet character as long as it is …

Software Development
Member Avatar for zachattack05
0
235
Member Avatar for ChristosK

Hello How i can read the motherboad model using code in vb? I write a program in ms access and i want to read/confirm the motherbord model on startup. Thanks in advance

Software Development visual-basic
Member Avatar for GGSoft
0
481
Member Avatar for hmortensen

Hi All, I'm trying to bind a textbox to a listbox's selected.Content properties. The listbox displays the items as designed in the datatemplate. But I can't get a textbox to display one/any of the selectedItems properties. [B]DataTemplate[/B] [CODE] <DataTemplate x:Key="dt_Afloeser" > <Border BorderBrush="Black" BorderThickness="0.5" CornerRadius="2" Margin="2,2,2,2"> <DockPanel HorizontalAlignment="Center"> <TextBlock Name="navn" …

Software Development asp.net
Member Avatar for hmortensen
0
2K
Member Avatar for Mike Askew

Hi all, My program is proving Kaprekar's Constant - 6174. To do this I will need to store values exactly how they come out without losing any preceding 0's which int has a habit of cutting off. For example: Number to store exactly: 0147 Int stores: 147 A googling session …

Software Development session
Member Avatar for Mike Askew
0
142
Member Avatar for nikita.

I have to run a shell script and store whatever is performed in it into a log file. the path can be altered for the log file. how can i do that ?

Software Development shell-scripting unix
Member Avatar for nikita.
0
4K
Member Avatar for khentz

Hi, Please help me how to pass value from database to a variable. This is my query: [CODE] Dim it As String = "Mouse" Dim itNo As String SELECT * FROM tblITEquipmentName WHERE equipmentName LIKE '" & it & "%'" [/CODE] I would like to get the ItEquipmentNo and pass …

Software Development vb.net
Member Avatar for khentz
0
9K
Member Avatar for RedexProGamma

Hey all (who see this), I am currently writing a Login Script, and I am having trouble making StreamReader read a specific line in a text file. This is what I have so far (not the entire script, just the reader lines): [CODE] Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) Dim …

Software Development vb.net
Member Avatar for RedexProGamma
0
191
Member Avatar for Zssffssz

Ok when I use gcc (all th time) the program it makes in c++ with debug on is around a megabyte when off it is around half a megabyte when working with c with debug on it around 50 k with it off it's at about25 k this doesn't seem …

Software Development c++
Member Avatar for mike_2000_17
0
188
Member Avatar for Mr. K

I make a program that reads a file and then it stores the information in two char.The problem is related to the char Elements and symbol. What is causing errors in my program? Thanks in advance. [CODE]#include "stdafx.h" #include <iostream> #include <fstream> char* Elements;//The problem char * symbol; using namespace …

Software Development c++
Member Avatar for Mr. K
0
212
Member Avatar for Hikari123

Hi, I am a beginner so bear with me. I have an assignment in which I have to create an array with numbers and then have a loop with condition to check in which order the user has inputed the numbers. Asc=1, desc=-1, other=0. This loop isn't working, i know …

Software Development java
Member Avatar for Hikari123
0
124
Member Avatar for csterling

I have a large number of files that begin with numbers (e.g., 10admin_boundary_x) and would like to rename the files so that they do not begin with a digit (e.g., admin_boundary_x). I am working with shapefiles (.shp, .shx, .dbf, etc) and thought a python script could save me some time. …

Software Development python
Member Avatar for TrustyTony
0
2K
Member Avatar for sandman64

[CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; string constestantName(istream &); //Calls the the input file from main() by refrencea and returns the name of the contestant void getJudgeData(istream &, string, int); //gets the scores from starsearch.dat and stores them in five veriables void CalcScore(ostream &, string, …

Software Development c++
Member Avatar for sandman64
0
139
Member Avatar for tyricec

I'm trying to compile this simple dot program with C++ that uses OpenGL. I made a struct GLintPoint to hold just points x and y. It seems I didn't delcare the struct according to the errors. [CODE]#include <GL/glut.h> #include <stdlib.h> #include <time.h> struct GLPoint { GLint x; GLint y; }; …

Software Development c++ opengl
Member Avatar for tyricec
0
945
Member Avatar for pendo826

[CODE]#include <iostream> #include <string> using namespace std; //char inventoryRequest = 'i'; //Function Definitions. void exitGame(); int playGame(); int main() { //Menu Text. cout<< "\t******Menu******\n\n"; cout<< "Please choose one of the following:\n"; cout<< "1 -Play Game.\n"; cout<< "2 -Exit.\n"; int choice; cout<< "Choice: "; cin>> choice; string name; switch (choice) { …

Software Development c++
Member Avatar for pendo826
0
2K
Member Avatar for slightlyMad

I have searched high and low and cannot find anything that I understand on how to pass data from one form to another in c#. I am completely new to this language and I felt like I was really grasping it up until now. The situation: I have a project …

Software Development
Member Avatar for slightlyMad
0
142
Member Avatar for Awah Mohamed

hello people. how are you all doing? my problem is i have been programming in c++ for almost a year now but i have always used windows with microsoft visual studio and dev c++ but now i discovered that programming in ubuntu is much more fun couz it is way …

Software Development c++ ubuntu visual-studio
Member Avatar for Awah Mohamed
0
209
Member Avatar for applejax77

write a java program that prompts the user to input and integer and then ouputs both the individual digits of the number and the sum of the digits. This is what I have but it is not working when I input a negative number. Why? Need help! import java.util.*; public …

Software Development java
Member Avatar for applejax77
0
151
Member Avatar for Mopikope

Hello everyone I am a college student learning c++ and I am not understanding why you put a "For loop" inside of another one. What advantage does it have and what can you use it for. For example: [CODE]for (int i = 0; i < 5; i++){ for (int g …

Software Development c++
Member Avatar for Mopikope
0
129
Member Avatar for elmoe26

Hi. I have to write a program that solves the Knight's Tour in C++. The Knight's tour is where the Knight Chess piece has to move to every space on the chessboard only once. I am new to programming and I'm having trouble figuring out why my program has stopped …

Software Development c++
Member Avatar for elmoe26
0
3K
Member Avatar for RenanLazarotto

Hello there! I was tired of having to edit my hosts manually, so I just started a small app that will open a nice user interface to it for me. Most of the code is done. It opens the hosts, edits, saves, has cut, copy, paste, undo and redo functions. …

Software Development assembly listview user-interface
Member Avatar for RenanLazarotto
0
134
Member Avatar for gourav1

my problem is highly conceptual problem. when i write: node *new1=malloc(sizeof(node)); it works properly. but when i write : node *new1=malloc(sizeof(node*)); it starts giving errors. // node is the structure having a integer and pointer to itself.

Software Development c
Member Avatar for gourav1
0
161
Member Avatar for sunn shine

i want to write an algo about stack example.. that is, ""When a person wear bangles the last bangle worn is the first one to be removed and the first bangle would be the last to be removed. This follows last in first out (LIFO) principle of stack."" how to …

Software Development c++
Member Avatar for sunn shine
0
124
Member Avatar for linhj

Hi All, I am new to C++, I am tring to generate the random number from 0-99, and save it to a matrix array with the size of 10x10. Below is my code, the resule comes out funny. Can you help to see what goes wrong? [CODE]#include<stdio.h> //Header file #include<stdlib.h> …

Software Development c++
Member Avatar for linhj
0
4K
Member Avatar for bonzo2008

Hello again I'm dealing with a problem in VB6 I have the swedish version in the national enverionment as default and the [U]LabelDatum.Caption = StrConv(Format$(MyDate, "dddd dd mmmm yyyy"), vbProperCase)[/U] is saying SÖNDAG in the first form but I will change that with some code in the form2 that the …

Software Development visual-basic
Member Avatar for bonzo2008
0
312
Member Avatar for anand01

Hi all, I did some basic method overloading program, when I run the bellow program i got output as int long but expected is short long.. can Any one explain me My code is : [CODE]public class MyClass { public static void disp(Long n) { System.out.println("Long "); } public static …

Software Development java
Member Avatar for anand01
0
85
Member Avatar for xocpnytsirhc

hi, i'm trying to make a simple program to calculate the area and perimeter of a circle, but there's a little problem, whenever i enter a floating point number as the radius, like say 2.5 it calculates as if i entered only 2(without the .5) ( i hope that makes …

Software Development c++
Member Avatar for xocpnytsirhc
0
182
Member Avatar for mattnguyen45

The last do..while loop only prints the 2^n of the number entered and n is user input. It does not print all 2^n from 1 to what ever value user inputted. [CODE]/** * * * @author * @version */ //import Scanner utility import java.util.Scanner; public class Loops { public static …

Software Development java programming-construct
Member Avatar for JamesCherrill
1
174
Member Avatar for bonzo2008

Hello in a case there I wan't to change letter in an index from 0- 28 to just 0 - 26 it's commandbuttons, and the 3 letters should be dissaabled, the code is in swedish just now, but I will change that in language settings to english letters. and how …

Software Development visual-basic
Member Avatar for hkdani
0
159
Member Avatar for tomtetlaw

How can I check if my program was launched from the command line or from windows explorer?

Software Development c
Member Avatar for tomtetlaw
0
151
Member Avatar for Prakash_8111

Hi Guys, how to call one shell script from another script inside a loop ? any suggestion most welcome. Prakash

Software Development shell-scripting
Member Avatar for nikita.
0
3K
Member Avatar for tenshi

hi, i'm new to vb.net.is it possible to link item in drop down list to image? for example if i click "computer" in the drop down list, the image of the computer will appear. sorry if my question sounds silly. i'm really a newbie in vb.thanks for ur help.

Software Development image vb.net
Member Avatar for tenshi
0
292
Member Avatar for Aviras

Dear Daniwebbers, I have a problem regarding the calling of methods on a protected parent object from within a child object, the protected parent object being a child object of the same class. I have a class HostileArea, wich has a "protected DungeonRoom[][] dungeon", DungeonRoom being a child of HostileArea. …

Software Development ide java oop
Member Avatar for JamesCherrill
0
223
Member Avatar for gedas

hey Guys, im creating a clas that is to be used in a HashMap to map phone numbers to name. for example : map.put( new PhoneNumber(207, 8269600, 260), “Paul”); [CODE] public final class PhoneNumber { private final int areaCode; private final int number; private final int extension; public PhoneNumber(int areaCode, …

Software Development java
Member Avatar for gedas
0
118
Member Avatar for dwiniers

Hello there! anybody can help me how to execute this application? Thanks you very much! Here's the application goes: Write an application that contains four command buttons. The command buttons should be blue and have boldfaced, italicized caption that read change color, change bold, change height, change width. When the …

Software Development visual-basic
Member Avatar for dwiniers
0
324
Member Avatar for Zssffssz

Ok I'm working with a program that uses addresses and with all of the Interesting charecters (. / \ and spaces) I need tO get a line of characters. I know how to do this with ifstream but how would I do this with plain old cin?

Software Development c++
Member Avatar for pseudorandom21
0
104
Member Avatar for dennysimon

hello all In a cells of a datagridview I place a gif image name new.gif . I can show it immediately after the the form load even I try to print this datagridview cell(0,0) value which is an image name new gif: Object imgobj= dataGridView1.Rows[0].Cells[0].Value; but then I do not …

Software Development image
Member Avatar for dennysimon
0
200
Member Avatar for loserspearl

I have my program all working but whenever a user clicks cancel or exit I want the program to close, not throw my catch. Whenever a user throws a catch they have to input their answer twice before it will go back to normal operations. [CODE] import java.util.*; import javax.swing.*; …

Software Development java java-swing
Member Avatar for adarshcu
0
216
Member Avatar for karmstrong

Please see that attached code. My output is as follows Please enter name : dog 0x7fff71771e60 Please Enter Type: Valid Choses Are (Game, Word, Compiler, Spreadsheet, DBase, Presentation : Game 0x7fff71771e60 Please Enter Cost: $ 20 Its like either the pointer or the getline is not clearing out memory properly. …

Software Development c++
Member Avatar for karmstrong
0
174
Member Avatar for karmstrong

I need to write a function that will use the delete command on a pointer. I'm in left field. See what I have so far any suggestions. I don't think I'm quite getting what I need to pass to the function and pass back. #include <iostream> #include "cdrom.h" using namespace …

Software Development c++
Member Avatar for karmstrong
0
129
Member Avatar for trantran

I am reading Exceptional C++ (Herb Sutter) and there is something that I don't get at all concerning vector insertion. On page 59 it says: 1) "multi-elements inserts ("iterator range" inserts) are never strongly exception-safe" 2) "for vector<T>.... inserts and erases (whether single- or multi-elements) are strongly exception-save as long …

Software Development c++
Member Avatar for trantran
0
503
Member Avatar for vaironl

Hello forum, vaironl here. I would like to notify you all that I'm in an IB- Computer Science class (I'm learning a lot as I go, since I promise to skip the normal CS course). I would like to know if I could design this frame for my final project, …

Software Development java
Member Avatar for hfx642
0
110
Member Avatar for bluehangook629

Hey guys, I thought getting yesterday's date was now() - 1 but visual studio is giving me error saying '-' is not the right operator. I think now() - 1 was used in VB6. whats the correct way of obtaining yesterday date?

Software Development vb.net visual-studio
Member Avatar for bluehangook629
0
684

The End.