51,593 Topics

Member Avatar for
Member Avatar for e-law

i have to this the data structure and algorithm past question to solve and i am find difficult in some of the question. these are some of the questions 1. Draw the internal memory respresentaion of a binary tree using the linked - list structure. 2. if a 2-dimensional array …

-3
35
Member Avatar for inisca

Hello all I am working on a program that can load a wave file, read the wave file and play it.Next I want to display the waveform of the wave file. Can someone give me an idea on how can I do this? I use VC++.

Member Avatar for Banfa
0
93
Member Avatar for prototyppe

Having trouble trying to copy the vector 'sel' in main to vector 'ask' in class A. Can someone either explain or show me? Thanks in Advance![code]class A{ private: public: vector<Trader> ask; void AskMatchList(vector<Trader>&); void showAuct(); }; void A::AskMatchList(vector<Trader> &list){ vector<Trader>::iterator it; f1= new Trader; //I understand this is the WRONG …

Member Avatar for prototyppe
0
173
Member Avatar for jalpan

i m using borland c++ 3.0 i want to inseert image (jpg,bmp) files.. did anyone tell me how to do this..? i dont know anything about this..?

Member Avatar for LevyDee
0
91
Member Avatar for misvampire

this is the question Most teachers assign various graded activities for their students to complete. A graded activity can consist of a numeric score such as 65, 89, 93 and so on. GradedActivity class is to hold the numeric score and letter grade of a graded activity. When a numeric …

Member Avatar for ndeniche
0
206
Member Avatar for nshh

Hi, please answer me the following questions. It will be very useful for me...Thanks in advance. c questions: 1. storage classes (auto, register, extern, static) in c with these informations (scope, lifetime, default value and memory location(where it stored in memory)). 2. why should we use static in function prototype …

Member Avatar for UncleLeroy
0
135
Member Avatar for leesho

a) INT b) my-name c) your_name d) $dollar e) stock Price f) _UnitPrice g) while h) 1$dollar i) switch j) whileYou k) ifYou l) if m) int n) int34 o) ab.3c p) ab_3c q) 4%6 r) fourTimesSix s) 4 * 6 t) apples3

Member Avatar for techsheaven
0
94
Member Avatar for Jack_1

Friends, i have written a code for finding HCF but it does not work. please help me in improving this code.Thanks in advance. [CODE]#include<iostream> using namespace std; int main () { int a,b,c,d,e,f,g,h; cout<<"Please input two nnumbers:"<<endl; cin>>a; cin>>b; d=a%b; c=(a-d)/b; a=b*c+d; if d==o cout<<"The hcf is:"<<b<<endl; if d>>0 { …

Member Avatar for Lerner
0
137
Member Avatar for TheCur3

Hello guys. I'm not very good at at programing but i need to do one program which should do this: Write a program with objects which stores student marks of exam. All the information is read. It must be realized: a. I enter all students marks; b. and see whose …

Member Avatar for ccw87
0
274
Member Avatar for sana zafar

Hi all, I just started programming.Can anyone please help me how to remove the non-printable characters of ascii from my code..I will really appreciate it. [CODE] #include <iostream> using namespace std; int main() { int num; cout<<" ASCII CODES\n -----------"<<endl; num = 32; while(num<=252){ cout<<endl<<char(num)<<" : "<<int(num); num++; } cout<<endl; …

Member Avatar for biopaul
0
300
Member Avatar for Mikhailvs

i am writing a program to find all integers that have 5 perfect squares within 30 of them... here is what i have so far: [CODE]#include <iostream> using namespace std; int range[60];//since "within 30" means to more and 30 less void integer(int testInteger) //testInteger is the integer to use to …

Member Avatar for Mikhailvs
0
181
Member Avatar for merse

I would like to read input data from text file with fstream. But I don't know how to mix different type of get functions. I would like to read for example numbers after char "=" I try to use something like this [CODE]char c; double x; while (!inFile.eof()) { inFile …

Member Avatar for Narue
0
800
Member Avatar for BLKelsey

I have selected to do a hangman console game in my C++ course (9th week) in which I have a question about wait(). I want to make the game "appear" to be loading just to give it aesthetics but I'm not sure how to do it the way I want …

Member Avatar for BLKelsey
0
107
Member Avatar for D4n1sD

Well I have a gui and I want to change its process name or dont display it on process at all how do I do it?

Member Avatar for Rajesh R Subram
0
103
Member Avatar for np2100

I was wondering if its possible to embed c++ into an Html website. Is there some engine that does it for you, or is it just not possible? Thanks.

Member Avatar for Rajesh R Subram
0
159
Member Avatar for gunbuster363

Hi all, I am a beginner of C++ and I don't know many things. I happens to encounter a simple problem which I don't know how to solve. Please help me out. I intended to write a program that solve the following problem: [QUOTE]Problem A Hashmat the brave warrior Input: …

Member Avatar for Sky Diploma
0
349
Member Avatar for Geek-Master

