51,593 Topics
![]() | |
Define a class to represent Circle with 3 private data member which are Radius, XP & YP. To include a complete set of the foll. funnctions ie. accessor, constructor & member to input a circle, to get the location & radius of circle, to move a circle and resize a … | |
I'm a novice programmer, I'm writing a program called GPA that reads characters and numbers from a file. The numbers from the file are the amount of credits for a course, the characters on the program represent the grade for the course. I'm supposed to find the amount of credit … | |
Hi there, I am currently converting a matlab file to C, and need some help writing the data calculated in 2D arrays to files. This is what i ahve done so far: <snip> File *U; File *V; File *X; File *Y; U = fopen("U.txt", "w"); V = fopen("V.txt", "w"); X … | |
Can anyone help? Does anyone know of a simple peice of code in c/c++ that will allow me to convert ASCII characters into their relevent binary code and back again? Cheers. | |
Any good libraries out there for C++ cgi implementation? | |
I have the code(below) but I can't get the program to close data2.txt and opne it again. Is there a way to reset the starting read position? I want it read through the file for as many times as I want, without ever editing the file. [size=2]#include <fstream> #include <string> … | |
Hallo everyone . I am looking badly for an algorithm or for a c/c++ code for modem anitializing and streaming . my goal is to make a call through my modem , but talk on the phone throught the sound blasters microphone and to here through my soundblaster speakers . … | |
[font=Times New Roman][size=3] [code] #include <iostream.h> #include <string.h> void menu_choice(); void char_count(char[], char); char* concatenating_function(char*, char*); int main() { char continue_input; char char_to_count=0; do { menu_choice(); cout<<"Do you want to continue?\n"; cin>>continue_input; }while (continue_input == 'y' || continue_input == 'Y'); return 0; } void menu_choice (void) { char word_to_use[30]; char … | |
This is probally in the wrong section, but I'll ask anyways. I want to implement a program in C/C++ that validates an email by first checking for proper syntax, then validating the domain name, and finally the mailbox name. The propblem iv'e run into is, I dotn know how to … | |
[font=Arial][size=2]Hi I am trying to write a program that will demonstrate encryption to the user. I would like to have some kind of button menu at first, then the program will show an example of each depending on what button was pressed. Any idea's? Should I go for a win32, … | |
Hi all, My knowledge of C++ is nill, and I need help. I am having a program written in C++(with MFC classes). I will get the source code when completed. My goal is to be able to brand the program to my different websites. The programmer says he is setting … | |
Please help me. I just need an explanation and its really simple! I promise! Here is the assignment and COMPLETED WORKING CODE! // Description : Write a program to read in an object's mass (in pounds) and convert it to both // kilograms and grams. The program should prompt the … | |
This is my first post on this forum so hello everyone, I want to make a program which would link to a data base, either excel or access, and could edit/add too the database from the program and also look up entries into it, i have borland c++ builder 6 … | |
This what I have done so far... (to cscgal and inscissor) As you can probably tell I have't done C++ for long; only a few weeks now so please point out any mistakes that I have made. Here is some evidence to prove that I have tried, even though it … | |
Hi there guys! I am trying to write a program using Visual C++ 6.0. It is a dialog MFC executable application (i dunno if this is the best to use) which has three buttons, say A,B and C. I would like the program to display one picture if the user … | |
Hi, I am a programmer on c++,i want to do programming on symbian(Epoc) operating system. presently i dont know anything about the programming on symbian operating system. please give me ideas, and suggest the books what i have to refer. waiting for ur replies | |
how do u pause a command in c++? i know how to pause using system("pause") or cin.get() but i want to know hot to make the program sleep for a certain ammount of time... like vbs' wscript.sleep 1000... if that helps thanx | |
I got this big problem. I have to automate a Telnet connection for this project but I have no idea on how to do that in C/C++ :( . I need to be able to send an ascii file's contents (1 command per line) so that it will automate those … | |
Does anyone know of a good way to prevent a process from being hooked by another, or at least by detecting the hook? | |
I have just written some classes in visual c++ with MFC that give me out data I want to plot in excel. Are there any tutorials out there that will help me write a macro in excel that will pass the data to my classes then read the results given … | |
////having trouble with this one after first input starts a crazy loop malf. #include <iostream.h> #include <conio.h> const int MAX_ITEMS = 5; typedef int InventoryArray[MAX_ITEMS]; void DisplayOpeningMessage(); void DisplayEndMessage(); void OutputInventory(const InventoryArray items); // const used to protect the array from being changed void InputInventory(InventoryArray items); void ProcessChoices(); void OutputOneInventoryAmount(int … | |
[font=Arial]Hello.[/font] [font=Arial] I have been given an assignment to complete by next Tuesday... (it was supposed to be a week Tuesday but my College messed up the dates). I have been told to construct the classes (base and derived) for a 'contact' program. The actual program doesn't have to work... … | |
how would you make a simple exe application for something like this in vis c++. so that you could send it self contained and a person double clicks it and it runs. please show the code and where you would enter it. thanks #include <iostream> using std::cout; using std::cin; int … | |
[COLOR=Sienna]For people new to programming and want to learn, or for experienced programmers too. This site I am using to learn has been extremly helpful. The instructions are clear and in laymans terms so dont worry about getting lost right away. :cheesy: [url]http://www.cprogramming.com/[/url] If anybody else knows of good resource … | |
I'm writing a face recognition application in Visual C++. Part of my task will involve taking an image from my digital camera as input to my pattern recognition algorithm. I am using a Kodak EZ 200. Is it possible to write a program in C which can make system calls … | |
hey, my first post here :D and I don't think it's too much of a problem... I just can't get it to work. This is a simple Tile Engine written in GDI32/C++. Errors: c:\Documents and Settings\Default\My Documents\Visual Studio Projects\Dragon Slayer UM\Dragon Slayer UM\cMap.h(10) : error C2143: syntax error : missing … | |
I'm currently in file processing and I have a project dealing with fixed length records and making an attrcat and relcat catalog. Simply: use system calls to check if a dir is there and create a new one for the database. system ("dir"); system ("mkdir Rambo"); system ("cd Rambo"); system … | |
i am in a class and find C++ a challenge. i have an assignment and this is what i have so far. i need help, because i am not too analytical. #include <cstdlib> #include <ctime> #include <iostream> using std::cout; using std::endl; int main() { int (a, b); int (a * … | |
Hello . . I'm trying to get my random number generator to work but i'm having a tough time here's what i've written so far I can't seem to get the number generator to give me a truly random number . . . i'm sick of tooling with it and … | |
i dont think any one else has mentioned this here. but here is beginners guide to c++. it claims you dont need ANY experience have a look and see what you think [b][i][u][color=magenta][url="http://www.eliteproxy.com/cpp/tut/fabct/fab.html"]clickety-click[/url][/color][/u][/i][/b] | |
Please help me get the minimum in the following problem. i get everything else but the min. take a look at it. //************************************************** // Description : This program asks a user for five real numbers, then outputs // the number of data entries entered, the total of the numbers // … | |
I am doing a program in C++ with do while loops and switch case. After the user enters the info required, the program automatically does the while part. It is not ejecuting the switch case (most important part in my program). What can I do? | |
Hi After getting great help with my first post here I thought I would try again. I need to create a (dynamic) number of objects of two types, eggs and fry. I then need to be able to delete the fry and then make a new group of fry objects … | |
I'm writing a simple one window program with inputs and outputs in a GUI. My problem is that I don't know what program to use to make the graphics and then implement them into the window I am using. I just need to be able to make simple vector objects … | |
Hai, Iam New to VC++. In my system i installed DirectX 9.0 and VC++ 6.0. Now i want to use DirectX in VC++, can any one tell me how to use DirectX in VC++. i mean what are all basic steps i need to follow. (I want to capture the … | |
Hi.. plz I need ur help.. I wrote my assignment & it runs but, not all statements can be executed I don't know why?? could u help me?? :sad: this is my code: #include <iostream.h> int check(char x){ if( x=='a'||x=='b'||x=='c'||x=='d'||x=='e'||x=='f'||x=='z' ) return 1; else return 0; } class CarADT{ private: … | |
Hi All, i have just started to look into picking up a bit of c++. i've been having a search about on the net for some tutorials and web links to help me learn but so far i havent really found much. can anyone out there drop me some links … | |
Hello C++ Guys, is it possible to make automatic frames for pictures on my web site with C++? Thank you very much for your help. Have a nice Christmas, Josef | |
i am currently making a game i am rushed and cant put much more. basics: im 14 and do not have company need good C++ programmers Need good graphics programmers for 3-d need good AI programmers i will post more later......... | |
Hello all, I will start off by saying Im in the dark with some aspects of C++, in an intro computer course at college. My question is about how to use char commands for when I have multiple users using the same segment of C++. ex. 3 users are asked … | |
I've got a problem with Microsoft VC++ 6.0 and DirectX. I made my last game using Microsoft VC++ 4.0. I had no problems. I was using DirectX 6.1 SDK and DirectDraw4 functions. Well I'm upgrading my game engine to use DirectX 8.1 SDK. I need to fix a problem that … | |
What is the difference between function template & template function? Thanks. | |
Hello.I am having some problems with my vc++6 compiler.Here is the code: [CODE] #include <iostream.h> class SimpleCat { public: SimpleCat() { itsAge = 2; } // if I put the definition of the function into the daclaration,that becomes an "inline" function ~SimpleCat() { } // class destructor int GetAge() const … | |
Hi, I am currently working on a program that compiles fine and runs OK to give some results. However, when I try to split the program into 3 parts, it it gives some weird compilation errors. Initially I had one program, calc.cpp that manipulates polynomials (adds/ subtract/multiply them). However when … | |
[b]Last transmission from Starbase XY003 -- the galaxy's last out*post*[/b] [size=2][url="http://undergraduate.csse.uwa.edu.au/units/231.312/Clect1.pdf"][u][b][color=red]http://undergraduate.csse.uwa.edu.a....312/Clect1.pdf[/color][/b][/u][/url][/size] [size=2][url="http://www.teicontrols.com/notes/C_Programming/C_ProgrammingNotes.pdf"][u][b][color=red]http://www.teicontrols.com/notes/C_...ammingNotes.pdf[/color][/b][/u][/url][/size] [size=2][url="http://www.oucs.ox.ac.uk/documentation/userguides/c/l922.pdf"][u][b][color=red]http://www.oucs.ox.ac.uk/documentat...ides/c/l922.pdf[/color][/b][/u][/url][/size] [size=2][url="http://oscinfo.osc.edu/training/C/ccourse_fix.pdf"][u][b][color=red]http://oscinfo.osc.edu/training/C/ccourse_fix.pdf[/color][/b][/u][/url][/size] [size=2][url="http://ei.cs.vt.edu/%7Ecsei/project/sf/notes/cprog.pdf"][u][b][color=red]http://ei.cs.vt.edu/~csei/project/sf/notes/cprog.pdf[/color][/b][/u][/url][/size] [size=2][url="http://www.strath.ac.uk/IT/Docs/Ccourse/"][u][b][color=red]http://www.strath.ac.uk/IT/Docs/Ccourse/[/color][/b][/u][/url][/size] [size=2][url="http://www.cs.cf.ac.uk/Dave/C/CE.html"][u][b][color=red]http://www.cs.cf.ac.uk/Dave/C/CE.html[/color][/b][/u][/url][/size] [size=2][url="http://www.cprogramming.com/"][u][b][color=red]http://www.cprogramming.com/[/color][/b][/u][/url][/size] [size=2][url="http://www.eskimo.com/%7Escs/cclass/cclass.html"][u][b][color=red]http://www.eskimo.com/~scs/cclass/cclass.html[/color][/b][/u][/url][/size] [size=2][url="http://www.lysator.liu.se/c/"][u][b][color=red]http://www.lysator.liu.se/c/[/color][/b][/u][/url][/size] [size=2][url="http://www.eskimo.com/%7Escs/cclass/notes/top.html"][u][b][color=red]http://www.eskimo.com/~scs/cclass/notes/top.html[/color][/b][/u][/url] [b]Here are some compiler links:[/b] [/size][size=2] [size=2][url="http://www.gnu.org/software/gcc/gcc.html"][u][color=red]http://www.gnu.org/software/gcc/gcc.html [/color][/u][/url] [/size][/size] [size=2][size=2][url="http://www.delorie.com/djgpp/"][color=red]h[u]ttp://www.delorie.com/djgpp/[/url][/u] [/color][/size][/size] [size=2][size=2][url="http://http://users.cyberelectric.n...nkCompilers.htm"][color=red]h[u]ttp://http://users.cyberelectric.n...nkCompilers.htm[/url][/u] [/color] [/size][/size][size=2][size=2][url="http://http://www.willus.com/ccomp.shtml"][color=red]h[u]ttp://http://www.willus.com/ccomp.shtml[/url][/u][/color] [/size][/size] [size=2][b]Read the sig for a better understanding[/b] [/size] [B][edit] link colours changed. peterska2[/B] | |
[b]Working With C++ [/b]C++ syntax is the way which the code is arranged to form the language. Each computer language has its own unique syntax. For example, the syntax for adding two numbers may be different in one language than in another. Syntax is to programming as grammar is to … | |
[b]OOP[/b] C++ is an object-oriented programming language. In other words, it contains what are known as objects, such as classes and structures, which allow the easy manipulation of large amounts of data. The easiest way to think of them are as records. [b]Creating Data Types[/b] When one creates a class, … | |
How can you set the precision of a floating point value for output using the Console::Write method? In the past, with cout, you just used setprecision() but that doesn't seem to work with the Console functions. | |
Ok guys... I'm sorta new to this forum.. so hello all.. but neways.. here is my problem.. This is the assignment I have: [url]http://www.ece.uc.edu/~berman/228-2003/program2.html[/url] Can someone basically explain what I should do? Am I supposed to like sort part of it using insertionsort and the other part with one of … | |
Below is posted a program as assigned halfway through my C++ class. I do not need any help doing the project itself, I just need help trying to get through the typographical errors and vagueness! Can someone give a shot at possibly trying to rewrite what he is asking for? … |
The End.