43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for niyasc

Following is the one of code written by me for shared memory. Problem is that program donot come outside from marked loop and read numbers infinitely. "common.h" [CODE] struct common { int a[10],b[10],c[10],flag; }; [/CODE] p1.c [CODE] #include<stdio.h> #include<unistd.h> #include<stdlib.h> #include<sys/shm.h> #include"common.h" int main() { int running=1; void *shm=(void *)0; …

Software Development c motherboards-cpu-ram
Member Avatar for niyasc
0
211
Member Avatar for dellat

I have a question on a very basic operation of modulo operator. [B]Why does 1 % 9 produce 1?[/B] If 10 % 9 then remainder is 1. I am very poor in math but have had to use modulo operator many times before but always become confused and couldn't understand …

Software Development c++
Member Avatar for dellat
0
120
Member Avatar for greatman05

So, I'm a bit confused with how inheritance works in relation to variables. Let's say that I had the following class: class Test { private: int var1; float var2; public: void getInfo(int,float); void setStuff(int,float); }; Now, let's suppose that I wanted to derive a class from that base class; I …

Software Development c++ oop
Member Avatar for Ancient Dragon
0
208
Member Avatar for kris222

what are the other types of variables in tasm ex: bh,bl,cx what else is there that i can use?

Software Development assembly
Member Avatar for kris222
0
99
Member Avatar for choosechrist

In my project all, my forms are accessed through my MDI form, [CODE]Private Sub DocumentCollectionToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DocumentCollectionToolStripMenuItem.Click Dim capture1 As Boolean = False capture1 = noduplicatemdi("DOCUMENT_COLLECTION") If capture1 = False Then Dim mdiForm As New DOCUMENT_COLLECTION mdiForm.MdiParent = Me mdiForm.Show() End If End …

Software Development vb.net
Member Avatar for choosechrist
0
175
Member Avatar for Expotential

I am working on a program that requires registration of a username however I do not want users to be able to register usernames with any symbols or spaces only letters and numbers. I honestly dont know where to start on this. Thanks.

Software Development visual-basic
Member Avatar for kaozci
-1
3K
Member Avatar for DEAD TERMINATOR

I'm working on a music player and I want to make it so that if I'm playing a song and I click on another song in the list the first song stops before I hit play on the second one, without having to manually stop the first. So just the …

Software Development audio file-stream gui java
Member Avatar for DEAD TERMINATOR
0
2K
Member Avatar for user543820

Hello! I am trying to implement search algorithms in a 2D grid. The problem I am facing is that let's say that I make a 2D grid in c++ through some array and also block some cells. Now how will I convert this grid into a binary tree to run …

Software Development algorithm c++
Member Avatar for L7Sqr
0
124
Member Avatar for a.muqeet khan

hello guys ! i have created a program just to understand how to return a value from using a recursive program what it does it thati have have two variable i.e first and last the value of first is zero and last is 10 not i want the function to …

Software Development c++ visual-studio
Member Avatar for a.muqeet khan
0
168
Member Avatar for Yarra

[B]I have a bank class below. What is the best way to add amounts to any instance variable in any of the constructors to make it o when i add different amounts from 2 or more different classes it will update in a way that when i call the method …

Software Development data-structure java
Member Avatar for stultuske
0
99
Member Avatar for Tygawr

Hello everyone, I've attempted to use ifstream to open and read a 20GB file but failed to do so (it takes a very very very long period of time...). So, I need find a fast way to open and read a 20GB .txt file in C++. Thank you!

Software Development c++
Member Avatar for Tygawr
0
255
Member Avatar for Tygawr

Hello everyone, I am having a hard time reading and writing a UTF-8 file in visual c++ 2010. [CODE] void ReadUTF8File() { ifstream UTF8File("C:\\DaniWeb\\Desktop\\UTF8File.txt"); /* UTF8File.txt: ☺☻♥♦♣♠•◘○ */ string UTF8FileStr; if(UTF8File.is_open()) { while(!UTF8File.eof()) { UTF8File >> UTF8FileStr; cout << UTF8FileStr << endl; /* cout: ∩╗┐Γÿ║Γÿ╗ΓÖÑΓÖªΓÖúΓÖáΓÇóΓùÿΓùï */ } } UTF8File.close(); } …

Software Development c++
Member Avatar for thines01
0
7K
Member Avatar for userct

