51,592 Topics

Member Avatar for
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
69
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
150
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
225
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
118
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
80
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
196
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
210
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
86
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
122
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
104
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
266
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
150
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
128
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
127
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
89
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
179
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
95
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
199
Member Avatar for fortis

I NEED HELP ABOUT C++, PLEASE SEND ME THE CODE IF YOU INPUT A NUMBER IT WILL GENERATE IF IT IS A PRIME NUMBER OR IF IT IS NOT A PRIME NUMBER IT WILL DISPLAY THE CORRESPONDING FIBONACCI. THE OTHER IS ACTUALLY BASIC IF YOU INPUT 6 NUMBER, IT WILL …

Member Avatar for yamurthy
0
86
Member Avatar for barnyard0581

im a chem major and im required to take c++.. i learned some basic stuff (floating point/2s comp systems, basic programming) but im iffy on whether im getting a C or not.. our instructor gave us a bonus assignment but its super complicated and beyond what i understand.. can anybody …

Member Avatar for barnyard0581
0
130
Member Avatar for 927mgtepat

Hello all, I am hopeing someone can help me out on this, Yes this is homework and i have been trying to figure it out for the past couple of days and it is due tonihgt, the teacher wont really help any of us.We need to write a program in …

Member Avatar for John A
0
98
Member Avatar for clevername

Hey all, newbie programmer here and looking for some help. I have to search for the 3 smallest integers and 3 largest in my 3x3x3 array. I have it loaded with random numbers already. However, I am not allowed to use any kind of sorting, (bubble, insertion). [code=php] #include <iostream> …

Member Avatar for clevername
0
140
Member Avatar for rocky888

My problem is when my board displays it shows 2's. My enum Player is not working or I just don't understand enum. It is displaying 0,1,2 instead of X, O, and empty. It is also not changing players, again tied to the enum problem I'm sure. Any help would be …

Member Avatar for ~s.o.s~
0
97
Member Avatar for Electrohead

I have put a tutorial on how to make a C++ Hello World application on my website! :cheesy: [u][color=#0066cc][url="http://www.keefe-interactive.com/community/viewtopic.php?t=3"]http://www.keefe-interactive.com/community/viewtopic.php?t=3[/url][/color][/u] enjoy! :cheesy:

Member Avatar for Narue
0
182
Member Avatar for Tkassis

[B]I am working on an exercise given in class. I have managed to do most of it but I a a bit stuck on the permutation part. Here is what is required of me:[/B] Subject: Transformers An ideal electrical transformer has an input voltage and current, Vin, Iin and an …

0
66
Member Avatar for degamer106

I've been asked to create a movie data baseusing a hash table (w/ linked-list collision resolution) and a BST. Both of them contain a field that points a given structure (we'll call it *pMovie and its of type MOVIE) in memory. For example, if i'm going to insert "The Matrix" …

Member Avatar for Narue
0
137
Member Avatar for newbie2c++

Ok I have gotten myself started and seem to be COMPLETELY lost from here. I just have no clue as to how to finish this program I've tried but don't know where to go from here. Any suggestions would be greatly appreciated. I am supposed to write a program that …

Member Avatar for Ancient Dragon
0
181
Member Avatar for Bardongg00

Hi I have been trying to get this code for about a week now its due shortly and I still can't get it. The instructions are to 1.Write a structure definition Sneakers that records a one character code fot the manufacture (N for Nike, R for Reebock, ect), an interger …

Member Avatar for John A
0
148
Member Avatar for egmik3

Constructors are a- automatically called when your main() program instantiates an object b- typically used to initialize an objects' data members c- both a & b d- none [B]c?[/B] If the programmer does not explicitly define at least one constructor for a class a- a compiler error will occur b- …

Member Avatar for John A
0
121
Member Avatar for willy2511

Hi, I've got a "Segmentation Fault" error in C++ when trying to allocate a vector with a dimension of 2 million. I'm using the library "memory.h" Any help is welcome willy

Member Avatar for Salem
0
106
Member Avatar for moyon_x

Hi everyone: I was surfing all around my puter deleting all kind of unused folders... and suddenly i found this one: C:\RECYCLER\NPROTECT\ i am not sure what this folder is ment for... perhaps to backup deleted items with Norton ??? ... Well the point is that i want to delete …

