132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nerdinator

I have created a few applications in MFC. But I want to start saving the contents of them to files(just like word,guitar pro or paint). I tried serialization provided by MFC but I didn't like it that much because I couldn't check anything that was saved at all. So,I wrote …

Software Development c++ xml
Member Avatar for Ancient Dragon
0
193
Member Avatar for Carrots

Hi, I'm having trouble understanding how I should use pure virtual functions in my inheritance tree. I've drawn a class diagram which shows what I'm trying to achieve: [img]http://i42.tinypic.com/2qjdttd.jpg[/img] Here is what I've written: [B]main.cpp[/B] [code] #include <iostream> #include <string> #include <list> #include "base.h" using namespace std; int main() { …

Software Development c++
Member Avatar for mrnutty
0
134
Member Avatar for Faiza_Iqbal

first i had partioned my array into two subarrays. Then the quick sort switches to insertion sort for sorting the small sized subarrays. But the error is logic error, because when i enter 15 inputs, the first and the last inputs are not sorted at all..I think error is in …

Software Development c++
Member Avatar for MyrtleTurtle
0
286
Member Avatar for thehivetyrant

Hi, i didn't know whether to put this under C or Shell scripting so i chose this one. Well I am doing a piece of shell scripting and have written some code. and basically when i run it no prompt shows up so i cannot type commands like help or …

Software Development c shell-scripting unix
Member Avatar for Salem
0
113
Member Avatar for zacory

I'm creating a program that maintains a log file. The file is created at the start up of the program and appended to throughout the run. This works perfectly fine, but I went and manually added the program to run at start up in the registry. The program runs as …

Software Development c++ file-stream file-system
Member Avatar for tetron
0
93
Member Avatar for sid78669

I am using char * for getting data from the user. Now, if i just do [CODE=C++] char * data = new char[100]; cin >> data; [/CODE] The data is corrupted, i.e. only data before whitespace is stored; and the following is an example result: [CODE] enter: "Microsoft Co." data: …

Software Development c++
Member Avatar for Geoff_Giraffe
0
284
Member Avatar for kng

So i guess the titles says it all i m trying to create dynamic structure of adjacency lists and i m having some errors since i m a little new in C anyone mind taking a look at it and tell me of any mistakes i might be doing STRUCTURES …

Software Development c data-structure
Member Avatar for Salem
0
170
Member Avatar for Manny7

