51,592 Topics

Member Avatar for
Member Avatar for mydadisadentist

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 …

Member Avatar for WolfPack
0
162
Member Avatar for nimero

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

Member Avatar for jwenting
0
140
Member Avatar for Subterraneus

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,

Member Avatar for Subterraneus
0
154
Member Avatar for Nickol

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 . …

Member Avatar for Nickol
0
121
Member Avatar for sosy2001

#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: " …

Member Avatar for Nedals
0
169
Member Avatar for kharri5

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 …

Member Avatar for kharri5
0
347
Member Avatar for Acidburn

Hello, I'm wanting to print a circle to a screen, or should I say on a form. Any ideas? Thanks

Member Avatar for Acidburn
0
209
Member Avatar for sosy2001

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> …

Member Avatar for sosy2001
0
184
Member Avatar for JoBe

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 …

Member Avatar for jwenting
0
125
Member Avatar for yoshi4483

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 …

Member Avatar for yoshi4483
0
94
Member Avatar for dreamreaver

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 …

Member Avatar for dreamreaver
0
441
Member Avatar for JoBe

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 …

Member Avatar for JoBe
0
286
Member Avatar for Lothia

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; …

Member Avatar for Lerner
0
1K
Member Avatar for nxt2thrill

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

Member Avatar for nxt2thrill
0
108
Member Avatar for nicolamezzetti

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 …

Member Avatar for jwenting
0
81
Member Avatar for Zababa

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 …

Member Avatar for WolfPack
0
235
Member Avatar for KittyGirl

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 …

Member Avatar for WolfPack
0
149
Member Avatar for JoBe

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; …

Member Avatar for JoBe
0
266
Member Avatar for rajuwani121

I have a project in C while i need connect with the databse using turboc C? plz help me in this regard.

Member Avatar for jwenting
0
206
Member Avatar for fevershark

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 …

Member Avatar for iamthwee
0
375
Member Avatar for kharri5

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 …

0
88
Member Avatar for taha umar

[COLOR=DarkOrange]wat is the difference b/w ponters and strings?[/COLOR] :sad:

Member Avatar for ITgeneration
0
332
Member Avatar for kharri5

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 …

Member Avatar for kharri5
0
164
Member Avatar for DotNetUser

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 …

0
59
Member Avatar for Acidburn

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 …

Member Avatar for Acidburn
0
379
Member Avatar for comwizz

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 :?:

Member Avatar for SpS
0
125
Member Avatar for chaitanya.b

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 …

Member Avatar for Ancient Dragon
0
148
Member Avatar for Lothia

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 …

Member Avatar for jwenting
0
192
Member Avatar for SkyFlyer1312

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 …

Member Avatar for Ancient Dragon
0
160
Member Avatar for ilikerps

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) << …

Member Avatar for ilikerps
0
233
Member Avatar for johnroach1985

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 …

Member Avatar for AhmedHan
0
390
Member Avatar for Melissa111

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 …

Member Avatar for DMR
1
3K
Member Avatar for mntlnstituteflr

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 …

-1
81
Member Avatar for sosy2001

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 …

Member Avatar for sosy2001
0
147
Member Avatar for kryptolite

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 …

Member Avatar for SpS
0
252
Member Avatar for Twins_effect

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:

Member Avatar for SpS
0
254
Member Avatar for YoTaMiX

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 …

Member Avatar for beuls
0
143
Member Avatar for sinrtb

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 …

Member Avatar for iamthwee
0
204
Member Avatar for WittyFool

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 …

Member Avatar for kon_t
0
139
Member Avatar for masa

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 …

Member Avatar for kon_t
0
171
Member Avatar for kharri5

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; …

Member Avatar for kharri5
0
176
Member Avatar for letmec

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 …

Member Avatar for Salem
0
120
Member Avatar for mydadisadentist

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

Member Avatar for mydadisadentist
0
702
Member Avatar for monique83

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 …

Member Avatar for Lerner
0
95
Member Avatar for qlp

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 …

Member Avatar for qlp
0
105
Member Avatar for ilikerps

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] …

Member Avatar for ilikerps
0
227
Member Avatar for masa

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 …

0
77
Member Avatar for Druark

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 …

Member Avatar for beuls
0
145
Member Avatar for johnchristopher

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,

0
69
Member Avatar for l-o-s-t

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 …

Member Avatar for l-o-s-t
0
259

The End.