49,761 Topics

Member Avatar for
Member Avatar for donaldw

Hello, I'm using code as shown below to play the first [i]duration[/i] milliseconds of a media file [CODE] MCIWndHome(m_Audio); MCIWndPlayTo(m_Audio, duration); [/CODE] This works fine to only play the first [i]duration[/i] milliseconds when the length of the audio file is greater than [i]duration[/i], but if the audio is longer than …

Member Avatar for donaldw
0
602
Member Avatar for aae005

i am new at c++ so plz help me to solve this home work i need marks plz Q1 This question carries 20% of the marks for this assignment. Write a complete C program that asks the user to enter continuously a series of words and the word “end” to …

Member Avatar for mitrmkar
-2
137
Member Avatar for -DLS-

Hi guys, I need some help for a homework I have due in 8 hours. I was assigned to write a recursive sorting algorithm that works with iterators :mad: After googling, and putting code together I got this. [CODE]#include <algorithm> template<class IT> void quicksort(IT begin,IT end) { \\begin and end …

Member Avatar for -DLS-
0
189
Member Avatar for NitaB

Okay, I have a slight problem here. My final project was pretty much open to anything. We just had to make a proposal and do it. So, I proposed a bank type program. I had it done and in the bag(or so I thought) until I was told to include …

Member Avatar for NitaB
0
1K
Member Avatar for naveedmahar

Please tell me about <ctime> header file what functions it contains inside how to use them..

Member Avatar for caut_baia
0
73
Member Avatar for naveedmahar

I need exercises & promlems to solve in c++ for beginner level any body can help me................???

Member Avatar for Nick Evan
0
61
Member Avatar for Danny_501

