132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shiftingspanner

I'm teaching myself C++/CLR using Visual C++ 2008 (I'm so new I'm not too sure how even to phrase that all) and just as soon as I think I understand something it turns around and bites me. I have a class that looks like this: [CODE]public ref class TABLE_KeyData{ public: …

Software Development c++
Member Avatar for shiftingspanner
0
179
Member Avatar for shizumaru21

Good day i have stumbled upon this forum and browsed some of its threads and found them really interesting. I am starting to code my own batchfile, much like it kills some pesky exe's and removes some malware generated registry entries. My problem is "How can i search and delete …

Software Development
Member Avatar for D1G1T4L3CH0
0
152
Member Avatar for Silen

I'm writing a cross-platform code and I need to be sure the following won't make me trouble. [code=c] struct X { unsigned char a:3; unsigned char b:5; }; [/code] Is using other then int types is part of the ANSI C? Will it be compiled with every compiler?

Software Development c
Member Avatar for Silen
0
133
Member Avatar for Srcee

What will be in CH and AH after these commands? MOV AX, 1234 MOV BP, AX MOV DX, 999 MOV DI, DX MOV CH, 222 [bp+di]

Software Development assembly
Member Avatar for Srcee
0
205
Member Avatar for ceyesuma

Hello The ActionPerformed will not unload the viewPort to load the new viewPort that holds a table. is there a way to reload the table? The first actionPerformed supplies the table but the next will not remove table and add the new one. [code] package view.content.panels.guide; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; …

Software Development java java-netbeans java-swing
0
58
Member Avatar for ticktock

Hey all, having a little trouble transferring my listview items into a database. I have transfered all of the listview items into a List<> for use during the population of the items in my database here is my dataaccessor class, it contains the reader writer and writer statements generator: [CODE] …

Software Development dataset listview open-source sql
Member Avatar for finito
0
264
Member Avatar for zango

So the following is where I think the problem lies in my code: [CODE]public void actionPerformed(ActionEvent i) { int temp; double newtemp = 0; String inputString; inputString = infield.getText();//pulls the number that was entered in the input field temp = Integer.parseInt(inputString);// makes a new variable to handle the input //tells …

Software Development java java-swing window-manager
Member Avatar for javaAddict
0
755
Member Avatar for drt_t1gg3r

I am having a problem copying data members from an inherited class to the base class. All of the data is copied except the container data. [CODE] #ifndef NPC_H #define NPC_H /* * Basic parent to all other NPC types. * NOTICE: player is considered an NPC type */ enum …

Software Development c++
Member Avatar for ifezuec
0
211
Member Avatar for ifezuec

How do implement a class that displays a 2 by 2 matrix

Software Development c++
Member Avatar for NP-complete
0
72
Member Avatar for Xufyan

i want to write a program that prints the value in array which are at odd position, i've this for single dimensional array but confused about 2-D array. Single dimensional: [CODE] int main(void) { int num[10]; int i; for (i=0;i<10;i++) { printf ("Enter %d value: ",i); scanf ("%d",&num[i]); } for …

Software Development c
Member Avatar for Xufyan
0
172
Member Avatar for earlyriser

Hello. I have some troubles with a constructor, I can't figure out why a WHILE isn't working as I expected. The program stops there and it doesn't continue. Thanks in advance. [code]// reading a text file #include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; struct Cours { …

Software Development c++
Member Avatar for ifezuec
0
333
Member Avatar for Smith5646

I have a program that adds controls on the fly to an auto-scroll panel. When the panel is scrolled (viewing the bottom of the panel for example) and a control is added, it looks like it is added assuming the top left corner of the panel is still at 0,0 …

Software Development vb.net
Member Avatar for Smith5646
0
813
Member Avatar for ahaykal

Hello members, Well I am always facing trouble with operator overloading. I just have this Assignment in which when I reached operator overloading nothing worked. I tried to do it in many ways but couldnt. Could someone help with this issue please! the question asks to include d) An overloaded …

Software Development c++
Member Avatar for nbaztec
0
178
Member Avatar for jasweb2002

