132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for xxjinseruxx

Hey, basically im trying to create a Kill/Death ratio program where the user types x number of kills and y number of deaths and this creates an answer for ratio " :1" for example " how many kills ? 3388 " "How many deaths? 1237" "Your ratio is 12.129:1" the …

Software Development c c# c++
Member Avatar for xxjinseruxx
0
999
Member Avatar for TheBeast32

Hi, I need to get the output of a program called with the system() function. How would I do this?

Software Development c++
Member Avatar for TheBeast32
0
377
Member Avatar for RandV80

This may be a simple answer, but after self teaching myself on vectors for a few hours of I haven't been able to find the answer. I'm using class objects in a vector, and trying to complete the delete functionality according to a class variable. [code=c++] #Identify BUFFER 8 class …

Software Development c++
Member Avatar for RandV80
0
90
Member Avatar for fmwyso

Hey, I am currently reading "Accelerated C++" (Page 100, not far) and I'm starting to get a bit confused... In console application mode for VC++ (MSVC), the code in the book works fine and everything is fine and dandy. The code looks the same as the book and it's not …

Software Development c++
Member Avatar for Wiki_Tiki
0
130
Member Avatar for ramesh54

Hello Friends, I am learning Perl now. I have a small query. I have a directory Z with file name Z.txt. I would like to copy this file Z.txt to 3 new dir with new filenames as follows dir 1 1.txt dir 2 2.txt dir 3 3.txt I would like …

Software Development perl
Member Avatar for dwks
0
97
Member Avatar for gangsta gama

Im sorry if my game code is long, but, the save feature wont work. Their are no errors, but when I load the game and buy weapons the stats are correct, but when I save and load It the stats are not there. Can you please help me? Yes I …

Software Development c c# c++
Member Avatar for dwks
0
220
Member Avatar for gispe

hi! ive compiled a program that gives me this error: (88) : error C2296: '%' : illegal, left operand has type 'float' (94) : error C2296: '%' : illegal, left operand has type 'float' (100) : error C2296: '%' : illegal, left operand has type 'float' thing is that i …

Software Development c++
Member Avatar for gispe
0
232
Member Avatar for army88m2

Write the pseudocode for a program that uses a single while loop to print the numbers from 20 to 25 and from 40 to 45. your loop will have at least one nested "if" statement that will determine when the numbers should be printed. [code]If X >= 20 Then If …

Software Development vb.net
Member Avatar for army88m2
0
222
Member Avatar for ruchika beddy

I know How to Delete a Textfile , I even know how to write the temp string data into a TextFile. But i do noy know how to delete from String array,into which i read all the data of the file. Mine Code is as under,Plz help me out. I …

Software Development vb.net
Member Avatar for dmf1978
0
413
Member Avatar for crafted

I am a student new to VB I am currently in the second year of my degree I have encoutered VB before but on my first attempt I failed the module Currently there is no lecturer willing to take on VB full time and the part time teachers are too …

Software Development vb.net
Member Avatar for dmf1978
0
252
Member Avatar for kinger29

I am trying to create a 2d array in my program that can hold CStrings. I need to be able to add my CString to any row and column in the array(not just at the end) and I need it to be able to grow in size. Does anyone know …

Software Development c++
Member Avatar for Lerner
0
169
Member Avatar for sunny1304

hi guys, this is my first post here. may be my question sound very silly and stupid to you....apology for that. can anyone plz provide me the above algorithm : 1. c++ algorithm for finding the i th smallest element from a binary heap . 2. c++ algorithm to find …

Software Development algorithm c++
Member Avatar for VernonDozier
0
112
Member Avatar for bleh1318

Hi All, I'm having a weird problem. I'm trying to do division like this: [CODE]vector = timeStamp / 12800.0;[/CODE] where vector is a double and timeStamp is an int. The answer that I get is a double, however it's only to 2 places of precision. For instance 28521602 / 12800 …

Software Development c++
Member Avatar for VernonDozier
0
145
Member Avatar for shAq

I am writing a 3D graphics program to read and display *.stl files. These are stereo lithography files generated by 3DMax. Any idea how to do that? This file format consists of data as in following format: ********************************************* solid Object01 facet normal -9.999635e-001 -7.604078e-008 -8.545205e-003 outer loop vertex 1.033284e+001 2.616666e+002 …

