51,592 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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( … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
...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 … | |
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 << … | |
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 … | |
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, … | |
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 … | |
[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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
![]() | 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: |
[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 … | |
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" … | |
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 … | |
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 … | |
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- … | |
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 | |
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 … | |
hi all, can anyone give me an idea to search all mdb files in the system using c#.net | |
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! | |
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! | |
[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 … | |
| |
do any1 knows how to get the client IP 4rm a c++ server application using | |
[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 … | |
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 … | |
| |
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, … | |
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 … | |
hi everyone, how can I make a shared memory using c or c++ under windows not unix? thanx in advance | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.