51,592 Topics
![]() | |
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 … | |
[COLOR=DarkOrange]wat is the difference b/w ponters and strings?[/COLOR] :sad: | |
So I have to make a UNIX shell that can basically take in any UNIX command and then keep a record of the time each process took, by forking off children processes, recording their time, and recording the parent's time, and then return that time into a linked list or … | |
I have a toolbar with 2 togglebuttons. I have a program written in C# and another in VC++.NET of the same code. In the C# program, the toggle button would pop when the other is pushed and vice versa. In the VC++.NET program, this doesn't happen. Both buttons could be … | |
Hello, I'm trying to get an OOP MFC application working, so far it complies and everything but nothing happens. And I cant work out why. I would post code snippets but the simple fact is the MFC lib is far too big for that stuff. I've zipped up my project … | |
Where could I find tricks, riddles and puzzles in C and C++ as I have a technical quiz and have to prepare for that. Thanks, comwizz :?: | |
hi frieandz I am chaitanya, I am new to this forum, well I am posting my first thread to this forum, please reply to this with an answer, I got a string called "helloworld" I want to swap the two words in that string an di want to print it … | |
Well this program is suppose to not accept anything but s, S, r, R, p, P, or q, Q. When some one enters anything whether it be those or somethign different the while loop continues (it won't let me escape) Well any ways here it is. [code] #include <iostream> #include … | |
I need some help with the following assignment. I think I'm pretty close, but I'm missing something. Any help is very much appreciated. Assignment: [I]Part 1 : "Create a function template called average(). It will accept two arguments of the same type and computes the arithmetic average. The average is … | |
Hello, I am trying to move data from a client to a server, and save it in a file. However, I am getting a "Runtime Error!" when I use the substr() function, here: [CODE]char buffer[256]; int sr = recv(acc, buffer, sizeof(buffer), 0); string buffStr = buffer; outfile << buffStr.substr(9,buffStr.size()-1) << … | |
Hi.I have been trying to write a simple program that teaches how to read and write Japanese.Unfortunately not every windows does not support Jpanese characters.So like when my program starts I have a pop up which has to give a japanese chared message altough I write the code as such … | |
Hello guys :) I have a prog. assignment due on Sunday! I need help to get me started. The task is implement a program for any hamming codes not just (7,4). The user input the following: 1. Desired hamming code (n,k) 2. Choose to encode or decode. So, I am … | |
Hello, I know, i'm pretty much new because I don't post here often, so go ahead and jump on me if you want :cry: . My name is Patrick Cason. Anyway, I have come here to ask you this. Are there any C++ game programmers looking to join a team … | |
Hello Everyone, I am a very green programmer, lol, and I really need alot of attention right now. My assignment consists of me writing simple codes, but I just cant figure this out out. > Question: > > > write a program using a function and a series of if/else … | |
i have to make a simple calculator program in c++ the program need to have the all the calculation in a function called do_next_op. i tried to make this program but it turns out that my program returns incorrect results, i think it may be caused by the value of … | |
How do you make an insertion sorting algoritm using a liked list, first of all, i really dont have the slightest idea about link list, can anyone pleeeeeeeeeaaaaaaase help me.... :?: :?: :?: :?: :?: :cry: :cry: | |
Hello to you all , i have recieved an assignment to build a recursive function which will recieve an array which has to check if it is "Up&Down" from both sides : Example : 2 5 6 12 7 5 2 . according to the specs of the H.W assignment … | |
Havent written any code in along time but took up a little project that requires some C++ , Just need a little help getting started. Does any one have the source code for a program that will Read file write what it reads to another file. Pick out specific tokens … ![]() | |
Quick question while learning C++: Say you have class A, you can instantiate an object of class A like: A a; And then you can do stuff with that class (eg, a.method(), etc.) But you can also do: A a = new A(); And do stuff with that, and delete … | |
Hi evryone I using MVC++ and built my project using Win32 app. My program do not have any interfaces. it reads files and it put the output in another file. ( I do not mind put interface only to enter the path) the thing is I made my program read … | |
I have been having some problems with strtok. I'm not very experienced in C/C++ so I'm not used to using strtok. the code I have is this: [CODE] char *cmnd; string cmd[100]; char inpt[81]; while(1) { cout << "statsh$: "; cin.getline(inpt,' '); cmnd = strtok(inpt," "); int c = 0; … | |
hi, :) I have just started doing programming for emmbedded devices. i'm using AVR atmeg16 microcontroller and Cygwin C/C++ 32-bit compiler. Can anyone of you tell me which processor is used in Nokia 3315. and where should i get the documentations. Please don't tell me to see GOOGLE, I tried … | |
Is there any way to resize a console program while its running also whats a better way to clear the console then [CODE]system("cls");[/CODE] cheers | |
Here is my attempt, could you look over it and tell me what I am doing wrong? #include <cstdlib> #include <iostream> #include <ctime> #include <cmath> using namespace std; void add(float[],float[],float[]); int main() { float a[500000000],b[500000000],c[500000000]; for(int count =0; count<500000000;count++) { a[count]=rand(); b[count]=rand(); } add(a,b,c); return 0; } void add(float x[],float … | |
I found this c source code in some website wich is very complex and interesting to study . so i get the code and look at it its really complex so i decided to try it out and compile it and i get errors. [CODE]Compiler: Default compiler Executing g++.exe... g++.exe … | |
Hello, I am working on a server program that deals with opening files, or at least that is all that is relevant for this post. I am using VC++. I use multithreading so that it can be multi-client, of course, but when I try to use this line: [CODE]infile.open(filename, ios::in);[/CODE] … | |
Hi everyone I used MVC++ and built a project win32 app( world) which has in it folder(world.dsw, world.dsp, world.cpp,world..., Input.csv,output.csv) , my program do not have an interface. because it open and read in.csv and do some calculate to put the output in out.csv. Now I would like to make … | |
Hello i am new the the programing sene and im trying to create a program for my help with my html and i am stuck! I can get basic HEX code from like CC to 204 dec. but i cant go backwards? and i want to be able to tell … | |
I have developped windows dll from VB. (The site [url]http://www.windowsdevcenter.com/pub/a/windows/2005/04/26/create_dll.html?page=3[/url] gives a way to generate windows dll from VB). when I try to access it from VC++, it gives run time error as access violation. If anybody knows the solution to access the DLL in VC++ , created from VB, | |
If I have this struct : [code] typedef struct node { int key; struct node *leftp; struct node *rightp; } *Treep; [/code] and I have this function [code] int blah (Treep *tree); [/code] How can I pass the tree right pointer again into the blah function, I tried using blah … |
The End.