132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for merse

A want to create some kind of global memory table. Every time when I create a specific kind of object, I wolud like to register it in the table, and save some data. Let assume that this "memory table" is a map, and a global variable. Let assume that I …

Software Development c++
Member Avatar for merse
0
118
Member Avatar for lionaneesh

[CODE]#include<stdio.h> #include<string.h> int main() { int i,x; char c[100]; printf("Enter input :"); fgets(c,100,stdin); for( i = 0 ; i <= (x = (strlen(c))) ; i++) { if( c[i] = '\t') { c[i] = (' '); printf(" "); } printf("%c",c[i]); } }[/CODE] the aim of this program is that it will …

Software Development c
Member Avatar for Luckychap
0
142
Member Avatar for mytime19

I am trying to draw stars/asterisks but i can't. Any idea? [CODE] import java.io.*; import java.awt.*; import javax.swing.JPanel; import javax.swing.*; public class kmd1234 extends JFrame{ kmd1234(){ JFrame f; JPanel p; JLabel l; int x,y; f = new JFrame("my frame"); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); p = new JPanel(); p.setPreferredSize(new Dimension(512, 512)); p.setBackground(Color.WHITE); l = …

Software Development java java-swing
Member Avatar for mytime19
0
94
Member Avatar for thuyson

using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Data.OleDb; using System.Web; using System.Configuration; using System.Data; using System.Collections; using System.Windows.Forms; //using System.Data.ConnectionState; namespace QuanLiDSSV { public partial class Frm2 : Form { public Frm2() { InitializeComponent(); } private void btnBrowse_Click(object sender, EventArgs e) { OpenFileDialog sh = new OpenFileDialog(); sh.FileName …

Software Development microsoft-access open-source
Member Avatar for Sodabread
0
90
Member Avatar for tquiva

I know I would first declare the input variable as char. But that just reads in the first letter of the word. How can I print or read each letter of a certain word?

Software Development c
Member Avatar for hkdani
0
167
Member Avatar for ryukifaiz

I am writing an x86 assembly language program that between base numbers.My problem is how to make it happen like this: [QUOTE]Welcome 1. Binary <-> Octal 2. Binary <-> Decimal 3. Binary <-> Hexadecimal 4. Octal <-> Decimal 5. Octal <-> Hexadecimal 6. Decimal <-> Hexadecimal Please enter the type …

Software Development assembly
0
101
Member Avatar for skorm909

ok so heres my script [CODE] #include <iostream> using namespace std; using namespace std; int Unitedstates() { int action; char action1; cout << "you have chosen to learn more about the united states. Now What will you do?" << endl; cout << "1. The quality of doctors in the United …

Software Development c++
Member Avatar for skorm909
0
90
Member Avatar for oakes121

The Assignment is as follows: Write a program that allows the user to enter foods and their calories into two arrays. Allow for UP TO 100 entries, although the actual number may be way less. When the user types "done" then stop asking for new entries. Next, prompt the user …

Software Development c++
Member Avatar for WaltP
0
91
Member Avatar for GradStudent

Hi, I have a Entity Bean and A session bean facade. My Client side look up works fine and I am able to retrieve the .count() method results. But when things involve serialization, like .create() or delete() or edit(), java.lang.reflect.UndeclaredThrowableException comes up.. Any pointers will be appreciated [CODE] package eb1; …

Software Development java session
Member Avatar for jwenting
0
169
Member Avatar for Darkest Shine

I need to scan for the following input type using C: number letter number so i used the follwing: scanf("%d%c%d", &n1, &lett, &n2); Unfortunately with this, whenever I attempt to input a single number and press enter, scanf continues to expect another input. How can I adjust the program so …

Software Development c++
Member Avatar for Salem
0
130
Member Avatar for axa121

Hi, I'm processing a small text file which contains information about the Winter Olympics. However I don't know how to keep the list the same for each country whilst making a new list for a different country. So far I've read in the lines and I have put the data …

Software Development data-structure python
Member Avatar for axa121
0
92
Member Avatar for guest7