Hi, i've problem with reading arguments on command line. I don't know, how do I distinguish, if the user entered some argument with one or two dashes. I try: [code] while($ARGV[$i]) { if($ARGV[$i] == '--anything') { print "The argument with '--'.\n"; } else { print "The argumentwith '-'.\n"; } $i++; …

Software Development perl
Member Avatar for Manny7
0
108
Member Avatar for arafat_alam

sir i have no idea about the graphical work in c...bt i want to learn those things...how can i learn?????plz show me some way..

Software Development c
Member Avatar for Salem
0
92
Member Avatar for ckjie

Hi all, I'm new to this community. I am doing a project that I'd have to write a program to connect 2(at least) PCs together. each PC works as a server and at the same time as a client, which each of them can download the file which is shared …

Member Avatar for strmstn
0
185
Member Avatar for habib_parisa

Dear all, I have to use a funny structure in my code which has a 2D array and allocate it in the program. I do not know how to use malloc for that. This is the code: #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #define NUMBER_DECISION_VARIABLES (int)4 #define DIM …

Software Development c
Member Avatar for Salem
0
172
Member Avatar for neovo-88

Hi, Im new to java and was wondering if someone could help me with my problem. Im writing a program which will calculate how long a journey will take, the user will need to enter a character to represent what type of road/speed they are doing and how long the …

Software Development java
Member Avatar for neovo-88
0
169
Member Avatar for Dark.Paladin

hy im having a little problem with a loop with jgrasp here is my basic program [code] import javax.swing.JOptionPane; public class loops1 { public static void main (String[]args) { String name do { String name = JOptionPane.showInputDialog ("who is the cleverest person in the room?"); } while (name != "erin"); …

Software Development java java-swing
Member Avatar for Dark.Paladin
0
156
Member Avatar for chie12024

import java.io.*; public class EggTrader { public static void main(String[]args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int numofEggs,EggCount,Cash; double cashOnHand = 500; double pricePerdozen = 72; double unitPrice; public void buyOneDozen(double pricePerdozen) { numofEggs = Integer.parseInt(br.readLine()); numofEggs = getEggCount(numEggs,cashOnHand); } public void sellEggs(int numEggs,double unitPrice) { numofEggs = …

Software Development java
Member Avatar for viswaratha
0
229
Member Avatar for habib_parisa

Dear all, I have to use a funny structure in my code which has a 2D array and allocate it later in the program. I do it but I get error which is written below. I have urgently to finish this part of the code. Would be agreat help if …

Software Development c++
Member Avatar for VernonDozier
0
397
Member Avatar for blazinhieu

how do i write a program that a user can input 3 numbers (between 0 and 100), then the program will compare if the numbers are bigger are smaller than each other, and weather each number is smaller than 100 or greater than 0. required 2 class file in one …

Software Development java
Member Avatar for stultuske
0
108
Member Avatar for lethal.b

iam a noob at c++ and trying to learn it so go easy on me. basically i am trying to enter a some letters such as 'helody' and then check the letters it has in it and place the remaining letters of the alpahebet after it. so afterwords it would …

Software Development c++
Member Avatar for jonsca
0
112
Member Avatar for idreu2go4it

Oh do I need some serious help! lol. I'm working on a phone book in python. For some reason when I select the option, enter....say....the last name, even though it's on the file that my program is reading it tells me that it's not there. Can somebody please look at …

Software Development python
Member Avatar for snippsat
0
280
Member Avatar for Buttacup

Hi! I've been looking through online materials on this matter with no concrete definitions of what I can do with this. I am trying to export some of the functions from my class residing in my executable. I have tried every which way I can imagine but the variables I …

Software Development c++
Member Avatar for Buttacup
0
268
Member Avatar for charqus

Is there any function like this ? [url]http://wiki.sa-mp.com/wiki/Strmid[/url] Thank you :icon_cheesygrin:

Software Development c++
Member Avatar for tetron
0
680
Member Avatar for web_test

I was wondering if anyone helps me in the following case..? There're two prgs A.py and B.py A.py has two classes class x class y and class y has some print statements. I want to import 'class x' to B.py and using the following statement in B.py from A.py import …

Software Development python
Member Avatar for tzushky
0
113
Member Avatar for MichelleCrews

hi ... im trying to write a function that tells you if the time you called is a correct military time .... heres what i have so far [CODE]def valid_mil_time(mtime): if mtime <= 2359 : print ("true") else: print ("false")[/CODE] but if i was to call it, it looks like …

Software Development python
Member Avatar for snippsat
0
532
Member Avatar for reeddp1

First time poster, but longtime lurker. I've solved a million other problems with other threads, but this time I'm still stumped. My program is meant to take an array of dates and be able to change them, add days, and resize the array. It compiles OK, but I get a …

Software Development c++
Member Avatar for Fbody
0
670
Member Avatar for kstmchick

I have been attempting to write a program that takes an input from a button class and a graphics class that creates a gui for a game called three button monte. So far I've been able to get it to sort of work. The point is to have the "game" …

Software Development gui python
Member Avatar for vegaseat
0
417
Member Avatar for Icebone1000

Hi, thats very weird..if I pass my RECT by reference notting wrong happens, bu if I pass by value, the numbers get crazy. The correct values are: {top=159 bottom=480 left=400 right=640} What I get passing by value is: {top=0 bottom=1 left=1964816 right=1058984360} This happens at the first moment it enters …

Software Development c++
Member Avatar for Ancient Dragon
0
186
Member Avatar for fhast

hi, everyone i want to ask about EOF in C++ when i learn C to use EOF in my code is like this : [CODE] while (scanf("%d",&a) != EOF){ statement ... } [/CODE] but, when i use in C++ { [CODE] while ((cin >> a) != EOF){ statement ... } …

Software Development c++
Member Avatar for strmstn
0
134
Member Avatar for tzushky

Hi all, This is not a post about simply recvering user input with raw_input() and then using eval(), nor for input() use . I remember having used this once, but can't get a hold of the old code so I turn to you for fresh ideas. I am planning to …

Software Development python
Member Avatar for Gribouillis
0
372
Member Avatar for alfroad

what program will use with to problems.... write a program that will convert decimal to words... maximum exceed 3000. ex. 300= three hundred 32=thirty two 1002= one thousand two write a program that will convert a decimal to roman numeral.. maximum exceed 3000. 1= I 5= V 10=X

Software Development c c# c++
Member Avatar for stewie griffin
0
91
Member Avatar for netraven5000

Hello, I'm writing some C code for a class, and as part of it, I'm dynamically creating two two-dimensional arrays. One of them is a dynamic array of dynamic arrays - so I know that to clean that up I need to loop through each array and use free() before …

Software Development c
Member Avatar for netraven5000
0
237
Member Avatar for awtz123

hey, im new here and i need help in installing vb.net express edition 2008 in windows virtual pc - win xp, i use win7ultimate anyway. When install, it goes like this. please help i badly need to run it. I have installed MSsql 2000 and 2005 in virtual xp w/ …

Software Development mssql vb.net windows-xp
Member Avatar for awtz123
0
110
Member Avatar for sasaB

[code] #include <iostream> #include <string> using namespace std; class GuessAccount { private: string guestname; int guestid; double internetbill; string entrydate; int nodays; int noguest; double presentfees; double totalfees; public: void setguestname(); void setguestid(); void setinternetbill(); void setentrydate(); void setnodays(); void setnoguest(); void setpesentfees(); void settotalfees(); void displayinfo(); }; //implementation section …

Software Development c++
Member Avatar for strmstn
0
73
Member Avatar for JavaNewbieEK

I have a two input text field window in which users input an ID and Password. I then need to compare these passwords to allowable users. What would be the best method for associating each unique password with its specific user id?

Software Development java
Member Avatar for javaAddict
0
168
Member Avatar for BobC22

Hi im continuing to practise for c++ for when I go to uni next year and i have a problem with a practise example I have been given. I have set it up so the user can define the shapes and size etc, but I am unable to work out …

Software Development c c# c++
Member Avatar for mattjbond
0
827
Member Avatar for noumanayub

Hi Guys! I am doing a shopping Mall Project! I want that you people give me suggestions in order to make this project perfect... Regards Nouman Ayub.

Software Development java
Member Avatar for stultuske
0
49
Member Avatar for pfuturama

//less than 10= "too cold", 10-20= "avarage", 21-30="hot",bigger than 30 ="Too Hot" import javax.swing.JOptionPane; public class TmaTwo { public static void main(String[] args) { int number; int temp; String numString; numString = JOptionPane.showInputDialog ("Enter temperature:"); number = Integer.parseInt(numString); if (number < 10 ) JOptionPane.showMessageDialog(null, "Too cold", "Output", JOptionPane.INFORMATION_MESSAGE); else if …

Software Development java java-swing
Member Avatar for stultuske
0
106
Member Avatar for JavaNewbieEK

Hi, I am a student who has been given the following assignment. Before I am reprimanded for posting asking for assistance without providing an attempt at code, please allow me to explain. We have been given the assignment shown below with no explanation. We have not covered any of the …

Software Development java java-swing
Member Avatar for stultuske
0
191
Member Avatar for manjaro

I want to print each first character of a List of Array in upper case using C. For example, if I have Array of these elements char *d[] = {"water", "salt", "sugar", "milk", "soda"}; I want my function to print them like this Water Salt Sugar Milk Soda I will …

Software Development c
Member Avatar for arafat_alam
0
112
Member Avatar for ana_eht

hi everyone i'm sorry i know i am asking simple questions but i really cannot understand the problem with my code here i wrote a code for the cash register ( except two buttons : clear and delete ) but it doesn't work i think something is wrong with the …

Software Development vb.net
Member Avatar for ana_eht
0
153
Member Avatar for silvert122

Please could someone help me? my merge sort code is not sorting properly. this is the code: [CODE]#include <iostream> #include <string> using namespace std; void mergeArray(int a[],int sizeA, int b[],int sizeB,int result[],int *size); void display (int c[],int num); int main () { int a[]={45, 88, 12, 23, 65 }; int …

Software Development c++
Member Avatar for tetron
0
132
Member Avatar for litchi

Hi :) Is there any way to look up a character's Unicode line number? Ex. Capital letter A's line number (hex) is 41 capital B is 42 etc. (more info [URL="http://www.utf8-chartable.de/"]here[/URL]) Or would I have to put them in an array manually? thanks :)

Software Development java
Member Avatar for litchi
0
97
Member Avatar for tanvirahmad

Hi Experts In VB .net form, How I can close/off Title Bar and how can set border width = 0 or close Border

Software Development vb.net
Member Avatar for kvprajapati
0
106
Member Avatar for sjn21682

hi there, im very much new in programming, and i'm having a hard time in comparing two datafiles using c#, when im adding the while loop it doesnt work, but when i remove it, it compares the first line of my datafile, what i want to do it to compare …

Software Development c#
Member Avatar for Geekitygeek
0
150
Member Avatar for lotrsimp12345

Please help me out with syntax mistakes [CODE] fun rappend(L1,L2) if null L2 then L1 else rappend(tl(L2) @ L1, hd(L2)) [/CODE]

Software Development
Member Avatar for lotrsimp12345
0
76
Member Avatar for pythonNerd159

hey guys, girls, others. i have a pop down widget and one of the options in the pop down screen is "Exit" which means quit. I want to know the code for clicking that "Exit" option and then it Quiting the whole program. here is my code for the pop …

Software Development python
Member Avatar for bvdet
0
121
Member Avatar for chandu_517

Hi all, I'm new to JTable. I have two buttons "add Row", "Del Row" and I have some records displayed from db which contains an auto increment column. when ever "add row" is clicked a new record will be added to JTable with a auto increment column number displayed in …

Software Development java
Member Avatar for chandu_517
0
197
Member Avatar for Dhaval0203

hi i m new to learning perl please anyone tell me how do i start learn it? Which libraries are used in perl...? From where to i can get all these information? Give me brief introduction about perl.......

Software Development perl
Member Avatar for rdxblast
0
79
Member Avatar for team_ferrari22

Hi All, Does anybody know how to [B]defragment windows registry[/B]. We googled and found several free tools doing the same.But no tool is having open source. One tool is there - '[U]UltraDefrag[/U]' which is open source tool written in 'C' for file defragmentation. Please provide help in searching open source/ …

Software Development api c# c++ open-source windows-api
Member Avatar for team_ferrari22
0
103
Member Avatar for wilko1995

How do i make a code so that i can open a file if the person that is using it types 1 for yes or 2 for no Heres my code, [CODE]#include <iostream> #include <fstream> using namespace std; int main(){ // for logging in int Pass, Name; Pass = 159876; …

Software Development c++
Member Avatar for Ancient Dragon
0
201
Member Avatar for PhiberOptik

Hey guys, I'm using a Point array to transfer to my panel class that draws the image. The reason I'm using coords is because it shows where the character is in the tileset for directions Ie. (20,5) is right step facing up. anyway its coming up with null pointer and …

Software Development java
Member Avatar for ~s.o.s~
0
101
Member Avatar for Shreerang

Hey all, I wish to execute a shell script on click of a button from a simple html page. How do I do this? Need help!!! Thanx, Shreerang Patwardhan.

Software Development html-css shell-scripting
Member Avatar for cfajohnson
0
519

The End.