I need to Compute 2x4 +7x3 -15x2 +3x+2 Using Horners Method. When I run this in QTSpim it doesn't give me any errors but I'm just wondering if everything is running completely right. For instance did I call "x" correctly? I'm trying to load the value for x from memory …

Software Development assembly mathematics
0
148
Member Avatar for shean1488

Hi everybody. I'm trying to split a string such that every array element would have characters between open and close prentesis. mmm let me just show: myString = "(2*((3-2)+(5-3)))" So my array should have values like that: myArray[0] = 2*((3-2)+(5-3)); myArray[1] = (3-2)+(5-3); myArray[2] = (3-2); myArray[3] = (5-3); I …

Software Development java
Member Avatar for J_A_L
0
20K
Member Avatar for zingwing

I need help figuring out how to count sentences from a .txt file. The following guild lines are what is considered to be a sentence: 1. A TERMINATOR followed by two spaces 2. A TERMINATOR followed by one space and end-of-line 3. A TERMINATOR followed by end-of-line 4. A TERMINATOR …

Software Development c file-system operating-system unix
Member Avatar for zingwing
0
283
Member Avatar for FraidaL

I'm writing this program to calculate the best fit line. It's not finished. I'm doing it step to step to make sure it runs so I don't get lots of errors and totally freak out at the end. Right now it runs fine, but something is really off with the …

Software Development c++ mathematics
Member Avatar for FraidaL
0
238
Member Avatar for triumphost

I'm trying to help someone with homework.. So you do not have to give me direct answers if you don't want to.. it is not my homework. [CODE] class Types { //No default constructor.. Types(int Param1, int Param2); }; class Objects { public: Types* Original; Objects(); ~Objects(); }; //The problem …

Software Development c++
Member Avatar for triumphost
0
150
Member Avatar for leiger

This code works perfectly fine when I run it as a class file (the font is located in the same directory) - however when I package it into a JAR file it can't find the font and the program crashes. The font is definitely being included in the JAR archive, …

Software Development file-system java
Member Avatar for karlmeier
0
4K
Member Avatar for triumphost

I need help changing my return type from int to vector<string>.. I don't want to have to pass the vector as a pointer to the function but rather I just want to return the vector itself as I no longer need to check the return type. If it fails, it'd …

Software Development c++ pascal
Member Avatar for mazzica1
0
181
Member Avatar for gujinni

hi there. I am just new in java 3d why my program always says Exception in thread "main" java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration at javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:963) at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1006) at pkgnew.New.<init>(New.java:39) at pkgnew.New.main(New.java:51) Java Result: 1 however, I already installed j3d and jre. I cannot run and compile my program. Nothing appears when …

Software Development java
Member Avatar for gujinni
0
120
Member Avatar for gujinni

hi there.! I have some problem about my calculator. I already made basic calculator but I want to developed it more instead of computing only 2 input I would like to compute this more than two. my calculator looks like windows calculator. tnx and more power. =)

Software Development java
Member Avatar for gujinni
-1
209
Member Avatar for icekid5

HI:) i have tried for several hours to make my textbox accept negative numbers but i couldn't solve the problem so i'm hoping u can help me with this.I got here an example of my code: private void textBox76_KeyPress(object sender, KeyPressEventArgs e) { e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar); textBox76.MaxLength = …

Software Development
Member Avatar for icekid5
0
2K
Member Avatar for dilse4sk

hi every one. I would like to know how to save data without click on the floppy disk on binding navigator. IS there any coding which i can use under a button to do the same function as binding navigator.I just want to use button to save and delete data …

Software Development vb.net
Member Avatar for dilse4sk
0
122
Member Avatar for kris222

.model small .stack 100h .code start: xor cx, cx mov ah, 1h @loop: int 21h cmp al, 0dh je @end push ax inc cx jmp @loop @end: mov ah, 2h dis: pop ax int 21h loop dis mov ah, 4ch int 21h end start

Software Development assembly
Member Avatar for thines01
0
117
Member Avatar for C0ding

Hi everyone, [U]Batch example: start /wait executable.exe[/U] I've been using this method with batch files, this time i would like to use something similar in Visual Basic 6, i tried to replace this method using Do While Loop, Do Until... Loop Statement, etc. but still can't find a better way …