Hi, I am trying to compile an open source code on linux Ubuntu and getting the following error: conflicting types for ‘strlen’ I am pasting the program in which it is giving me the error : [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include "port.h" /* * strstr - find first …

Software Development c open-source ubuntu
Member Avatar for nezachem
0
466
Member Avatar for jenjenjenjen

Yes I am new to learning java. I am just learning loops. For my online college class I have to write a program using the for loops. This program needs to give all even numbers between 0-100. I have a program written that gives me all numbers 1-100. Can anyone …

Software Development java
Member Avatar for mytime19
0
128
Member Avatar for pyroclastic

Hi everyone, This is my first post on daniweb! I'm fairly new to C++ and am trying to add sound to my application using FMOD. Now, I have managed to get sound playing correctly using FMOD, but I'm now trying to get all the sounds I want loaded, into a …

Software Development c++ visual-studio
Member Avatar for pyroclastic
0
101
Member Avatar for Tech B

My friend gave me 10,000+ ROM's for Sega, SNES, NES, and GBA. They where all individually zipped. I go fed up trying to unzip them one by one, and decided to write a script to do it for me. It unzipped about 5,000 in under a minute. Python's zipfile module …

Software Development python
Member Avatar for Tech B
0
623
Member Avatar for cblue

Here is the formula i'm suppose to use: i'm suppose to to write a complete program with a function using two parameters to calculate: x(!)^n, where x(!)^n = x!! ... ! use BigInts For the calculations ----- n times this wis what I have, i don't think it's right, if …

Software Development c++
Member Avatar for forough95
0
224
Member Avatar for beforetheyknew

Hi im still quite a terrible programmer, so some of this is just confirmation of stuff i think is right (and please correct me if i have the wrong idea!) How would you program an anogram maker ? I was thinking of breaking up a String with substring, and then …

Software Development java
Member Avatar for BestJewSinceJC
0
358
Member Avatar for Lolalola

Hi, Starts the program displays two processes, and emits This one error: "Access is denied". Compiling errors do not [CODE="C#"] foreach (Process proc in allProcs) { Console.WriteLine("process: {0}, id: {1} Time: {2}", proc.ProcessName, proc.Id, proc.StartTime ); } [/CODE]

Software Development
Member Avatar for Lolalola
0
91
Member Avatar for jyotirmoy

Hi Everybody I am trying to play a MPEG4 Video in JMF over a HTTP server. I tried to write an applet to play this mpeg4 video over HTTP using javax.media package. So, can anyone tell me any solution for this problem? regards Jyotirmoy

Software Development java video
Member Avatar for amduta
0
742
Member Avatar for detito

I wrote a code to read the parity check matrix named "tannergraph" which is stores in a sparse format to save space. It is in the following form: Line 1: Number of Variable Nodes(VN) Number of Check Nodes(CN) Line 2: Column weight Row weight Next VN lines: degree of the …

Software Development c++
0
274
Member Avatar for dawsonz

Hey, I currently have a dataGridView which displays information from my SQL database. I have a button that I use to update/add into the SQL database - for example a user ammends a field in the dataGridView this automatically updates the database. I now want to implement a button that …

Software Development dataset open-source
Member Avatar for yaninea
0
190
Member Avatar for merse

My problem is not serious, its just a question about the most beautifull solution. Maybe somebody has a better idea! I have a mathematical class having some numerical functions. It is convenient for me, and speed up the program, if I introduce a member array called "memory", and store the …

Software Development c++
Member Avatar for mattjbond
0
175
Member Avatar for lrolsto1

So, I am working on a project that uses inheritance. I have a class Creature, which extends Thing. Also, I have classes Tiger and Ant that extend creature. I also have a TestCreature class. All of these are in the same directory, and they all compile. However, when I run …

Software Development java
Member Avatar for Ezzaral
0
93
Member Avatar for heynow12

I need help with understanding how to fix my for loop and the if tests. Originally, in the for loop, for the end value i had k<=3..but this is wrong because i need to loop to keep going until it passes the test. So i was told to try setting …

Software Development c++
Member Avatar for phyrtech
0
170
Member Avatar for kayjenx

I have a database I am creating with about 50 users over a network. There are about 6 groups of users and these users are spread across 10 branches. I want to block/allow users from particular forms and views. For example I want branch users forms to be filtered by …

Software Development display sql vb.net
Member Avatar for kayjenx
0
208
Member Avatar for smeghead007

Ok I got the code to work but with some errors. First when i print out the aorted array to the file it is sorted escept for one number in the beginning second it gives me a negative number whihc i believe is a pointer how can i fix this? …

Software Development c++ file-system ios
Member Avatar for VernonDozier
0
135
Member Avatar for ttboy04

Hello, I am trying output number of repetion from user request. So basically there will be repetition print out of the times table when the user enter in the "Enter repetition" dialogbox. For example in the "Enter repetition" dialogbox, i will enter 2, then in "Which timestable do you want" …

Software Development java
Member Avatar for phoenix911
0
103
Member Avatar for sid78669

Hey Everyone! I am writing a program for students and to keep it platform independent I have chosen to convert it to Java. Now, earlier I was using C# and with MS Visual Studio, I was able to write a plugin which would save all open ms office documents. I …

Software Development java visual-studio
Member Avatar for masijade
0
152
Member Avatar for esy928

Greetings! I'm almost finished in creating a geometry wars like game (except that you cant move =P ). For the last few days I've been stuck doing the diagonal movement of the bullets. I wish someone could help me =D here's the constructor of the bullet class x & y …

Software Development gaming java mathematics
Member Avatar for esy928
0
1K
Member Avatar for o0mkh0o

Hello! Im having a problem with the following code structure. The code compiles without problems but when i start the program i get an "exception: __non_rtti_object at memory location...". In the constructor of the model-class i still can get the object information of the node-class through the base pointer. Once …

Software Development c++
Member Avatar for o0mkh0o
0
330
Member Avatar for Prota

Hi! I am making a project about doublepointers and inheritance. Have some small issues that should not be difficult to resolve, but I just cant get a grip of it. The task is to add two types of vehicles that have some of the same characteristics but not all. I'm …

Software Development c++
Member Avatar for Prota
0
259
Member Avatar for StephNicolaou

Hi all, I thought it would be quicker to design using NetBeans, but now I'm finding that it's more trouble to work with NetBeans automatically generated garbage 'code'. Anyhow, I've tried to remove its automatically generated code for the frame's scrollbar but that just totally messes up the layout of …

Software Development java java-swing
Member Avatar for StephNicolaou
0
110
Member Avatar for sklemp

Hello everyone, I have this code below and everytime I run it I get this error. Please help. [CODE]Private Sub SendEmail(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click Email.To.Add(Settings.txtTo.Text) Email.From = New MailAddress(Settings.txtFrom.Text) Email.Body = "Email Body" Email.Subject = "Email Subject" SMTPServer.Host = Settings.txtSMTPServer.Text SMTPServer.Credentials = Authentication SMTPServer.Send(Email) …

Software Development email vb.net
Member Avatar for sklemp
0
129
Member Avatar for needHelpVBA

Hello everyone :) I have to do a very imporant project... And I would highly appreciate some useful hints, since I have NO experience at all with VBA... (I have read a book, but just from reading and following those instructions I am not able to key my own tool... …

Software Development visual-basic
Member Avatar for needHelpVBA
0
94
Member Avatar for PDB1982

I'm trying to understand how static ints work within classes, and I've fallen on some code that I don't quite understand how the answers come out to be what they are showing. [code] // static members in classes #include <iostream> using namespace std; class CDummy { public: static int n; …

Software Development c++
Member Avatar for pecet
0
137
Member Avatar for feedmeh8

Hey guys. Im new to these forums and was hoping i could get some help. Trying to figure out how to divide a number by another number in scheme without using /. I have written these functions that i can use in creating the divide function: [CODE](define pwr (lambda (a …

Software Development
Member Avatar for tuffff
0
853
Member Avatar for forhacksf

I want to create a link to a web page into an about box and i want it to open it with the default browser.I googled it and found nothing that helps...pls a little help

Software Development c# seo web-browser
Member Avatar for forhacksf
0
114
Member Avatar for stefy14

i am a University student pursuing a degree in computer science, it seems as though i really suck at validating things... well I just don't really get the concept i know its conditions but i when i try one it always seems to crash my program I've been trying to …

Software Development c++
Member Avatar for tetron
0
139
Member Avatar for sean108

Can some one give me some code on how to use windows.h..... im making my project, about ATM, i want to make it look good so i need some code on how the use windows header. I saw this person using a goto(x,y) code... and I saw his exe file. …

Software Development c++
Member Avatar for kendapcwiz
0
519
Member Avatar for tiwas

Hi guys, I've trapped a misbehaving app in a panel and need to zoom out to make the whole app appear inside the panel without having to make the panel larger. Anyone know how to do this? Is it even possible? Cheers!

Software Development
Member Avatar for tiwas
0
79
Member Avatar for AutoC

I'm getting this error at the end of my program... [code] *** glibc detected *** ./a.out: free(): invalid pointer: 0x00617ca0 *** ======= Backtrace: ========= /lib/libc.so.6[0x684ac1] /lib/libc.so.6(cfree+0x90)[0x6880f0] /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xc986f1] ./a.out[0x804ce2f] ./a.out[0x804973d] /lib/libc.so.6(__libc_start_main+0xe0)[0x631390] ./a.out(__gxx_personality_v0+0x7d)[0x8048de1] ======= Memory map: ======== 00110000-00111000 r-xp 00110000 00:00 0 [vdso] 005fc000-00617000 r-xp 00000000 08:01 687043 /lib/ld-2.7.so 00617000-00618000 r-xp 0001a000 …

Software Development c++
Member Avatar for vikashkumar051
0
815
Member Avatar for forhacksf

I have to clone the calc.exe from winxp and i'm stuck.I'm new in c#. The problem is that I don't know how to get the next number when i press " + ",I take the first number from the textbox but after that I don't know how to read the …

Software Development c#
Member Avatar for Geekitygeek
0
248
Member Avatar for matt.clark.228

I am trying to use C# after using VB for a while. The problem that i am facing right now, is resizing things. In VB i would use the following: [code] Private Sub TextBox_Resize() handles mybase.sizechanged 'change the size of the text box when the size of the main control …

Software Development
Member Avatar for Geekitygeek
0
81
Member Avatar for wilsonz91

Hi, I would like to know if I could do this: if i were to enter 5 numbers, it would go like this: 5 4 3 2 1 I want to know if I can do it like: 54321 Basically I don't want the insertion to go to a new …

Software Development c++
Member Avatar for WaltP
0
2K
Member Avatar for StrangeArray

I'm attempting to write an application that searches for and displays optionally sized strings made up of optional characters (both determined by the user) from a file (of any type). The goal is to have said strings displayed in a listBox control. I'm fairly new to C#, so through this …

Software Development
Member Avatar for Geekitygeek
0
185
Member Avatar for chetanbasuray

I have 2 problems: First one is I want to put an user name password in a form...I have designed the table and database and I'm fetching the user names from a table and putting them in a combo box, from the combobox i select the required user name to …

Software Development dataset
Member Avatar for kplcjl
0
109
Member Avatar for lionaneesh

[CODE]#include<stdio.h> #include<string.h> int main() { int i; char line[100]; char line2[100]; printf("Enter some lines : "); scanf("%[^\n]",line); printf("2:"); scanf("%[^\n]",line2); if((i = strlen(line)) >= 80) { printf("%s",line); } if(strlen(line2) >= 80) { printf("%s",line2); } getchar(); return(0); }[/CODE] the main aim of making this program is that it will input 2 lines …

Software Development c
Member Avatar for jonsca
0
73
Member Avatar for Tarli14

Output: Enter name: Ferrial P. Esber A - 1 B - 1 E - 2 F - 1 I - 1 L - 1 P - 1 R - 3 S - 1 Space - 2 Please reply ASAP, thank you very much

Software Development java
Member Avatar for javaAddict
0
88
Member Avatar for dran08

Good day, I am a freshmen student in need of some help. I have created an ATM program. This program has text files created for the withdraw transaction, deposit etc. It is like a database program for me. First of all, I would like to know how to compare strings …

Software Development c
Member Avatar for dran08
0
185
Member Avatar for lionaneesh

[CODE]#include<stdio.h> #include<string.h> void reverse(char str[]); int main() { char str[100]; int i; printf("Enter to reverse : "); scanf("%[^\n]",str); reverse(str); return(0); } /* Function */ void reverse(char str[]) { int i; for(i=(strlen(str));i > 0; i--) { printf("%c",str[i]); } putchar('\n'); } [/CODE] in this programme when we input 123 output = 32 …

Software Development c
Member Avatar for jonsca
0
81

The End.