132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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 … | |
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++ | |
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 | |
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 | |
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 … | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
[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++ | |
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 | |
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++ | |
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 | |
[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++ | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
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 | |
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++ | |
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 … | |
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 | |
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# | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
[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++ | |
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 | |
[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 | |
[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 | |
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++ | |
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++ | |
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 | |
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 … | |
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! | |
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++ ![]() | |
[B]Is there is any way to copy out put in graphics into a paint file(bmp)?[/B]:) Software Development c | |
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 |
The End.