49,761 Topics
| |
cant figure out this error. im trying to do a 3 dimensional static array that just displays the number in a matrix form ex: 1111111 1111111 1111111 im sure the error has somethin to do with the depth, row and col being constants but i dont knwo how to fix … | |
[code] #include <iostream> #include <fstream> using namespace std; char RW[10]; char id[10]; void populateArray(char ch, int &i, char * array); void valid(char *array, int i); #define MINUS '-' #define PLUS '+' #define TIMES '*' #define DIVIDE '/' #define EQL '=' #define LP '(' #define RP ')' #define SEMIC ';' #define … | |
Hey guys, I have made a C++ console program and I was just wondering is there anyway to give the exe file a logo rather than just having the standard white box? Thanks in advance for any advice given. | |
[code] //parsing (a,d,n) #include <iostream> using namespace std; char getsym(); void L(char sym); void C(char sym); void c(char sym); int main() { char nextsym; nextsym = getsym(); cout << nextsym; return 0; } char getsym() { static char array[20] = "(a,d,n)"; static int i = -1; ++i; return array[i]; } … | |
Hi there everyone. I'm new to the boards (and C++ as well) :confused: I was wondering if someone out there would be so kind as to guide me or explain the best way to handle this dilemma I'm having. I''ve spent a full week coding my programming assignment for this … | |
how can I place all of my program in a while loop what I want is this: the user should enter color of pen ,color of brush and then enter name of a shape that want to draw. my program should give this information and draw a shape the user … | |
I would like to note that this is for John Conway's game of life but I must write it in C++. I am making a 10x10 version of the game and I am using jGRASPto write the code. I am having a problem when it is reading in the starting … | |
I tried to make a function , using iterators, to walk a deque backward and my function does not work . I would appreciate if somebody cna help me : double Dq_Iter_Backward() { deque<int>::reverse_iterator InvDeqIter; DeqIter=intdeq.begin(); InvDeqIter = intdeq.end()-1; for(InvDeqIter = intdeq.end()-1;InvDeqIter!=intdeq.begin()-1;--DeqIter) { cout<<InvDeqIter; } elapsed = clock()- start_time; elapsed_time … | |
Hi all, This is my First Thread :) I want to do some certification on C/C++. Please let me know the Certifications possible on the same. Let me know the links about the same. Thanks a lot in Advance. GmP. PS: Some Infomation can change SomeOnes LIFE | |
Hae ive had a idea for a project but dont no how to start my dad keeps going on at me for spending to long on the internet so i want to create a program that detects the internet connection and starts a timer till u disconect then records the … | |
Hi, has anyone of you an c-code of game of life, which isn't so difficult to understand??? thank you for your help! nimero | |
I'm trying to re-write some of my shell scripts with C++ and I want to use some Unix commands, but I don't really get how, all the information on System() is just confusing to me...so any help would be great, | |
Hey, I have to write a function that does this : It checks if a word come up twice in a row . For example : myString[] = " Ariel lives in in the city city Ariel " so now my function should print the words : in city . … | |
#include <iostream> using namespace std; // This program takes the numerical score and outputs a letter grade.// int getScore () { int count; int score, for (count = 0; count <10; count ++){ cout << "\nEnter the student's score: "<< endl; cin >> score } cout <<"\nThe score is/are: " … | |
So I'm trying to build a shell, and I've been stuck for days just trying to think about how to take in the input from the user. I need to be able to have a list of dynamically growing commands, that each has its list of dynamically growing arguments, so … | |
Hello, I'm wanting to print a circle to a screen, or should I say on a form. Any ideas? Thanks | |
How do I save the input form the user into an array? Here is my assignment: create a program that reads in 5 numbers, find their sum and then print them in reverse. Use array as a tool in your program. Here is what I have so far: #include <iostream> … | |
Hello ladies and gents, Ive recently downloaded VC++ 2005 EE, but, would prefer to buy a version of this. Now, the problem is that there are so manny versions. Since I'm a hobbiest I was wondering wich of these two would suit me the best. Visual Studio 2005 Express or … | |
Last night, I figured out how to write my psedocode for fing the area of a trapazoid. It was hard but I managed. Now I need help with writing the program. Everytime I try to run it something a little box comes on screen and says error, but I don't … | |
Greetings. I would like some guide and pointers from you all..and even if it is my homework..im not asking for someone to do it for me =| QUESTION: Develop a program that uses an array of structures to store an employee identification number(4digit), current annual salary and the result of … | |
Hello ladies and gents, in Accelerated C++ I have an exercise wich goes as follows: [quote]Write a program that will keep track of grades for several students at once. The programcould keep two vectors in sync. The first should hold the student's names, and the second the final grades that … | |
Well I cannot get the second and third out put to work correctly. [code] // Purpose is to program a simulation for the flight of a cannonball. #include <iostream> #include <cmath> using namespace std; int main () { // Declare variables and constants. double vel_i, x_final=0, x_initial=0, time= 0.01, x_0; … | |
hi frenz, presently im at creating a new anti virus using C++. Is there anyone who has a prior knowledge in this field,pls help me out. thanx n regards nXt | |
Cheers, i write to ask information about how to create a client for a DLL written in c++. I have to instantiate and employ classes that are defined within the DLL. My development platform is mingw, the win32 porting of gnu g++. Can anyone help me? Thank you in advance … | |
Hello there, guys! I am quite some time now into programming, but have been dealing with C source codes for a short time. After creating some very basic programs, I want to do something more "sophisticated", might I use this expression. But let me not beat around the bush and … | |
I have to write a program for homework that asks for contestant scores, then outputs the total after the lowest and highest number are deleted. This is what I have so far. I can't use a sort since we haven't covered that yet and I'm not sure exactly how to … | |
Hello ladies and gents, I'm trying to do another exercise from Accelerated C++ in wich I have to write a program to count how many times each distinct word appears in its input. What I have untill now is this, [code] int main() { vector<string> theWords; string aWord; short count; … | |
I have a project in C while i need connect with the databse using turboc C? plz help me in this regard. | |
these are the instructions for the program. > Prepare the Fraction class as we discussed in the classroom. It should include three constructors -- one with no parameters and which creates the fraction 0/1, one with one parameter numer and which creates the fraction numer/1, and one with two parameters … | |
So I have asked a couple of questions already about this shell programming, but I have another yet again. I'm not sure why my times function in this program isn't reporting the time right. It always says that I have 0 seconds of time for a process or some giant … |
The End.