132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Skeezo

hello, I am trying to pass the array songID[numSongs] to the function playRandomSong. What am i doing wrong? The compiler is telling me "error C2660: 'playRandomSong' : function does not take 1 arguments" [CODE=C++]#include <iostream> #include <string> #include <fstream> #include <iomanip> #include <cstdlib> using namespace std; const int numSongs = …

Software Development c++
Member Avatar for Skeezo
0
314
Member Avatar for lolodede

Write a C++ program that reads from keyboard 3 words, with proper input prompt. Then for these 3 words that were read, the program displays first the word of the longest length, then the word of the shortest length, and finally the remaining last word. You may assume that these …

Software Development c c# c++
Member Avatar for ivailosp
0
252
Member Avatar for jiah

Hi guys! I'm beginner on the scene and I'm trying to make an ascii maze game. I have managed out how to get the character to move and how to make a goal where to go. But now I have faced a problem...the walls. I'm not sure how should I …

Software Development c++
Member Avatar for TMD
0
509
Member Avatar for blue_misfit

Hi folks! This is my first python script! It will be executed within AvsP, which is an application for writing AviSynth scripts. It provides a full Python interface, for macros and other operations. Here's the code I have now: [code] # batchCreateD2Vs # by Derek Prestegard # Last Modified 4/3/08 …

Software Development audio open-source python
Member Avatar for woooee
0
149
Member Avatar for roachic

Hi everyone. I was wondering what is the best way to check if a text file is empty? When I read from a text file: file.Open(path, CFile::modeRead); And then try to access it: file.ReadString(line) I get an error.. I have tried if 'file.end' but file.end returns true every time so …

Software Development c++ file-system
Member Avatar for roachic
0
158
Member Avatar for bbradley

I'll make it blunt of what I can't seem to get my head round. I have two edit boxs, values in both, and I want the value in editbox1 to be added to the value in editbox2. And then the value appear in editbox2. If you can think of a …

Software Development delphi pascal
Member Avatar for jsosnowski
0
201
Member Avatar for oneguy

Any hints in converting this C++ code to java [url]http://pastebin.com/f2db2b32e[/url] I have pretty good idea what is going on in main () , but I not sure about the top template part and the class called Moron :) The program just reads a text file counts up the frequency of …

Software Development c c# c++ java
Member Avatar for Ezzaral
0
109
Member Avatar for lostandfound

This question is driving me batty!! I am currently teaching myself and enjoying the results of VB6. However, whenever I ask a colleague anything regarding VB the first reply is always the question "Are you using .NET?" and after the answer "No, I use VB6!" they reply with "Ooooh, you …

Software Development visual-basic
Member Avatar for lostandfound
0
190
Member Avatar for Arne Kristoffer