Member Avatar for DMR
0
210
Member Avatar for anu2007

hi all, can anyone give me an idea to search all mdb files in the system using c#.net

Member Avatar for campkev
0
110
Member Avatar for iamiceberg

Hi, everybody! I have studied C++ OOP And now I begin studying OOP with VB.net I want to know OOP in VB.net diferent from OOP in C++ Please give me some document Tks a lot!

Member Avatar for Ancient Dragon
0
51
Member Avatar for yeya

Hi, currently I'm doing a program that needs to load data packets under HTTP and telnet protocol intercepted and stored in a database, then display the data interpreted. I wonder if there are some existing control/component or something that can do the HTTP/telnet protocol interpretation in VC++? Thanks a lot!

0
58
Member Avatar for vangheem

[COLOR=black] Hi, this is officially my first post on this website. I hope this goes well.. I am currently in a data structures class and I need to write a program with the idea of sparce matrices. From what I gather, in a matrix of values there sometimes is a …

Member Avatar for vangheem
0
97
Member Avatar for rxgmoral
Member Avatar for matika
Member Avatar for John A
0
86
Member Avatar for Dani

[b]True and False[/b] The backbone of computer science is logic. Most often, those with logical minds make the best programmers. Hence, a very important programming concept is that of boolean algebra. A boolean expression is a true or false statement. In the world of computers, a true statement is represented …

Member Avatar for lol_hacker101
0
1K
Member Avatar for FireSBurnsmuP

Alright, my program is giving me some serious problems. I think I have a memory leak, but I shouldn't have any. I have [inlinecode]ifstream In;[/inlinecode], followed by [inlinecode]In.open(thefile.c_str());[/inlinecode], a series of [inlinecode]In.get( tempChar );[/inlinecode]s, then at the end of the function I have [inlinecode]In.close();[/inlinecode]. The problem was that it was …

Member Avatar for FireSBurnsmuP
0
144
Member Avatar for batcholy
Member Avatar for Dani
0
33
Member Avatar for chubbywubba

Im really trying to do this c++ stuff and I need someone to really help me. My yahoo is eyestolethis. If someone could please come on yahoo and message me and try to help me that would be great. I have the code already written for the program I created, …

Member Avatar for John A
0
151
Member Avatar for WaltP

If anyone has the time or inclination, I'd be interested to hear what others think of [url=http://www.openwatcom.org/ftp/]Open Watcom C++[/url]. Unlike DevC++ it's still under development so it may be a better compiler for those that can't/won't purchase one. I just downloaded it myself so it'll be a while before I …

Member Avatar for jbennet
0
140
Member Avatar for chicoo

hi everyone, how can I make a shared memory using c or c++ under windows not unix? thanx in advance

Member Avatar for ~s.o.s~
0
88
Member Avatar for Firestone

I am trying to write a program that allows the user to enter an ID number, and then the program opens a txt file with the ID information, but the ifstream part isnt working, I know its because I put a variable in, but I dont know how to make …

Member Avatar for Ancient Dragon
0
87
Member Avatar for fafarfa

So I developed this code so that I would have a program that can randomly generate a DNA sequence. These are my questions: 1) how can i get the random number sequence to develop in a string? 2) how can i then multiplate the string so that the "A"s are …

Member Avatar for WaltP
0
117
Member Avatar for FireSBurnsmuP

Okay, just got into linux, and how does one go about doing C++ development in linux? Can one just use 'vi' to edit text, and then call the g++ compiler? Or does Debian come with a c++ environment? I did find a good IDE, Dev-C++ for linux, but it was …

Member Avatar for FireSBurnsmuP
0
250
Member Avatar for FireSBurnsmuP

Alright, people. I am writing a simple, command based program simulatin minesweeper, using a txt file for the map. I am getting characters and stuff in from the file, and converting them to integers to determine the size of the map. Now all this is going alright, but I am …

Member Avatar for Infarction
0
3K
Member Avatar for Cnaly

Could someone help me? I have an file in which a list of employees and salaries are listed for each year ex: Year: 2005 No. of Employees: 3 Employee ID Salary 123456 36000.00 123567 32000.00 123678 33000.00 Year: 2006 No. of Employees: 4 Employee ID Salary 133456 31000.00 133567 32000.00 …

Member Avatar for Infarction
0
315

The End.