Software Development c++ data-structure display
Member Avatar for saud3001
0
364
Member Avatar for coveredinflies

Hi :) I am fairly new to programming and am trying to error check the user input. I stumbled upon the 'isalpha' etc functions and so my plan is to loop through the array checking everything is a number or (the one) decimal point. However I am using getline for …

Software Development c++
Member Avatar for CoolGamer48
0
4K
Member Avatar for Nemoticchigga

I am attempting to use a queue. I am doing it just like an example i read. I am doing a vs2005 form applicaiton. [CODE]#pragma once #include <queue> public ref class DataSource { public: DataSource(void); void DSInitilize(void); char* getNextElement(void); System::Void setNextElement(char* value); private: queue<char> MessageQueue; };[/CODE] It is not finding …

Software Development c++ queue
Member Avatar for ArkM
0
136
Member Avatar for Pikachumanson

Ok here is what I got so far. When you type add, it asks what object would you like to add When you type list, it lists those objects When you type exit, you leave the program What I would like to do is create a search function where I …

Software Development c++ ios
Member Avatar for Pikachumanson
0
265
Member Avatar for sahmedsa

int a = 10; int* b = &a; int c = 4; int* d = &c; (*d)++; d = b; *d = c - *b; cout << a << " " << c; Output 5 -5 I am having difficulties understanding pointers, like I know that *something means the value …

Software Development c++
Member Avatar for sahmedsa
0
287
Member Avatar for Wiki_Tiki

Hi again, It's me, the C++ fatal n00b :( I was wondering about something. I just completed a program in Visual C++ 2008, and I need some way of the user installing it with Windows Installer. (I need a setup file that's able to install into program files, add desktop …

Software Development c++
Member Avatar for Wiki_Tiki
0
95
Member Avatar for guardians

Hi, I can't seem to get my program to work. I'm using qsort to sort some keyboard-input strings, but I get segmentation fault. I tried 3 versons, and none of them works. Could someone pinpoint the error? [CODE] #include<stdio.h> #include<stdlib.h> #include<string.h> #include<search.h> int str_cmp(const void *prv,const void *vtor); main() { …

Software Development c
Member Avatar for guardians
0
238
Member Avatar for HLA91

Hi All I was reading through the swing tutorial at [URL="http://java.sun.com/docs/books/tutorial/uiswing/start/compile.html"]http://java.sun.com/docs/books/tutorial/uiswing/start/compile.html[/URL] and i copied and pasted the provided source code for the HelloWorldSwing.java program. It compiled fine but when i went to run it the following error message was returned [QUOTE]java HelloWorldSwing Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldSwing (wrong name: …

Software Development java java-swing
Member Avatar for Ezzaral
0
852
Member Avatar for manzoor

How do you compile this whole project in Visual C++ Express Edition ? The link is below ? [url]http://www.codeproject.com/KB/cpp/loggerservice.aspx[/url] Will simply creating a new project and inserting all the files and then clicking Build Solution help ? I don't want you to do this for me. I want to learn …

Software Development c++
Member Avatar for manzoor
0
117
Member Avatar for kneel

There are two general comments about pointers 1. Pointers increase the efficiency of our programs 2. Pointers degrade reliability of C++ programs due to security issues Give your views on these comments

Software Development c++
Member Avatar for oliver_mk
0
66
Member Avatar for pardeep3dec

Hi, I would like to know about difference between Function and module and Procedure for making and use module in visual basic 6.0

Software Development visual-basic
Member Avatar for hartoksi
0
97
Member Avatar for keripix

can u guyz help me on how to make a program that's able to read chm file? i got this idea when i want to convert an entire chm file to pdf. i kno theres awready a software on that. but i reckon it would b interesting if we can …

Software Development pdf python
Member Avatar for jlm699
0
342
Member Avatar for Das246

Hello, I'm very much new to Python and I am stumbling on my first 'experiment'. What I want to do is create an application that operates as an on-screen log viewer where Python prints information it is processing into a wxTextCrl widget (called 'sampler' in my example). I am using …