Hello! I have a string which may look like this: (arne kristoffer)(1231232)(12.12.12)(asdasdf 12) This is just an silly example, but never mind. THe point is that i need to seperate the contents of the string into a string vector. This is my code (which of course doesn't work, if it …

Software Development c++
Member Avatar for Lerner
0
149
Member Avatar for zorgoban

Hi all! Im using a ComboBox and a DataGridView in a Form and use the same DataSet-Table for both. Unfortunately they automatically synchronice their current selection now. When I select a row in the grid for editing, the ComboBox gets automatically switched. How can I avoid this absolutely unwanted behaviour? …

Software Development dataset
Member Avatar for Ramy Mahrous
0
110
Member Avatar for dav555

Does somebody know a better tool as the "Resource Bundle Manager" for managing translations/resources ? [URL="http://www.icu-project.org/repos/icu/tools/trunk/unicodetools/com/ibm/rbm/docs/index.html"]http://www.icu-project.org/repos/icu/tools/trunk/unicodetools/com/ibm/rbm/docs/index.html[/URL] Thank you!

Software Development java
Member Avatar for jwenting
0
95
Member Avatar for debee

Hello there, I am trying to build a square matrix of the type Double, with the following code: for( i = 0; i < weightVector.length; i++) for( j =0; j< weightVector.length; j++) { weightMatrix[i][j]= weightVector[i]* weightVector[j]; if(i==j) weightMatrix[i][i] += 0.0001; } The problem is each time the vector "weightVector" has …

Software Development java matrix-multiplication
Member Avatar for debee
0
87
Member Avatar for wollacott

can anyone help me make my program work. after it capitalize i want it to reverse the new string. something like palindrome. [CODE] #include<stdio.h> #include<ctype.h> #include<string.h> /*program begins here*/ int main() { /**/ char string[100]; char *ptr = string; /*shws the user what to do*/ printf("Enter string and use a …

Software Development c
Member Avatar for jephthah
0
148
Member Avatar for brianvolkmann

[code=cplusplus] #include<stdlib.h> #include<stdio.h> #include<conio.h> #include<string.h> #define ff fflush(stdin); void main() { int r; char str1[10], str2[10]; clrscr(); printf("Enter password:\n"); gets(str1); ff; printf("Re-enter password:\n"); gets (str2); ff; r=strcmp(str1, str2); if(r==0) { printf("Enter"); } else { printf("Exit"); } getch(); } [/code]

Software Development c++
Member Avatar for Nick Evan
0
153
Member Avatar for charlie81

This is what my lab says to do Start Main( ) or btnRun_Click( ) Create a RaceCar object Set the car name to “Fast One” Set the x coordinate to 200 Set the y coordinate to 100 Call the car’s Move( ) method and show the resulting message Display a …

Software Development
Member Avatar for Ramy Mahrous
0
261
Member Avatar for Jennifer84

Here I am putting 2 Number into a std::vector<double> and sort these numbers like this. When putting Number1 and Number2 wich are declared variables into the vector, the Number 5 and 10 are put into the vector. If I after the sort write this: Numbers[0], this will give me the …

Software Development c++
Member Avatar for Jennifer84
0
259
Member Avatar for jgritty

I'm sure this is stupidly simple, but I am trying to add words to two different dictionary files I have created. I think my problem is here: [code=python] myDict = Dictionary.Dictionary() myDict2 = Dictionary.Dictionary() [/code] Because when I write out the files, it writes the same thing to both files, …

Software Development python
Member Avatar for jgritty
0
305
Member Avatar for CoolGamer48

[CODE] ResourceManager(void (*CreateResourceFunction) (Type** resource, char* name, char* path) = NULL) { m_list = new LinkedList<Type>; CreateResource = CreateResourceFunction; }[/CODE] hey - this is code for a contructer for a class (taking the code from a book I bought). What exactly is the parameter of the function? Is the parameter …

Software Development c++
Member Avatar for Salem
0
93
Member Avatar for raajji
Member Avatar for darkagn
0
65
Member Avatar for Jahed

Hello everyone, i need some help with my project. I wish retrieve data from a database onto a combo box on a VB form. I can add data on one form which is stored on the database however i need the same data to be updated on a combo box …

Software Development vb.net
Member Avatar for Jahed
0
127
Member Avatar for ITech

my problem is that i have a search form for customers ,i want to use msh flex grid to show the results of search, i am searching for a customer which are stored in a database. suppose i want to update some information of a specific customer listed in msh …

Software Development visual-basic
Member Avatar for Jx_Man
0
614
Member Avatar for roachic

I want to read a file which is in the same folder as my program. What is the notation to get the current folder? I tried '.' but it doesn't work.

Software Development c++
Member Avatar for roachic
0
97
Member Avatar for Trckst3

Hi guys I'm new here and basically new to programming. Unfortuanetly i'm probably gonna be quite annoying to you just because you guys know what you're doing and I'm like the little slow train that's trying to catch up. Though hopefully you'll help... Here's my situation I'm supposed to write …

Software Development algorithm c++
Member Avatar for ivailosp
0
100
Member Avatar for Beginner2008

How do i make my program work for 5 times and then Expire and will never work again ? In which i'll have to rebuild a new one using VB so that it will work for another 5 times more.The approach i used is as follows. I created a text …

Software Development vb.net
Member Avatar for bwkeller
0
117
Member Avatar for ninjajake

I am using dr. scheme and I need to retrieve the 2nd item in a list. is there a function like car that returns the second one instead of the first one?

Software Development
Member Avatar for azimuth0
0
115
Member Avatar for sandip250382

Hi, friends this is my first post here. Well, I want to learn C# from home. For this I need all your help.Can any one kindly suggest any easy e-book , I have little concept about OOP's earlier? Thanks in advance. Hoping for a pleasant stay here.

Software Development c c# c++ oop
Member Avatar for sandip250382
0
82
Member Avatar for kiwihaha

This program is a simple bejewel game... i need to enter the matrix pos[alpabet][number]...eg(a1 or b7) so if i error input for example: 11 (cout error) this can work aa (cout error) but this will infinite loop... please help me... besides some one can tell me what can i do …

Software Development c++
Member Avatar for Ancient Dragon
0
99
Member Avatar for bbmatten

I am very new to Python and am about three weeks behind due to textbook problems. I am having a problem with one programming exercise. I have no idea how to even begin writting a program to determine the distance to a lightning strike based on the time elapsed between …

Software Development flash python
Member Avatar for vegaseat
0
76
Member Avatar for cute121180

Problem statement: The program has to take input for DFA and for h() function that is for homomorphism. I am able to write the program in C++ only for DFA. I am unable to include the h() function. Moreover, my DFA program giving me an error. [code=cplusplus] #include <iostream> #include …

Software Development algorithm c++ file-stream legal
Member Avatar for cute121180
0
191
Member Avatar for atrusmre

I've got an interesting issue with a program I'm writing. I think I know kinda what is wrong, but I'm not sure about it, and I don't know how to fix it. I have the following code [CODE]. . . string strCmd = "command"; OnDataSend(strCmd); //wait for a response while …

Software Development c#
Member Avatar for atrusmre
0
185
Member Avatar for Arne Kristoffer

Hello! :) I'm having a problem while comparing one character from a string with a ... string. This is a part of a pretty complex loop (or, it's complex for me, since I'm new to C++ and programming), but the case is that I need to compare the value of …