Hey everyone, This is my first time here just to let ya know. Hopefully you can help me. :D The language is C++. I am currently working on a file that consists of functions to manipulate doubly linked lists from the main program. After writing several function everything was fine. …

Software Development c++ file-system
Member Avatar for Jean <Brasil>
0
399
Member Avatar for lionaneesh

[CODE] #include<stdio.h> #include<string.h> #include<arpa/inet.h> #include<netdb.h> #include<sys/types.h> #include<sys/socket.h> #include<fcntl.h> #include<sys/stat.h> #include<stdlib.h> #include<time.h> int main() { FILE *logs; logs = fopen("/home/aniroot/logs/log.txt","a"); if(logs = NULL) { printf("fopen failed ... There would be no log for this session!!!"); } int sockfd,newfd; int err; struct addrinfo *res,*p,hints; struct sockaddr_storage their_addr; socklen_t addr_size; int yes=1; char …

Software Development c session
Member Avatar for abhimanipal
0
138
Member Avatar for ketanbembi

Hi i am new bie to swings. if i have a JTable. And i want to add number of rows with different number of columns like Employee1, Software Developer, swings Employee2, software developer What is the way of adding rows having different number of columns to a JTable Thanks.

Software Development java
Member Avatar for DeadSoul
0
157
Member Avatar for Dave Sinkula

Many times [inlinecode]strtok[/inlinecode] is recommended for parsing a string; I don't care for [inlinecode]strtok[/inlinecode]. Why? [list][*]It modifies the incoming string, so it cannot be used with string literals or other constant strings. [*]The identity of the delimiting character is lost. [*]It uses a static buffer while parsing, so it's not …

Software Development c
Member Avatar for Aia
0
1K
Member Avatar for sarosh

if at the end of the code i write this o execute main, [code] if __name__ == '__main__': try: main() except KeyboardInterrupt: pass[/code] isnt thre anyyy other way to exit the interpretor except pressing ctrl -c ???? the interpretor halts even if code ends and then i have to press …

Software Development python
Member Avatar for vegaseat
0
128
Member Avatar for lerkei

do you have an idea in how we can move and drag image for games proposes.?

Software Development image visual-basic
Member Avatar for Ikram232
0
111
Member Avatar for gkaykck

Hi I am trying to make my homework about a command line calculator, and i am trying to divide the entered string into small parts and i am trying to use strtok for this. [CODE] #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> struct var { char name[10]; double value; …

Software Development c
Member Avatar for gkaykck
0
601
Member Avatar for Martin.S

Hi, I'm having some trouble with trouble with an If statement in my program. It's a series of wind speed brackets to select the category from the Saffir Simpson Scale of hurricane classification. The problem I'm having is that it won't select the correct category based on the wind speed …

Software Development vb.net
Member Avatar for Martin.S
0
96
Member Avatar for Shaida

[B]I've written a code but it doesn't run! I can't find the problem and the Error is : Declaration Syntax Error will anyone help me?! :)[/B] [CODE] #include<iostream.h> void hi(void); void name(void); int main() { int m; cout<<"Enter one of numbers below:\n"<<"1.Hi\n"<<"2.Name:"; cin>>m; switch (m) { case 1: hi(); break; …

Software Development c++
Member Avatar for Shaida
0
2K
Member Avatar for Vivek Varma

im a little on the weak side in loops.....n hearing that programs are solved by bright people here.....i am requesting help with a few programs in loops...i dont understand them...and am expecting you people to help me 1- ******* _***** __*** ___* __*** _***** ******* NOTE-(_) MEANS SPACES 2-Write a …

Software Development java
Member Avatar for genevish
0
73
Member Avatar for Ms.passion

Hi everyone I'm really exhausted with this error I'm using visual studio and I'm trying to build a contact form And all the information should be saved in contact table in the database Would you please help me with this error? I tried a lot to figure what's wrong, but …

Software Development open-source vb.net visual-studio
Member Avatar for Ms.passion
0
202
Member Avatar for dilansankalpa

I need to generate a chart using MSchart in c#. Im using visual studio 2008. the values of an array of 16 bit signed intigers (Int16) needed to be plotted against the array index. Please can anyone reply with an example.......