I have been playing around with different 'flavors' of programming, like QBasic, Assembly, and C++. I like all of them, but I have really begon to like C++. The only problem I have, is that I dont have any problems to solve. I'm just programming cause its FUN ^^. I …

Member Avatar for mrnutty
0
179
Member Avatar for moods125

[[CODE]#include <iostream> #include <string> using namespace std; class digits { }; class numOutofRange { }; int string_to_int(string s) throw(digits, numOutofRange); int main() { int histogram[10]; int total; int currentNumber = 0; string s; for(int i=0; i < 10; i++) { histogram[i] = 0; } cout <<"How many numbers do you …

Member Avatar for moods125
0
163
Member Avatar for cableguy31

I currently have a small c++ program that will ping all hosts in a subnet and then run "net view" to get a list of shares available on those systems that respond to the ping. I want to take this to the next level. I want to be able to …

0
43
Member Avatar for yongj

I have a code here that needs to return a string from a function, but the compiler continues to tell me an error saying that "overloaded function differs only by return type from 'int Bible::getName(void)'". How can I fix this? Here is my code: [CODE]// Joseph Yong // CSC2430 // …

Member Avatar for Fbody
0
193
Member Avatar for Donnovan

can i change the value of an int with a pointer. e.q. int n = 20; int *size = n; can i change n by doing this *size++. thanx

Member Avatar for sweetyk2
0
89
Member Avatar for pash101

I am writing a project to calculate the area and volume of 2d and 3d shapes. I have a class hierarchy with my abstract base class called 'shape'. I want to make a separate class to calculate a prism of a specified depth from any 2d shape, yet am unsure …

Member Avatar for pash101
0
249
Member Avatar for bsse007

i have to calculate the time of call in a prog. but i dont know how can i calculate the clock time on execution. will anybody plzzzzzzzz hlp me?

Member Avatar for bsse007
-1
71
Member Avatar for vbx_wx

ok,i have this code to enumerate the keys,that is working fine,and the code to enumerate the values and datas for a key that is working good also,but,if i combined them i doesnt produce the expecting result,i tried to call enum_value() in the enum_keys() function : [code] void enum_key(HKEY Hkey , …

0
25
Member Avatar for Carter12

Hello, I need some advice from some of the more expert programmers on what path should I take further in my learning process. I started with PHP and now I can say I do ok, not an expert of course. I like programming very much and I love PHP, it's …

Member Avatar for omol
0
260
Member Avatar for leesho

its a random number generator [CODE]#include <iostream.h> #include <stdlib.h> #include <time.h> #include <iomanip.h> using namespace std; int main () { const int MAX_RANGE = 100; int value; int random = rand( ); int num = ((random % 100) + 1); int quit; do { srand (time (NULL)); value = rand() …

Member Avatar for WaltP
0
161
Member Avatar for Sinaru

I wrote this code for fun. Wanted to do such a thing so that I would be able to use this in the future. I'm kinda new to this forum. I like to know what you think about the code. If can point out some mistakes or ways to improve …

Member Avatar for mrnutty
1
187
Member Avatar for new2programming

Hi i am using Visual c++ with SDL I have been using a tutorial from lazy foo productions but when i go to build my solution my complier says: Cannot open include file: 'SDL.h': No such file or directory

Member Avatar for new2programming
0
916
Member Avatar for NathanOliver

Hey All Yesterday I was writing a recursive form of a prime factorization program and I wasn't sure about the syntax I used. the function works as is but I'm curious if I am being redundant or if this is the proper way to code it. Here is what I …

Member Avatar for NathanOliver
0
134
Member Avatar for Roo0ond

Hello frind>> I need solve this equation >> Chebyshev differential equation in c++ >>Let us solve togather>>> first the equation is : [url]http://upload.wikimedia.org/math/c/a/e/cae214684f8d6fcaa89fbbe1a195524b.png[/url] let start with someone >> Thankyou

Member Avatar for mrnutty
0
141
Member Avatar for giodoli93

I know: -basic cout/cin -declaring single integers/strings -currently learning 'for' loops as you can see, my knowledge is extremely limited as of now, and i wish to have a few practice problems to have a go at. May i have some suggestions?

Member Avatar for giodoli93
0
168
Member Avatar for RayvenHawk

I'm working with several programmers to get a program to compile & run on Windows and Linux. It compiles fine under Windows using SDL for most of the functions (sound, graphics & input), but we're getting an error when using a makefile under Linux. We've tried several things without any …

Member Avatar for RayvenHawk
0
182
Member Avatar for yongj

I have a program where the cout "ing" a string misses the beginning letter of the string. I have made it so that there are 3 options to input/output the information. The "missing" letter in the string is ONLY evident in option 1; option 2 and option 3 does not …

Member Avatar for yongj
0
225
Member Avatar for Teseng

The normal VB forums werent much help unfortunately, so i've joined the great looking community here :) So, sorry if anything about this post is wrong, i'm new! But anyways, can anyone give me any insight on how i can accomplish this? I will need to pass the vb6 udt …

0
40
Member Avatar for close_encounter

I'm stuck trying to figure this out. I know I'm going to need a counter I just don't know where or how to implement it. I'm reading from a .dat file. The contents of the file look like this. google.com 760000 250 yahoo.com 340000 170 daniweb.com 230000 125 etc. I …

Member Avatar for Fbody
0
133
Member Avatar for Atlanticspace

Ok so i have the following functions that does a recursive merge sort. I need to pass my arrays in by reference since I have many different arrays containing different things. Im comparing lists[index1].get_type() vs lists[index2].get_type() yet when i run this i am getting the same event with the same …

Member Avatar for Narue
0
169
Member Avatar for dalaharp

Hi, i am trying to implement gabor filter for image enhancement. if someone has any code snippet or pseudocode or any idea of implementing it in C, please help me out with it. thanks.

Member Avatar for hayat alazzeh
0
1K
Member Avatar for newcoder192

Im new to dynamic arrays. What im trying to do is get a line of number that are stored as charachters , but implement a dynamic array to store the charachters so the size of the number(i.e. number of digits) is unkown. After i convert the charachters to an integer, …

Member Avatar for Narue
0
83
Member Avatar for jimJohnson

I am writing a program and stuck on entering standard deviation. I have looked on previous forum topics and from what I have found this is what I have coded but when I cout my standard deviation I keep getting a 1.#f Can one of you guys take a look …

Member Avatar for VernonDozier
0
2K
Member Avatar for manish.ranjan

if i want user to enter a single char in a variable...then how to restrict him/her from typing more than 1 character.....??

Member Avatar for manish.ranjan
0
76
Member Avatar for Atlanticspace

Ok so i have a merg sort algorithm in my code yet for some reason its not letting me change it to what I need. Im not seeing where I have the mistake. any help? here are my files along with error. I am trying to sort the events by …

Member Avatar for Atlanticspace
0
226
Member Avatar for MShadows

Hi guys, I've been using C++ for quite a while now, maybe around a year and something has always bothered me but I've never discovered a better way to deal with it. When I define a class I will always define a header file. As an example take this: foo.h …

Member Avatar for Ancient Dragon
0
69
Member Avatar for Dinglish

i have a piece of an unfinished program. try to run it... if you go straight to option 3 and input values, how do i output these values in option 4 ? i tried outputting my declared variables it wont work ? why is this ? i apologize the code …

Member Avatar for Dinglish
0
124
Member Avatar for clement99

Hi Guys, I need your help here, I'm working on a assignment, and had done up the source code, but I'm getting wrong results: Summarised below: I screenshot the output: [IMG]http://i4.photobucket.com/albums/y101/clement_twk/Output.png[/IMG] I noticed under the output on these 2 lines are wrong: Addition A + B = 100+103i+106j+109k I supposed …

Member Avatar for Banfa
0
177
Member Avatar for Rhap

[CODE]//// point.h using namespace System::Drawing; class point { protected: int x; int y; Color col; public: point(); };[/CODE] [CODE]////point.cpp #include "stdafx.h" #include "point.h" point::point() { x = 0; y = 0; col = Color::Blue; }[/CODE] [CODE]///Error c:\...\point.h(10) : error C3265: cannot declare a managed 'col' in an unmanaged 'point' 1> …

Member Avatar for jonsca
0
238
Member Avatar for boiishuvo

Hello, I am only starting to design a C program that opens a file; [code] #include <stdio.h> #include <string.h> #include <stdlib.h> int main(void) { FILE *fp; fp = fopen ("file.txt", "r"); if (fp == NULL) { perror("Can't open the file"); return EXIT_FAILURE; } printf ("%d\n", fp); system("pause"); return EXIT_SUCCESS; } …

Member Avatar for abhimanipal
0
2K
Member Avatar for vihrao

I am using operator to add two matrices stored inside matrix objects. I instantiate and initialize two matrices. Then I call operator to add them. But before adding the two matrices: m1 and m2 , their destructors gets called. When I start adding the matrices since m2 matrix array has …

Member Avatar for VernonDozier
0
498
Member Avatar for lukebradford

Hi all, I would like my program to be able to search for a string using Google and then use the number of results. I'm not sure what exactly this will entail in I/O terms so I guess I'll leave it at that and see what you guys have to …

Member Avatar for lukebradford
0
120
Member Avatar for blahbla

hi i was given an assignment to do i did it but i'm always getting a segmentation fault i found out where i'm getting the problem but i dont understand why i'm getting the problem heres the code: the extra cout's that dont make sense are just to tests to …

Member Avatar for blahbla
0
75
Member Avatar for llemes4011

Hello, I was wondering if anyone knew anything about programming Microcontrollers with C, and if so what controllers are best/have the most room for the least cost/ easy to get the code on. I know nothing about what's needed to get it up and running, or even what to buy! …

Member Avatar for llemes4011
0
117

The End.