49,757 Topics

Member Avatar for
Member Avatar for mero_max

please tell anyone who knows about what`s happening in ClassView! I'm using VC++ 6.0 for a project, and I'm trying to organize my classes/files. Using organization like this look fine with me, it compiles fine, but my classview is empty. then i tried even intalled VC++ 6.0 twice but it …

0
56
Member Avatar for jessiegirl

Hi everyone and thanks for looking to help me. I am working with a program involving arrays. I needed to write one that involves the use to have the program take about 10 numbers, list the minimum, the maximum, and the average. Now the program that I have below runs …

Member Avatar for WaltP
0
156
Member Avatar for viv_mbbs

Hi!! can anybody gimme an algo for reversing the words in a string in O(n) time.... Eg..i/p:I love Linux o/p: Linux love I

Member Avatar for John A
0
91
Member Avatar for nasduck

How to write power of e in c++? Like e^3, does computer know e? Can I write it as pow(e,3) ? Thanks a lot.

Member Avatar for John A
0
89
Member Avatar for BeanieRaven

:cry: I have spent hours on this program and cannot get it to produce negatives or INT_MIN. Here is my code. Any help would be so appreciated I can't even begin to tell you... [code] #include <stdio.h> #include <iostream> using namespace std; char *strrev(char *); char *itoa_3(int, char *, int); …

Member Avatar for Infarction
0
100
Member Avatar for kararu

How can I link my c++ program with html/javascript code? My c++ program should have browser interface....Is cgi the only option.I dont want webserver and cgi...What else can I do?

Member Avatar for John A
0
93
Member Avatar for JS1988

Ok so I got this to compile but now all it prints out to the screen is the "*" in my createHistogram function why doesnt it print the mean,median and mode with a histogram of the data? [CODE] #include <iostream> #include <iomanip> #include <fstream> #include <cmath> using namespace std; // …

Member Avatar for JS1988
0
238
Member Avatar for elcrapo

I'm having some trouble with this averaging program. This program is supposed to determine the final average by taking the sum of the products of the scores, multiplied by the weights and dividing by the sum of the weights. The output of the program includes each score-weight combination retrieved, the …

Member Avatar for John A
0
136
Member Avatar for DeadDrunk

Ok, I'm freaking lost... I can't figure out how to get the "location" variable to work. Its a basic program, you input numbers and it HAS to use a recursive function to insert the new node into the list (even tho I could write 2 lines of code) and well …

Member Avatar for Narue
0
77
Member Avatar for vicky_dev

While calling a member function from within another member function, isn't it better to write [COLOR="Red"]this->member_fun( )[/COLOR] rather than [COLOR="Red"]member_fun( )[/COLOR] ? That would make it very clear that we are calling a member function. What is the coding standard here? And what could be wrong with the first version?

Member Avatar for vicky_dev
0
117
Member Avatar for gs2088

Hello: I hope that someone can help me; and it's probably so simple, I'm missing it. I want to specify a number of CPUs, and loop through them, forcing a program to run in each. Let me try to explain. Let me way that I have 12 CPUS (this is …

Member Avatar for John A
0
100
Member Avatar for queenma7

Hi everyone, am new to this site. I have been reading through the forums and it has been helpful for me so far. I have an assignment that could make or break my grade. so please help! am not asking for it to be done for me, but i just …

Member Avatar for John A
0
2K
Member Avatar for DynamitMsk

Hello guys, I'm working on a maze designer. I start with a 2 dimensional block of cells, and randomly take down walls until there's a path from top left corner to bottom right. My approach is to create an adjacency matrix where: -1 means two cells (or 2 groups of …

0
68
Member Avatar for toomuchfreetime

The following is a project that i'm working on at the moment and as i say is work in progress but having huge problem in trying to have a dynamicly re-sized array once the array gets too big. in the programme which will mean i'll miss out in a huge …

Member Avatar for Narue
0
147
Member Avatar for Fooksan

I've heard C is pretty popular to program in. And I'm hoping that fact will help me since the community should be pretty big. Only programing I've ever done was years ago in QBASIC....yeah, I'm in the deep end >.> I want to make a simple window, with a search …

Member Avatar for Narue
0
223
Member Avatar for DeadDrunk

Ok, heres what I got so far. The problem I have is my loops for adding data are not adding what I'm expecting... Each node is like "00343068", etc. when it's suppose to be like 123 Also if anyone has any ideas on the sum and increment portion, it would …

Member Avatar for Narue
0
115
Member Avatar for Barefootsanders

Hey everyone. Im having some problems with mergesort. Im supposed to run the mergesort function then print to a file. It's not printing.. Can someone show me where im going wrong? This is the part of my switch statement that calls mergesort [CODE] case 3: //Sort array using Mergesort mergeSort( …

Member Avatar for Ancient Dragon
0
79
Member Avatar for ThirdEye866

Hello all...this is my first visit to this site.... anywayz i really need help in this...it's stupid maybe...but am not really into c++ ....anwayz this is a linked list...i just need a function to print a certain node.. like print(0); which prints the data in node 0..... here is the …

Member Avatar for Ancient Dragon
0
192
Member Avatar for GreenDay2001

I am trying to make this program as my school project. This program basically gets data from user store it in an object [I]per [/I]and then saves it into a file PEARSON.TXT. Now the problem is that i am not able to write the data into files I dont know …

Member Avatar for Ancient Dragon
0
205
Member Avatar for sparkid

I need immediate help in writing a function program. I have to write a program in functions and use array to store them. I am not familiar with functions and i tried to create it but i fails to run, However, i simply created this program in arrays and it …

Member Avatar for sparkid
0
81
Member Avatar for shadowmoon

ok im trying to make a video game for school medterm.. problem is it runs the females and male selection when it shouldnt... is this a syntax error or code error.. what can i do to fix it?? [code=cplusplus] #include <iostream.h> #include <iomanip.h> #include <cstdlib> main() { char gender; char …

Member Avatar for shadowmoon
0
120
Member Avatar for Barefootsanders

Hey everyone. I have a project to work on but for some reason I cant get my basics to work. Im trying to read in from a file and just printing what I read in from file to an outfile but its not working. The output looks like this: 3.30504e-039 …

Member Avatar for Salem
0
101
Member Avatar for JRM

...for spaces! This is another thing where I beat the code into submission. I just want someone to tell me if this is "good programming practice"- or have i gone off on a tangent. Is the use of the member access operator OK? All this program does is take a …

Member Avatar for WaltP
0
265
Member Avatar for nanodano

Hi, I'm trying to write a simple Queue class, but I'm having trouble using it. It tells me I have undefined references to the functions I call in main. [code] // main.cpp #include <iostream> #include "queue.h" void main() { Queue<int> myq; myq.push(10); std::cout << myq.isempty() << endl; myq.makeempty(); std::cout << …

Member Avatar for Narue
0
146
Member Avatar for JRM

Hello all, This is some code that another poster put up a while ago. Just for the heck of it, I tried to compile his solution, but i can't get the poiner syntax on the bubblesort function to work. I modified the call in main() to take a ref instead …

Member Avatar for Narue
0
124
Member Avatar for JS1988

Could somebody please me get this to compile and run [code] #include <iostream> #include <iomanip> #include <fstream> #include <cmath> using namespace std; // global constant declaration const int MAX_SIZE = 50; const int NUM_RANGE = 25; void getNumbers( int numbers[ ], int& size, int MAX_SIZE ); void printResults( float mean, …

Member Avatar for JS1988
0
123
Member Avatar for Savage221

Hello. Ok, so for this program I have to read in an html file, gather all html tags ( ie: <html> <font> </i> etc.. ) and add them to a queue in which they will be printed out later. Opening the the file is easy, it's after that I'm a …

Member Avatar for Savage221
0
86
Member Avatar for itchap

[COLOR=black]hi again!! I did this question:[/COLOR] [COLOR=black]Create a class responsible for determining whether a string is a palindrome. [/COLOR] [COLOR=#000000]I did the code. but i have some errors that i dont know how to fix.[/COLOR] [COLOR=#000000]these are the errors:[/COLOR] [COLOR=#000000]1- syntax error before `)' token [/COLOR] [COLOR=#000000]2- syntax error before …

Member Avatar for itchap
0
168
Member Avatar for venomlash

If I create a class called "tree" and inherit from it to classes called "elm" and "oak", can I, using all three header files, create a vector <tree> and use push_back to add an "elm" and an "oak" to that vector?

Member Avatar for Narue
0
93
Member Avatar for itchap

Hi everyone, Im trying to solve this question: write a C++ program to find a given word in a file. It should display all the line numbers where the word occurs. this is the code that i did so far, the problem is it wont display all the right line …

Member Avatar for itchap
0
196

The End.