Software Development visual-studio
Member Avatar for ddanbe
0
84
Member Avatar for Srcee

What would be in registers ax, ah and al after these commands: MOV AX, 1010 MOV AH, 5 ADD AL, 5 I understand that ax contains ah and al but I don't know the answer of this question

Software Development assembly
Member Avatar for Srcee
0
91
Member Avatar for tomtetlaw

I am using the Win32 API. How would I be able to check if the shift key is being held down when processing use input? I know that value is MOD_SHIFT but I don't know if it's lParam or wParam of WindowProc that will hold this, of if it's any …

Software Development api c++
Member Avatar for mitrmkar
0
169
Member Avatar for Iam3R

Hi , i know one method of deleting a record from a binary file. that is : read the contents of the file and every time check for some criteria based on which we want to delete the record. if record does not match criteria then write to new file …

Software Development c file-system
Member Avatar for Adak
0
1K
Member Avatar for comput scince

i have a project anc i need to do an interface to my c program , there is any functions to do it?

Software Development c
Member Avatar for comput scince
0
89
Member Avatar for menonnik

I have a code like [code] int a=10; a=(++a)+(a++)+(a++)+(a--)+(--a); printf("%d",a); [/code] this gives the output as 51. while [code] printf("%d",(++a)+(a++)+(a++)+(a--)+(--a)); [/code] gives 56 as ouput. can you please explain the flow in both the statements.

Software Development c
Member Avatar for JuhaW
0
97
Member Avatar for z_zendegi

I have a question about programin in matlab, whould you please help me? I have a template of a part of face , ex. an eye. I will determine that in which picture in a database, the above eye exists?

Software Development
Member Avatar for z_zendegi
0
75
Member Avatar for extemer