Software Development visual-basic
Member Avatar for C0ding
0
184
Member Avatar for dennysimon

hello all I create simple software say it's name K.jar ,I place it on desktop I double click it , it run nicely.I close it. I install Nokia Suite (it available on net) When I double click my K.jar ,Nokia Suite run ,my K.jar doesn't run If I uninstalled Nokia …

Software Development java
Member Avatar for dennysimon
0
648
Member Avatar for Raim

I'm making an alarm clock whose form's backColor should change randomlly every 5 seconds. I am not sure as to how to do this. I'm using a timer so after the alarm clock's given time matches the current time, a song will be played. But I do not know how …

Software Development vb.net
Member Avatar for codeorder
0
154
Member Avatar for faithful4ever

I just have a quick question. Say I have a struct for the purpose of commenting in which it could be filled up or left blank depending on the user. Therefore, I need to dynamically allocate memory to the array comments. [CODE] typedef struct userComments { char comments; } name; …

Software Development c visual-studio
Member Avatar for zeroliken
0
133
Member Avatar for DesignGhosts

Hi there, I am trying to apply a Manifest file to my delphi application so that it can run with administrative permissions, I have been following [URL="http://delphi.about.com/od/delphitips2009/qt/delphi-vista-registry-run-on-startup.htm"]this Tutorial[/URL] part Faking UAC Rights - How to Request Execution Level. I have got to step 6 where I start getting problems, I …

Software Development assembly delphi file-system ide pascal qt
Member Avatar for DesignGhosts
0
2K
Member Avatar for Pravinrasal