Software Development python
Member Avatar for jlm699
0
153
Member Avatar for FullBjarne

Why doesn't this code work? [code]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Text.RegularExpressions; namespace WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { for (Match match = new …

Software Development regex
Member Avatar for FullBjarne
0
152
Member Avatar for Lukezzz

I have declared a 2D vector that look like this. Now I need to have a 3D vector but dont know how you declare a 3D vector. As seen I have put 500 as a value for 1D. Then I push_back the 2D and I also will push_back the 3:rd …

Software Development c++
Member Avatar for Nick Evan
0
2K
Member Avatar for MikeyFTW

[B][U]Ok heres the deal they're both a mathematics program but i want to make it like this...[/U][/B] [ICODE]from Tkinter import * import tkMessageBox import random def ask(): global num1 num1 = random.randint(1, 100) global num2 num2 = random.randint(1, 100) global answer answer = num1 + num2 label1.config(text='What is ' + …

Software Development mathematics python tkinter
Member Avatar for MikeyFTW
0
1K
Member Avatar for OmniX

I would like to make a "changable" array. Meaning: - Not initializing the size. - Add arrays to the array. - Remove arrays from the array. I expect the array size to be 9million or something similar. Was not sure the best plan of attack after googling and reading books. …

Software Development c++
Member Avatar for OmniX
0
506
Member Avatar for EddyLLC

The following Code is causing an error when I try to set the AdoConn = New Connection. I receive an "Invalid Use of New Keyword" error. Can I get some guidence as to why? Thanks. [code]Dim adoRecordset As Recordset Private Sub Form_Load() Dim adoConn As Connection Set adoConn = New …

Software Development open-source visual-basic
Member Avatar for QVeen72
0
91
Member Avatar for ninjaneer

I am getting the following unhanded exception: [COLOR="red"]An unhandled exception of type 'System.IO.FileNotFoundException' occurred in System.Windows.Forms.dll Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E) [/COLOR] which crashes my code when I click a button on my C# GUI. The button calls a C++ Backend, and …

Software Development gui
Member Avatar for ninjaneer
0
142
Member Avatar for Bill Purkins

New to VB 2008, I was discouraged to Google results that said, "printing is not easy in VB," and found only baffling examples I could not understand until I found and tweaked this simple example. Here is how to create a simple "Hello, world." to the printer. First, on the …

Software Development file-stream printer vb.net
Member Avatar for leveena
0
197
Member Avatar for greyghost86