guys me trying to use switch statement in this program but cant get to end... i tryed to convert string into char but dont knw why it still not getting right... please help me [code]import javax.swing.*; import java.io.*; class HappyBirthday { public static void main(String[] args) throws IOException { String …

Software Development java java-swing
Member Avatar for extemer
0
256
Member Avatar for Ferny84

Hi everyone, I am having some trouble here... I am asking the user to enter a file, and that file will read the contents and determine if the student will pass or fail the class. That part I am having trouble with is when I have to decide if the …

Software Development c
Member Avatar for csmgsarma
0
124
Member Avatar for naresh9876

[CODE] Dim Customer As DataSet1TableAdapters.Customer1TableAdapter = New DataSet1TableAdapters.Customer1TableAdapter Dim Dt1 As New DataSet1.Customer1DataTable Dim TA1 As New DataSet1TableAdapters.Customer1TableAdapter Dim DR1 As DataSet1.Customer1Row Try Customer.InsertQuery(TxtCust.Text, MaskedPhone.Text, TxtAddress.Text, MaskedIC.Text, MaskedDL.Text) MsgBox("data entered") DR1 = Dt1.NewRow Dt1.Rows.Add() Customer.Update(Dt1) Dt1.AcceptChanges() Catch ex As Exception MsgBox(ex.Message) End Try[/CODE] i need help in this, i've searched …

Software Development vb.net
Member Avatar for kvprajapati
0
131
Member Avatar for Chris11246

I just downloaded visual studio c++ 2010 express and when I tried to debug my code it doesn't seem to create an executable file. Is there some setting that I have to change?

Software Development c++ visual-studio
Member Avatar for Chris11246
0
119
Member Avatar for thompsonSensibl

Hi folks. I'm making a GUI. It contains multiple JPanels. I'm having trouble making contents of other JPanels (than the first/main JPanel; others are subclasses to the first one) visible... From the first JPanel, I call a draw method to a second JPanel. This second JPanel's draw method displays a …

Software Development gui java
Member Avatar for thompsonSensibl
0
111
Member Avatar for darkdai

hey everyone, im tryin to generate random strings and store them in an array. can anyone please show me?

Software Development c
Member Avatar for Narue
0
122
Member Avatar for Arkheart

I have been using java for some time, and can code back end stuff with ease. GUI's on the other hand I Find hard to deal with. So anyway, I'm making a game (text based), and would like to implement a console type GUI. I have already made a jframe …

Software Development gui java
Member Avatar for Arkheart
0
130
Member Avatar for MaydayLove

Hey guys, I'm writting a program that reads a list of names from a file called name.txt and instert these names directly into a linked list in alphabetical order of [B]last[/B] names. For example, if the text file has these names: Henry Johns III, Albert Einstein, Henry Johns II, Mary …

Software Development apple java linked-list
Member Avatar for peter_budo
0
169
Member Avatar for JOSheaIV

okay I have been looking all over the web trying certain pieces of code and I have had no luck. I am tired and I really am at a lost right now. I am trying to make it so that when the user mouses over a select set of cells …

Software Development vb.net
Member Avatar for JOSheaIV
0
7K
Member Avatar for MrDiaz

Hey folks, I am trying to normalize a view on a given output. This is how it works, I need to print several characters but the maximum chars i can print have to be 40 per line. [QUOTE]aaaaaaaaaaaaaaaaaaaaaaaaaaaaa...till 40 aaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbb[/QUOTE] The algorithm works as follows: I have to find …

Software Development algorithm c
Member Avatar for MrDiaz
0
126
Member Avatar for qqabb

im a beginner of coding and using python. Im trying to code for a linear search but I don't know how to:(

Software Development python
Member Avatar for TrustyTony
0
1K
Member Avatar for shwick

I've been trying to match some incoming strings from a mud(text based rpg) and I'm having some trouble. I need a regex that will match the <mob> tag in these strings. You can have a separate regex per sentence to match the surrounding text. You would stomp <mob> into the …

Software Development python regex
Member Avatar for TrustyTony
0
110
Member Avatar for zkelvin2010

I have to write a program that creates a text file that contains a power of two table in HTML format. Also the instruction are [COLOR="Red"]The file should start with something like: [/COLOR] <html><head> <title>Powers of Two</title> </head> <body> <table border cellpadding=5> <tr><th>Power of 2</th><th>Value</th></tr> [COLOR="red"]Each line of the table …

Software Development java
Member Avatar for jwenting
0
83
Member Avatar for zreed

I need to code a program for my friend and it has been giving me some difficulties. This needs to have two classes, one called Tester and another called Game. And the data in the Game class needs to be pulled to the tester class after the calculations are finished. …

Software Development gaming java oop
Member Avatar for jwenting
0
295
Member Avatar for cyon

Given a coordinate string -- 'x, y' -- where x and y are 1-4 digits, separated by \D+: '34, 58' I want to able to get a tuple with each number as an integer: (34 , 58) [B]Method 1[/B]: I could find the numbers, convert the tuple groups() to a …

Software Development python regex
Member Avatar for ultimatebuster
0
7K
Member Avatar for blazahjazz

Hello, I'm a high school student and I just started learning Python. I'd really appreciate some help on some problems I've been assigned, and some tips that could help me out in the future with problems like these. >>> getLeaves ( jenny ) [5,3,0,9] >>> >>> getLeaves ( joshua ) …

Software Development os-x python
Member Avatar for griswolf
0
157
Member Avatar for madonline

can somebody explain the mechanism of the keyword "malloc"(allocating memory) in C++ by using a simple program code.........?

Software Development c++
Member Avatar for madonline
0
125
Member Avatar for MrDiaz

I have an array codes[26] which contains numbers inside {25,4646,23,12,.....29} Each position in the array corresponds to a letter of the alphabet. code[0] is a, code[1] is b, etc... I'd like to print the occurrences of each letter, something like this. If there are 12 A's, 5 B's AAAAAAAAAAAAA BBBBB …

Software Development c
Member Avatar for MrDiaz
0
123
Member Avatar for cmsc

I'm trying to run this code in cygwin 1.7 but i get segmentation fault when I choose to search. I tried this in cygwin 1.5 before but it works. does anybody know the reason why it won't work in cygwin 1.7? here's the code [CODE] /**************** Rachel Perono running BST …

Software Development c
Member Avatar for Tellalca
0
118

The End.