49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
Please tell me about <ctime> header file what functions it contains inside how to use them.. | |
I need exercises & promlems to solve in c++ for beginner level any body can help me................??? | |
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){ … | |
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??????????? | |
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> … | |
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 … | |
[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 … | |
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 ; … | |
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 … | |
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] … | |
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 … | |
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] ); … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
[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 (); … | |
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, … | |
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 … | |
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 ;) | |
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 … | |
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 … | |
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 … | |
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 >> … | |
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 … |
The End.