I have stored an array in database field name "[B]exp_values[/B]" like : [{"concentration":"30","answers":60},{"concentration":"30","answers":60},{"concentration":"30","answers":60}] and I want to retrieve from database I am using spring and I created pojo(bean) class like [CODE]public class ExperimentParameterBean { private String username; private String[] exp_values; public String getUsername() { return username; } public void setUsername(String …

Software Development java
Member Avatar for Pravinrasal
0
164
Member Avatar for Perlie

Hi! I'm working on a Perl code since two weeks without found anything so, I'm asking for your help. I have two files: The first is like this: [CODE] 141374_at AttA 141559_at sec5 141691_at spz 141930_at imd [/CODE] These datas were selected before according to a criteria. And the second …

Software Development perl
Member Avatar for Perlie
0
167
Member Avatar for saneeha.nust

The following code line is working fine... XmlNode sslNode = appHostNode.SelectSingleNode("sites/site[@name = 'www.wow.com']/ftpServer/security/ssl"); Now I want to pass a variable instead of 'www.wow.com'... please guide how can I do it....

Software Development xml
Member Avatar for saneeha.nust
0
65
Member Avatar for pseudorandom21

Is there some trick to networking between LAN machines? I want a client/server system on the network but I haven't a slightest about the IP. I'd like to avoid dropped packets, so from my limited knowledge I'd go with TCP. Etc. How do I locate another machine via IP on …

Software Development client-server
Member Avatar for BobS0327
0
124
Member Avatar for C0ding

Hello everyone, Is been a while since i've been trying to rename a file using the ren batch command, but for some reasons is not working for me. could some one please give me an idea on how to reanme a file with a batch file? Thanks in advance. This …

Software Development file-system shell-scripting
Member Avatar for C0ding
0
254
Member Avatar for ilearnz001

Looking To learn how to send data from a program to a webservers webpage. More specificly sending the data to <form> tag within a html file. Trying To Find out how to do this, code examples would be prime. Also Any Guides on connecting proxies -- who then connect to …

Software Development c++ html-css
Member Avatar for ilearnz001
0
235
Member Avatar for kiail

I have a credit card verification that is giving me a little bit of trouble. I can get the program to verify everything but Amex. I'm only needing to verify Discover, Visa, MC, and Amex. It simply tells me Amex cards are invalid. I've used a few different websites to …

Software Development pdf
Member Avatar for kiail
0
750
Member Avatar for triumphost

K so atm, I'm having problems understanding ENDIF and IFDEF preprocessor stuff.. I want to Use a specific method if a file is included.. If not, use a different method.. Since toupper is defined in CCType I tried to check if that file was included.. if it was, use toupper …

Software Development c++
Member Avatar for ravenous
0
95
Member Avatar for zeroflee09

How would i connect different tables with each other in vbnet2008 which ive connected by the database wizard ? im suffering from this problem for 4 days and i havent fixed it ..and o search over the net but they give me the solution by hard coded that are related …

Software Development vb.net
Member Avatar for zeroflee09
0
100
Member Avatar for kww228

Hi all, I am at a lost and do not know where to start from. Here is what I have to do "Given the data below, you are to design an IA-32 assembly language program to sort array X by the number of binary 0's in each member and save …

Software Development assembly
Member Avatar for kww228
0
319
Member Avatar for tendaimare

I just attempted to insert a .jpg image into an access 2010 database but now I want to retrieve it and now I have an error that says "parameter is not valid" [CODE] Con.Open() Using com As New OleDbCommand("Select Picture from MyImages where ID =1", Con) Dim imageobj = com.ExecuteScalar …

Software Development image vb.net
Member Avatar for mikeybware
0
199
Member Avatar for mikeybware

I have the following code that I am hoping to get working. The code will check for available DYMO printers and print the label. You are to create a template label and I saved mine as template.label. In that template label I have a text field referenced as TEXT1. The …

Software Development printer vb.net
Member Avatar for mikeybware
0
1K
Member Avatar for zeroflee09

How would i explain this problem. hmmm... I have a program for the database of the patient's record and I have a different tables which are categorize, like table for personal information , table for gynecological history and so on, each table has the column "[COLOR="Red"]NAME[/COLOR]" which is for the …

Software Development vb.net
Member Avatar for adam_k
0
138
Member Avatar for Alleyn

Guys I need help on how to extract data from this web page [url]http://hidemyass.com/proxy-list/[/url] Its mainly the Ip address and port but i have no idea in where to start. I know to start out with this Dim elements As HtmlElementCollection = Me.botBrowser.Document.All but i dont know how i would …

Software Development http-protocol vb.net
Member Avatar for fiaworkz
0
1K
Member Avatar for Shaye12321

Hey there! I'm trying to figure out how to get a random letter generator for a program I'm working on in my computer science class (it's in C++). I need to generate 5 random capital letters between A and P (A, B, C, D, E, F, G, H, I, J, …

Software Development c++
Member Avatar for Shaye12321
0
1K
Member Avatar for applejax77

Below is an address book program I am working on. The way it stands now, when the data is entered and writes to a text file it writes the line of data like, John Doe 1234 Help Me Avenue Dallas Texas 98956 Johnathan Doe 2345 Derby Lane Omaha Nebraska 45678 …

Software Development file-stream file-system gui java java-swing
Member Avatar for applejax77
0
246
Member Avatar for Ashenvale

Hi guys>.< I'm trying to make a program that suppose to output like this: [QUOTE]Enter a String: [COLOR="red"]1231asd[/COLOR] No. of Digit: [COLOR="red"]4[/COLOR] End the Program? [COLOR="red"]y[/COLOR] [/QUOTE] *the [COLOR="red"]red[/COLOR] part is the input from the user. but the problem is, the no. of digits only display 0 and not the …

Software Development java
Member Avatar for Philippe.Lahaie
0
113
Member Avatar for group256

Hello everyone, I have to code an array that in each row, it has 16 columns! So I called it myself a 17 dimensional array but I was wondering what data sturcture in Python can best represent this keeping in mind that, it should be easily addressable and modifible. For …

Software Development data-structure python
Member Avatar for group256
0
181
Member Avatar for faithful4ever

Hi, I'm trying to define a dynamic array that consists of an email address and a home address. How can I define them dynamically using malloc() in the below struct? [CODE] typedef struct entry{ char name[40]; /* contains name */ char phone_number[9]; /* contains phone number */ struct entry *next …

Software Development c
Member Avatar for -[xxxxxxx]-
0
149
Member Avatar for aianne

Hello everyone! :) I'm sorry I'm new to this stuff. So I'm trying to create a simple system information and I am attempting to populate a listview control and I get a Run-time error '380': Invalid property value. I hope you can help me and I hope it made sense. …

Software Development listview visual-basic
Member Avatar for aianne
0
2K
Member Avatar for sha1023012

This is probably kind of simple but trying to understand . When the button is press create a person or an employee based on the above checkbox. Put all of the form data into the class object using either the constructor or properties.Display all of the class information using a …

Software Development
0
80

The End.