Software Development c++
Member Avatar for Arne Kristoffer
0
22K
Member Avatar for dragonheart

im using crystal reports 11 in my vb project.. (vb 6.0) as i cudnt find the crystal report control in the project -.> components, i went to project -> references and tried to browse and show where the OCX file is.. it got added to the library list.. but when …

Software Development visual-basic
Member Avatar for dragonheart
0
276
Member Avatar for ulrik04

I've made this Supaplex-like game, but I have a problem. I want to have more levels, so I've made that when moving to the next level, it clears the vectors with all the objects, and putting new objects into. this is my code for moving to level 2: [code] void …

Software Development c++
Member Avatar for ulrik04
0
111
Member Avatar for Rotvailera

Hello. First sorry for bad english. Can somebody help me with this: Using Bisection method find one real root for f(x)=x^9-x^7+2x^2-1 xE [0;1] I have to write a program in c++ witch founds me the root. Please help me. Again sorry for the bad english

Software Development c++
Member Avatar for Rotvailera
0
104
Member Avatar for cetan

Please help me with this... it's a nasty problem! I'm converting a DLL-test tool for the company I work for, originally build in VB6, to VB.NET In the old tool the method CallByName is used to invoke a method in the DLL: [CODE] CallByName(objDLL, strFunction, VbMethod, arrParameters) [/CODE] The arrParameters …

Software Development vb.net
Member Avatar for cetan
0
218
Member Avatar for nurulshidanoni

[B]exam TStu TExam [/B] 1 91 25 2 168 20 3 2080 46 4 680 56 5 15 12 6 680 22 7 166 20 How to sort in descending order like this.. 4 680 56 3 2080 46 1 91 25 ....................................

Software Development c++
Member Avatar for Ancient Dragon
0
113
Member Avatar for kpnprakash

