49,761 Topics
| |
Hey I have this program that I'm having some trouble figuring out so maybe someone can give me some helpfuls hints. Here goes: I have to find all numbers between 1 to 999 who when their digits are cubed individually and then all added together, equal the original number. For … | |
Hello guys, is there a way to declare global variables as [B]float[/B] and then convert them to [B]int[/B] to be used in a function? i.e. [CODE] float num1, num2, result; float Mod(){ num1%num2=result; //Wrong, (%) requires [B]int[/B] type) } [/CODE] | |
Hello, I need help with me homework. It's probably something simple. My program is supposed: 1) read lines from a file (rain.txt) 2) find the shortest and longest lines (I used strlen()) 3) return the line number of shortest and longest and well as their length 4) show the avg … | |
Hi, I am trying to write an engine simulation program in C++ - please not that I have never done any programming. I have attached what I have done so far which is a program that calculates the cylinder volume from a crank angle (theta). What I need now to … | |
hi , i am doing a project with c++ visual studio 6 and i really want this facility, which is .. the user will enter a single character or a an integer ,so the compiler will take the input he entered (int or char) without waiting from him to press … | |
ok im trying to change this from link list to a queue.bt whenever i run it it sill shows from last to first which is the opposite from what i want.here it is, i hope somebody can try to see whats wrong with it. #include<iostream.h> #include<conio.h> struct queue { int … | |
Well as of late the only coding that i know is HTML coding, and thats because it is fairly straight forward and easy to do. Ive tried some C programming before i even had the big sams teach yourself book, but it didnt help much, it was too long and … | |
[FONT=Arial Black]undefined[/FONT][SIZE=5]undefined[/SIZE]HELP! could anybody have this kind of code: code that writes numbers from 1 to 10 in a list and then deletes even numbers. | |
[COLOR=Navy][/COLOR]hii, i am computer science student and i am doing win console application program "Project" by c++ compiler "mic visiual 6", the project is like a small data base which stores student names and thier grades and search for names, add, delete,edit and other things. i am asking if i … | |
Hello ; i'm a c++ intermedite programmers from KSU CCIS colleage and i discoverded that i can't write a high quality application without GUI and i want to move to .NET framwork but when i buy a book a say that there is a big difference between them ? is … | |
Let me declare from the start my "innocence" in C++. :cheesy: I did some "C" progs but I ran over a C++ code which I am supposed to modify. Modifications are not hard, but it is hard to get a compilation. :sad: I don't know what compiler had been originally … | |
I'm trying to communicate with a serial port on a PC using Visual C++ to read in data. Does anyone have a simple program to achieve this including relevant header files and function declarations? I’m currently learning C++ but don’t have sufficient knowledge yet. | |
I need to change this code i have written into class I need it done urgently, i have tried, and failed numerous times. [CODE]/* Assignment 2.cpp Michael Ainsworth 15737944 15.05.2004 Assignment 2.cpp Computerized Sketchpad */ //Preprocessor Section #include <iostream> #include <stdlib.h> using namespace std; const int MAXCOMMANDS = 100; const … | |
Good day to you all! :) First, as a new user on this forum, I just have to say that this must be the most useful and informative forum I've ever visited! I'm impressed! Keep up! But, to my thing... I've been learning c++ for a while now, by reading … | |
Hey guys, I was wondering if you could help me fix my program. I'm witing a program in C++ that adds, subtracts, multiplies and divides fractions. I'm suppose to put in the cosntructor that the denominator cannot be 0 or a negative number and i also I have to reduce … | |
Can similar code be written for 3 dimensions: [CODE] #include <exception> #include <iostream> using std::cin; using std::cout; using std::endl; void display(long double **); void de_allocate(long double **); int m = 3; // ROWS. int n = 5; // COLUMNS. int main(void) { long double **data; try { // EXCEPTIONS. data … | |
This is a great IDE for C++ (Windows). Great for academic programs. It comes with a C++ compiler and a slew of popular c++ libraries already for use. Very simple and intuitive to use if you don't want to use Visual C++, Turbo C++, or DJGPP. Check out the screenshot. … | |
Hello: (I am using Borland C++ Builder 6 Professional) Before you jump all over me I've already read the post Returing Arrays C/C++ and completely understand. For some reason I am still having difficulty implementing in my project. Very brief Project Explanation: I am collecting data from a laser sensor … | |
Was wondering if there are any tutorials for beginners to C++... specifically for DevC++, I can't find any tutorials for it. I'm semi-experience with C++, but only when programming for DOS output, I'm not at all used to the visual output that is offerend by Dev-C++. | |
I am in a project and i am using win simple console application and i would like to know how to make the user choose the directory of files. thnx :idea: | |
is there anything in c++ that provides to print out on screen colored text ex. cout<<"welcome"<<endl; output: [COLOR=Red]welcome[/COLOR] thx | |
Well I have looked around the forums. But I cant find the answer to my question. It has been asked many a time. Im a complete novice to the world of programming (I am, lololol) I am trying to decide which path to go down, c, c++, vb, etc. Please … | |
[font=Times New Roman]Can anybody tell me if there is a better way to code the following problem than what I’ve included below? The problem that I can see with my code is if you had to add 20 shapes to the list then you would have to add 20 if … | |
#include <iostream.h> #include <fstream.h> #include <string.h> #include <iomanip.h> //for logfile struct log { long number; char date[9]; char time[9]; char gate[2]; }; //for customers struct customer { long number; char initial[2]; char lname[20]; char snumber[7]; char sname[17]; char stype[17]; char suburb[17]; char state[4]; char postcode[5]; }; //constants for array sizes … | |
Thank for all the help you guys have helped me with.. Can someone tell me, how do I ? 1. Declare an array. Call it values with size 25; 2. Initialize this array with any random number 3. Prompt the user to enter any number 4. Search the array for … | |
Hi All I am a c++ programer tring to run my exe from a java interface. But the java interface that i wrote run on windows and the c++ exe is in unix. This is not helping me: Process p = Runtime.getRuntime().exec("\\bmdth01\\ddef03\\ksh_sh"); the unix is mapped to my comutere via … | |
I want to install a GUI library to try out but I cant seem to get it to work. I am using Dev-C++. Can any one help me to get it to work. | |
Hey hey, how ya doing ya'll? Could any one help me or guide me to a reference that might walk me through a step by step tutorial, of how could i open or close a Cd-drive's tray using C/C++ codes? thanx in advance. | |
i have been trying to incorporate various element into this mortgage calculation program. it is supposed to present the three options from the array or prompt you to enter your own rates. my structure with the public and private sections are out of place. i need help streamlining this and … | |
:rolleyes: right, im goin 2 sound like a right dunce now but here goes... what exactly is Visual C++? i've found things about it, but nothing which is easy to understand. any help would be appreciated |
The End.