Hey all, can anyone tell me what this error usually means: 1>Client.obj : error LNK2001: unresolved external symbol "public: bool __thiscall StudentCollection::addStudent(class Student)" (?addStudent@StudentCollection@@QAE_NVStudent@@@Z) 1>D:\Sem1_2010\INB371_DSA\Assignments\Assignment2\Assignment2\Debug\Assignment2.exe : fatal error LNK1120: 1 unresolved externals. [CODE] StudentCollection *studentCollection; Student *studentUser; ..... student = new Student(studentNumber, firstName, lastName, phoneNumber, address); studentCollection->addStudent(*student);[/CODE] [CODE]bool addStudent(Student student){ …

Member Avatar for Danny_501
0
138
Member Avatar for born star

i wrote a c++ prgram i have aproblem abt the output; the program is as [CODE] #include<conio.h> #include<iostream.h> void main() { int i=1; i=400*400/400; cout<<i; getch(); } [/CODE] the output of this is =72 can somebody tell me that is this any type of garbage value???????????

Member Avatar for Nick Evan
0
88
Member Avatar for icelantic

Hi, first year programmer and the assignment is to use the stack and queue classes to write two functions. One checks to see if an array of parenthesis are balanced, the other to see if a stack and queue are insert equivalent. Here is my code. Assignment4.h [icode] #include <iostream> …

Member Avatar for nezachem
0
95
Member Avatar for donaldw

I am trying to play some audio from within a program using [ICODE]MCIWndPlay(m_Audio);[/ICODE] or [ICODE]MCIWndPlayTo(m_Audio, duration);[/ICODE] type calls. The program is getting the path of the media from an RSS feed and the audio can be either an MP3 file or a streaming MP3 (either progressive download or actual streaming …

Member Avatar for Salem
0
264
Member Avatar for jeffcruz

[B]Here is my coding, I know its sad, but I am lost.[/B] [B]After reading my code below and the guidelines I just have a few questions:[/B] [B]1. Am I on the right track so far? 2. To get the fractions should I put a cin in the setter functions, if …

Member Avatar for jeffcruz
0
172
Member Avatar for Lrob7325

Hey guys, im new to the forums and really need help with this program. It's worth 35 points for my programming class and I'm freaking out. I keep getting error C2784. Here's the code and I appreciate all your help: #include <iostream> #include <string> #include <ctime> using namespace std ; …

Member Avatar for abhimanipal
0
142
Member Avatar for Elenaser

The program below compiles and runs the way i need it to. However, part of the assignment was to load words, MAX_WORDS=100, into the program and then randomly have the program pick the word. Im really struggling with this part. The hint was to use a LoadWord () function but …

Member Avatar for Elenaser
0
184
Member Avatar for akira_shinizaki

Hello everyone, i have another assignments that i can't deal with my ability yet. This is the assignment : Make a pyramid from a character where you can define it's height ! Example : 4 characters height pyramid from "x" character [code] X XXX XXXXX [/code] 6 characters height [code] …

Member Avatar for kvprajapati
0
258
Member Avatar for d34dw4rd

Ok, new to C++ and my first assignment is to covert C code to C++, I'm getting pretty frustrated and have been looking at the code for the last two days not truly understanding how to do it. The teacher gave us a program in C which I have an …

Member Avatar for d34dw4rd
0
280
Member Avatar for ravi1986

This is a blackjack program using array. It works in Devc++ but doesn't work in visual C++.I think I am missing some kind of header files could anyone help me out? my email is[I] <<snip>>[/I] thanks [CODE]#include <iostream> #include <ctime> #include<iomanip> #include <string> using namespace std; void deal(int,int&,int& ,int[][2],int&,int[][2] ); …

-1
78
Member Avatar for Wildfire760

I have been trying to solve this problem for days, and if I think about this anymore I might blow my brains out. Anyways, I need help solving a smaller portion of a large assignment for my computer science course. The program basically entails me creating a shipping manifest for …

Member Avatar for Wildfire760
0
138
Member Avatar for smiller

I need help with writing a program using a function called "X" that accesses a file called "Y" and locates a specific word "W" in the Y file, then outputs the line number where W is located.

Member Avatar for caut_baia
0
122
Member Avatar for Kayano

Hey guys, I was curious if I could get some help with these two pieces of code. What I'm trying to do is count the number of comparisons and moves there are in each type of sort, now I'm not a super programmer but I kinda know my way around …

Member Avatar for NathanOliver
0
139
Member Avatar for viziroth

Heyy, back again. another function I need to write checks to see if the characters of a String state code(such as PA) are in uppercase and if they aren't I need to make them uppercase. (so has to check for stuff like pa, Pa, pA and fix it) the state …

Member Avatar for caut_baia
0
207
Member Avatar for d34dw4rd

Here I need to initialize an array all to zeros and to create an array of pointers and pass the array of pointers to the calculate function, however; I'm confused as how to do this, I've been looking online and it seems that I've created an array of pointers correctly …

Member Avatar for daviddoria
0
133
Member Avatar for jeffcruz

[B]I have had a lot of problems with C++ and I am quite confused. Here is the code so far;[/B] [CODE] #include <iostream.h> #include <stdlib.h> #include <cstring> #include <cctype> class Fraction { private: Fraction (); Fraction (double); Fraction (Fraction &); public: double operMultiplication (); double operSum (); double operDouble (); …

Member Avatar for Lerner
0
125
Member Avatar for dinamit875

hi guys!!! i have written small program here about customers, its for my assignment, emmm there's a small problem, i am using merge sort to sort customers in order by their ID, the only thing i dont know how to do i how would i pass ID into merge sort, …

Member Avatar for dinamit875
0
147
Member Avatar for Expora

So I have stumbled across another problem. This time I'm using freeglut I have put the lib files, dll, and include files where they should go in visual studio. Made a project and linked the lib files in it but i still cant initialize glut using glutInit. Here's what I …

Member Avatar for MattyRobot
0
95
Member Avatar for _Nestor

This is a text based solitaire game I wrote. It tested it on Ubuntu Linux and Windows and it worked okay for me. Move cards between rows using their row number (7 for the deck) Let me know what people think. Critiques welcome..... don't be too harsh ;)

Member Avatar for _Nestor
0
4K
Member Avatar for jaker29902

Hi all, Alright I will try to be as descriptive as possible, so here is the deal. I am attempting to create a Huffman Encoding Tree. The input file is test.txt the characters of the file are read in and as each char is read in it is converted to …

Member Avatar for jaker29902
0
133
Member Avatar for lotrsimp12345

Need to calculate number of white pegs so I can write fitness function. It works sometimes and it doesn't work other times. I got the calculate number of black pegs to work. A black peg is correct position and color. A white peg is correct color wrong position. Colors are …

Member Avatar for lotrsimp12345
0
980
Member Avatar for samoz83

Hey guys, I've got a small function to work out the lowest number in an array which is loaded from a file and the month names shown below in another array, but I was wondering if I could print everything that is on the same line as the lowest number …

0
47
Member Avatar for _Nestor

I'm trying to change a char to an int using the stdlib.h atoi function It works perfectly on windows using VC++ however on Ubuntu Linux using g++ the value of [B]t[/B] is off and from is correct. [CODE] char from = '0', to = '0'; cout<< "From: "; cin >> …

Member Avatar for Salem
0
219
Member Avatar for Expora

Hello all I started toying around with some tutorials using opengl and glutt but i encountered a problem using MVC++ IDE. The problem is that it says "initrendering" identifier not found and drawscene says undeclared identifier. the code is [CODE] #include <iostream> #include <stdlib.h> #include <StdAfx.h> #include <GL/glut.h> using namespace …

Member Avatar for Expora
0
98

The End.