hello, i am developing a c coding for comparing two txt files(one key file with the transcripted or duplicete file) to figure out the wrong text in the transcripted file.Can anyone help me that how to develop the codes.

Software Development c
Member Avatar for Ancient Dragon
0
132
Member Avatar for bswapnil

[code=c] #include <stdio.h> void stripnl(char *str) { while(strlen(str) && ( (str[strlen(str) - 1] == 13) || ( str[strlen(str) - 1] == 10 ))) { str[strlen(str) - 1] = 0; } } int main() { FILE *infile; char fname[40]; char line[100]; int lcount=1,i=0; char mean[100]; /* Read in the filename */ …

Software Development c file-system
Member Avatar for Ancient Dragon
0
132
Member Avatar for programmer321

[code] Hello, I need my C code Exe to exit only using Cntrol + C and the cross should be disabled. Can anyone help me with this. Regards. [/code]

Software Development c
Member Avatar for programmer321
0
151
Member Avatar for rajeshmalla07

what do u think whether .net is easy or java which will require less time

Software Development vb.net
Member Avatar for cetan
0
104
Member Avatar for sonia sardana

Hi, I want to ask,I know vb.net not vb. I want to ask is there so much difference b/w vb & Vb.Net.

Software Development vb.net
Member Avatar for cetan
0
257
Member Avatar for vadiraj

Hai i am new to dis programing word anybady help me out? in my appliction i want to implement autotext functionality like in ms word. im not getting how to implement it.... plz help me thanx in advance.

Software Development vb.net
Member Avatar for cetan
0
88
Member Avatar for xsoniccrackersx

Hi all, I'm new here but I am in need of some desperate help. I have a program that works perfectly but here is the problem: I cannot use the function getline to get a line in the input file and turn it into a string to be manipulated by …

Software Development c++
Member Avatar for xsoniccrackersx
0
1K
Member Avatar for Kaushalya

Wish you all a good day.Currently i'm working on c++ project.I want to know how to convert string object to a character array.Also why ifstream object doesn't accept a string variable as follows, void split(String filename) { ifstream ifile; ifile.open(filename);//this fails }

Software Development c++
Member Avatar for VernonDozier
0
103
Member Avatar for BroKeN

hi guys i want to make a tool bar wich is connected to one or more sites and links that tool bar it is kind of like a news tool bar but i want it to view some kind of website feeds and it runs a normal setup and installed …

Software Development java
Member Avatar for BroKeN
0
67
Member Avatar for obsolucity

I am having trouble with this assignment and was hoping I could get some help. I am not sure whether or not the output for my decomposed, unsorted, and sorted lists are correct. I'm not sure how to interpret the data in order to help justify why the big-o estimate …

Software Development algorithm c++
Member Avatar for Laiq Ahmed
0
320
Member Avatar for lizhiyuan

dear all any one know howt to use openGL with vc++? i encountered some problem.thanks a lot. why glRectf(x1,y1,x2,y2) can draw a rectangle, here (x1,y1),(x2,y2),just two points,anone can exsplain to me? thanks. sorry to ask such question.no choice!

Software Development c++ opengl
Member Avatar for Nick Evan
0
147
Member Avatar for mod_motox

Hi In my program one of my function returns a vector<int> ... I want to save it in to a vector<string>. itoa function does not seem to work here. Is there anything that can be done regarding this. Thanks in Advance.

Software Development c++
Member Avatar for iamthwee
0
245
Member Avatar for Majestics

[B]Is there is any way to copy out put in graphics into a paint file(bmp)?[/B]:)

Software Development c
Member Avatar for jephthah
0
111
Member Avatar for rohit83.ken

I have a C file of the following .When I execute this in Fedora 7 version 2.6.21-1.3194.fc7 and arch =i686 I get following errors [root@kwi-11156f06184 Desktop]# cc test.c test.c:3:20: error: libipq.h: No such file or directory test.c: In function ‘main’: test.c:12: error: ‘PF_INET’ undeclared (first use in this function) test.c:12: …

Software Development c file-system
Member Avatar for jephthah
0
576

The End.