49,761 Topics
| |
Hello all and thanks for reading my post. I am trying to compile the winamp plugin NSFPlug which allows for NSF (Nintendo Sound Format) files to be played back through wniamp. I am actually more interested in the stand-alone version called NSFPlay which simply emulates winamp and uses the NSFPlug … | |
Here is the piece of code I am having problems with. It is supposed to let me look up any items I put in the program previously. If the user did not enter a product earlier it should say "product not found". My problem is that it remembers the first … | |
HI everyone! I'm Darkwing. Me and a crew of ppl, mostly teens :D, are willing to create an RPG named "Phoenix Dream". The thing is, i'm still learning, really, just starting to learn to program, so i'd need help from someone experienced enough to deal with 3D rendering and creation … | |
need help! need to prevent withdraw function from occuring when savings balance is below 25. The program will run, although when the balance gets below $25 it just states "account inactive" which is fine but then the menu does not display again. This is what i have so far: int … | |
Hi, my code prints out the number of times a letter is typed. I can get it to print out the correct info, but when it deals with a white space, it will print out the list for every white space. how can I deal with this? [CODE] #include <iostream> … | |
This is 1 of my list of project to move a mouse pointer in result window without any help from the library,header file or built in function and using only your logics.Please help me and please tell something that is possible in Turbo C++(I know Turbo C++ is a old … | |
excuse me but i wrote this code for it could u cheek it pleaze [CODE]#include<iostream.h> int binarysearch (const int [],int , int ); const int arraysize=10 ; int a[arrayaize] ; int searchkey; for (counter=0;counter<arraysize;counter++ ) a[counter]=2(counter)+1; cout<< "enter your search key : " ; cin>> searchkey ;[/CODE] idont know what … | |
Not sure what's wrong... I keep gettin this error and I don't know how to solve it... error C2065: 'AveXYZ' : undeclared identifier can someone help me please? //----------------------------------- #include "stdafx.h" #include <iostream> #include <cmath> using namespace std; //----------------------------------- float Display(int x, int y, int z); float ComputeAve(int x,int y,int … | |
Hello, I have a binary file of this format: 1st 2 bytes = total number of entries (This appears only once at the file beginning) Then each record is of the following format: 2 Bytes = Entry no. 2 Bytes = Entry category 2 Bytes = Description length n Bytes … | |
[December] 5. Greetings and salutations! My first visit here a few weeks ago was very helpful and friendly thanks to dkalita. I’ve been moving forward on my own since then, but it appears I have run into another dilemma. I have a short program listed below. It compiles fine. The … | |
[URL="http://www.horstmann.com/cpp/pitfalls.html"]This [/URL] is a good read. Read it and learn from it. | |
i have no clue how to sort using the array. it is not 2d. this is what i have [code] for(int i=1; i <=num; i++) { do{ cout <<"enter score " << i << ": "; cin >> scores[i]; if((scores[i] <= 0)||(scores[i] >=100)) cout << "invalid score\n"; }while((scores[i] <= 0)||(scores[i] … | |
I have a very simple question, which I solved yesterday but forgot how I did it today! LOL So it is like this: I have a program written in C++ which in CMD writes: " Type your name to proceed"... And in the program i set a special name, and … | |
hi guyz... here's a pretty silly doubt that's been lingering fr a while.. why does the following code not work?? [CODE] func() { char *s; char a='x'; char b='y'; *s=a; s++; *s=b; cout<<s; } [/CODE] the program comes to halt inappropriately on running the above... can someone please explain the … | |
HI all, First of all: I was reading about constant arrays in a book and I didn't really get the idea behind it's use or how it functions though I do understand that the values of the array items is not going to change .. help clarify this issue please … | |
I hope this is the right forum to put this. I'm currently working on a project for school in which we need to read information from a file and then store it into an array of an object we create. The file is just a simple .txt file full of … | |
Is there any one show me a sample code in C++ that can resize an image. | |
I'm currently working on a project that simplifies and adds two user-defined fractions. The teacher specified that we use a function with the prototype: [code] Fraction addfractions(const Fraction& f1, const Fraction& f2) [/code] My problem is, I can't find any information on this Fraction data type that he is making … | |
Hello, I have been trying to figure this out for several hours and would so so so so greatly appreciate some help.. This is the error message I am receiving when I try to compile my program.. /Barclay_Colin_Assign7_Final.cpp:393: error: no matching function for call to 'bookinfo(int&, char [51], char [14], … | |
I have created a server and I can get it to send a simple message, but it needs to read the content out from the file (if it exists) and send the content back to the browser through socket. The reply needs to come with a HTTP header. Any help … | |
Hi, I have a program, which uses a vector to store some pointers. The program works fine. I'm trying to convert it to use a doubly linked list now though. At the top of the program I changed: [code] vector<Diary *>vectorname; [/code] to [code] #include <list> list<Diary *>vectorname; list<Diary*>::iterator i … | |
Hey everyone, so I am having a really annoying problem with my code. The goal of it is to be able to read a text file of an unknown length (it's more or less a class roster w/ scores) and calculate and display the average of each student. The code … | |
I'm using [B]remove(inputPath.c_str());[/B] to remove a file after a while loop is completed, but the file remains. I'm using Vista and logged in as an administrator and the file is located in my home folder. Any help would be appreciated. Thanks in advance. [code=c] #include <cstdlib> #include <iostream> #include <fstream> … | |
I am using jGrasp IDE and i'm having trouble with the compiler i keep getting this error ----jGRASP exec: g++-3 -g C:\Users\Joe\Documents\Downloads\testfile.cpp ----jGRASP wedge2 error: command "g++-3" not found. ---- This command must be in the current working directory ---- or on the current PATH to use this function. ---- … | |
Hello all!! I've been working on this code for a while now and I'm still lost. Can anyone tell me what's wrong with this code please??? I know Line 44 is missing something but I'm not sure what goes there, here is the pseudocode as well: /* pseudocode for Binomial … | |
I have a structure type like the one shown below, I use it to store the output of my program and these structures are stored in a structure vector. Now I would like to print out the structures stored in the vector in ascending order of int Time_IF. struct Input … | |
-x means (0-x) or means (-1*x) because I want to overload operators, which one is necessary to overload if i would like to make -x understanable for the compiler? I have a user defined type: real and I have operator overloading: real operator+(real x1, real x2); I also have constructor … | |
Well, I am making a tic-tac-toe game, and I need a way to make it so when the person enters their name it adds a ".txt" to the end of their name. For example: What is your name? Robert *ifstream infoout("Robert[COLOR="Red"].txt[/COLOR]");* The .txt highlighted in red is what I need … | |
I have to use a very simple data structure consisting only two double type data members (like complex numbers). I have written a class because it is practical to handle that object, and it is also usefull for me to overload all overloadable operators and define constructors and friend functions … | |
Hey guys, I know the title isn't possible, but I'd like to here how you'd do it then. Suppose we have this code: [code=cpp] Class Foo {public: int x; }; //somewhere in the code.. int main() Foo one, two; one.x = 10; two.x = 20; Foo *a = &one; Foo … |
The End.