Need a little help here on the frist part of this program. I have no finished the rest of code but i am trying to test out and run what i have so far. but i keep getting this error from the last brace of the code: `syntax error : …

Software Development c++
Member Avatar for Salem
0
185
Member Avatar for Renukavani

"Open with' list and command line prompt both are same or not. can anyone tel me plz

Software Development
Member Avatar for Renukavani
0
58
Member Avatar for nanawan

please help me.. i have 40 data to display at msflexgrid. but i cannot do that because it show too many continuations error... [code] Public Function show_msflex(SQL As String) MSFlexGrid1.Rows = 1 Set rekod = New ADODB.Recordset rekod.ActiveConnection = Con rekod.CursorLocation = adUseClient rekod.CursorType = adOpenDynamic rekod.LockType = adLockOptimistic rekod.Source …

Software Development open-source visual-basic
Member Avatar for nanawan
0
269
Member Avatar for twgood

init: deps-jar: Compiling 1 source file to C:\NetBeansProjects\SCHOOL1\JavaApplication31\build\classes C:\NetBeansProjects\SCHOOL1\JavaApplication31\src\javaapplication31\Inventory3a.java:185: cannot find symbol symbol : constructor Product(java.lang.String,double,double,double) location: class javaapplication31.Product super( dvdTitle, dvdItemNumber, dvdStock, dvdPrice); 1 error BUILD FAILED (total time: 0 seconds) [CODE] package javaapplication31; import java.util.Arrays; public class Inventory3a{ Inventory3a() { // constructor Product[] dvd = new Product[4]; dvd[0] …

Software Development java
Member Avatar for twgood
0
121
Member Avatar for xlx16

[TEX][/TEX]/* I need some advice on program bellow,this program is text program in this program by pressing arrow key you can change your position in the text and by enter key you can break a line and move the rest of the line to a new line but this program …

Software Development c
Member Avatar for ssharish2005
0
137
Member Avatar for gispe

hi ppl! im here again :S with another problem, which, is more a question about if what im doing is ok. the thing is i have to do a problem that counts the total of letters sent, the total of packages sent, total of letters and packages sent on the …

Software Development c++
Member Avatar for VernonDozier
0
148
Member Avatar for TheBeast32

Hi, I have been trying to make a dialog, but I keep getting an error. I'm using Dev-C++ 4.9.9.2, and I get this error "[Resource error] syntax error". Here's my code for the dialog: [Code] IDD_CONNECT DIALOG DISCARDABLE 0, 0, 300, 250 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU …

Software Development c++
Member Avatar for TheBeast32
0
128
Member Avatar for mandar2886

Iam doing a project on Voice Recognition System in VB 6.0 where in if I say "Open Windows Media Player" it should open the media player. This is my idea pls tell me if it is right and pls help me to proceed with it.

Software Development visual-basic
Member Avatar for selvaganapathy
0
811
Member Avatar for axn

i have a python script and would like to know how to email the output of the script in python. i can do it from the command line(kshell) with in *nix but would like something like this in the script. somescript.py; echo "test" | mailx [email]john_smith@xyz.com[/email]

Software Development email python
Member Avatar for woooee
0
273
Member Avatar for puma8085

My project is to receive data from MRI machine, which has a com port can send serial signals. The data come thru pin3 of the com port and we want to save and read them on a pc. I've check the data with a spectrum analyzer and found the signal …

Software Development c
Member Avatar for ssharish2005
0
316
Member Avatar for stooartbaby

Hi Everyone, Is it possible to convert a .sh script to VBS? If so, how should I go about this pls? The issue is that i have found a script which does exactly what i need, but it is written as a .sh we are a pure windows shop and …

Software Development shell-scripting unix
Member Avatar for stooartbaby
0
922
Member Avatar for greyghost86

Little trouble here using enum in my program I took a section of my program to show maybe one of you have a suggestion in why I am getting an infinite loop here. I have the following statement: `enum food {Pizza=10, Lasagna=20, Chips=2, Burrito=5};` case 'c' : case 'C' : …

Software Development c++
Member Avatar for CoolGamer48
0
118
Member Avatar for Seagull One

Hello again, everyone. My program for my robot is progressing. Thanks to your help its coming along great. I've also found that I'm more and more able to solve my own problems with programming now. One thing that I can't seem to solve: I'm working on a part of my …

Software Development python
Member Avatar for Seagull One
0
106
Member Avatar for kavithabhaskar

Hi. I have a couple of combo boxes. Any combination chosen from the combobox works. I am getting 2 errors in it. error1: When I chose RAM as 2.98 i get 4 results but when i chose RAM as 8 I get 2 records of 8 gb and the 4 …

Software Development dataset open-source vb.net
Member Avatar for kavithabhaskar
0
77
Member Avatar for Wiki_Tiki

I need help creating an elapsed timer with visual C++ 2008. Basically what I want to do is have elapsed time in seconds, minutes and hours tick down on a 'label' control. I've gotten it all set up, including the code for starting the timer ( this->tim_main->Enabled = true; ) …

Software Development c++
Member Avatar for mcriscolo
0
379
Member Avatar for pastryman

The following code snippets are from the NxOgre libraries. I'm coming from a Java background, and statements like the following just confused me: [code=c++] Body* body = NxNew(Body)(identifier, this, firstShapeDescription, pose, params); [/code] What's happening on the right side of the equals sign? Is NxNew the class? Is (Body) a …

Software Development c++
Member Avatar for ArkM
0
129
Member Avatar for zoooz_20

i have java assignment >> i need any one to help me to solve it >> this is my e-mail >>> [email removed] ............................... Java Assignment 3 1.Use nested loops that print the following pattern:- A) 1 12 123 1234 12345 123456 2.Write a program to compute the sum and …

Software Development java
Member Avatar for javaAddict
0
274

The End.