49,761 Topics
| |
1st time trying to do C++. I need direction of how to write this program. Thank you. Specification: Follow the coding style guide lines of codingStyle.doc A small postal system ships packages within your state. Acceptance of parcels is subject to the following constraints: 1. Parcels weight <= 50 pounds … | |
| |
I am a student in a first time c programming class. I amhaving problems getting my initials to print in between Hello and World in my program I am writing. I am not sure if I am declaring the variable the right way. Could you please help?? | |
Hello everyone who reads this is Darakuli here. Me and my team have been creating a MMORPG and we are looking for some people who have experience with C++ And MMORPG's our team mostly do graphics and other stuff. We are stuck on the C++ And MMORPG's as we can … | |
Hi all, If I want to check if memory has already been alocated to a pointer, and if it has I wnat ot delete it, is this how it would work? theGraph = new MyObject[size()]; if (theGraph != 0){ // or even NULL delete[] theGraph; } This seems intuitive to … | |
Hi, I am not a C programmer, but have been given some code to get compiled and use. We host our server with 1&1 and I can access the machine via SSH/Telnet, but when I come to run the make file, I get the following error: > make g++ -DGNU_CONSTRUCTOR_BUG … | |
[COLOR=Plum] [SIZE=4]:?: I want C and C++ technical Model Question and Answers for my campus interview . :sad: IT is very important to me so please if u had means send it to me.[/SIZE][/COLOR] MY E-MAIL Addrs, | |
It has been a while since i have taken C++ and I am tryig to write a program. The program is supposed to let the user input how many vertices the polygon will have, then let them put in the vertices, calculate the length of the sides, then use Heron's … | |
Hi all. Somthing strange is going on... I want to use "-debug" command line parameter to make my app show some debug info. Here is my code (not entire but needed part)... [code] #include <iostream.h> bool debug_mode=0; int main(int argc, char **argv) { if(argv>1) cout << argv[0] << endl << … | |
[code] Graphics In Pixel Part II A 'Now we are going to get it' By Aaron (a.k.a FireNet) [url]http://xlock.hostcubix.com[/url] [/code] Introduction ------------- The long awaited part 2 is finally almost here.This is mini section elaborates on what Part I said.I broke up up Part II because it was getting too … | |
my input file looks like this: 112;12 130;30 156;56 the first colum refers to keys, and the other one refers to quantity. im writin a program to search for the key and print out the quantity using hash algorithm. i used structure. so it looks like, lets say, input.getline(structure.key, sizeof(structure.key),';'); … | |
i need an example of a simple interfacing program with schematic diagram including circuits!!!! pls help me!! i need it today!!! | |
Good day. I am busy writing a small console program and need help with the following: - I need to be able to allow the user to enter a start date and end date and display data with dates which falls wihin this range. - Once I have this data, … | |
| this program should output the names in ascending order which entered by the user. i know there is wrong under if(strcmp...) part..because i do not how to order it... can someone show me how to continue.. thank you.. #include <iostream> #include <cstring> using namespace std; int main() { char name[4][50]; … |
First i wanted to say thanks to the ones who help me with my first thread :-) i was able to get that program running with some more coding. now w.the problem i have. Iam trying to write a multiplication program that will help my kids memorize his time table. … | |
Need some help. Don't know anything about programming except HTML, would like to know where I should start to learn the language. :?: | |
Please give me any idea about crawling............................. especially from https sites :-| | |
If a 2d array is allocated memory in this fashion, how should it be deleted? MyObject **lastJobs, **lastMachines ; lastJobs = new MyObject*[getNbJobs()] ; lastMachines = new MyObject*[getGreatestMachineNb()] ; does this suffice: delete[] lastJobs; delete[] lastMachines; | |
why i have to press "enter" twice before getline can read the string... can anybody help me to solve this problem... [code] #include <iostream> #include <string> #include <new> using namespace std; int main() { string *name, hold; int num, i, j; cout << "----------------------------------------------------\n" << "This program creates a dynamic … | |
This is giving me a headache...can someone please tell me why these statements ARE NOT equivalent? Statement 1.) if(running_result && shell[8 * (x - 1) + (y - 1)].input_val) running_result = true; else running_result = false; Statement 2.) running_result &= shell[8 * (x - 1) + (y - 1)].input_val; ------------------------- … | |
Need an up to date tutorial for using C++. It has been a few years since I've had my last C++ class and since I don't use it on a daily basis, I forgot a lot that I had learned before. Need basic information and some beyond for programming. I … | |
1st time trying to do C++. I need direction of how to write this program. Thank you. Specification: Follow the coding style guide lines of codingStyle.doc A small postal system ships packages within your state. Acceptance of parcels is subject to the following constraints: 1. Parcels weight <= 50 pounds … | |
Hi, I'm Anoop. I am doing my masters in computer application degree. In our course we learn computer science subjects and C, C++ & Java prog languages. I am also keenly interested in music and am playing keyboard for the past 4 years. I still have 1 and a half … | |
Dear God, I've been trying to write this program that is suppose to read in a text file manipulate in and give the following out put infact here is the question Implement a program that uses a form-letter template to generate form letters. Your program should read in a form-letter … | |
Would I have to go about doing the math manually and make my own function? Is there some built in function I can use to be lazy? Is there some totally easier way that I am oblivious to? | |
Please give me any idea about how to download a web page from https sites using VC++. ie how it generates url and open that page.Its very urgent for me...... Regards SAINI ;) | |
(I have already posted this in code snippets, but I am posting it here to because some people may not read the post in code snippets because they are not interested in code snippets. Main point: I posted it here so more people would see it. ;) ) I would … | |
I would like to get into two dimensional game programming, and have even taken the time to outline the game: I AM NOT ASKING FOR THE WHOLE CODE. I simply want to know :?: The commands that allow this kind of object based manipulation of graphics and text, as well … | |
hi everyone, am sorry but i have to bother you again. Here is my question. Firstly I want to know how to include asm programming in C. Secondly, is there a way to convert hex into asm in C. Thanks for all your responses. :) | |
I WANT OT KNOW HOW TO WRITE APROGRAM WHICH IS GIVEN ONE OR MORE STRING AS COMMAND LINE PARAMETER AND WHICH BUILDS A LINKED LIST HOLDING COPIES OF THOSE STRING (I.E EACH NODE IN THE LIST SHOULD CONTAIN A STRING AND A POINTER TO THE NEXT NODE). tHE ORDER IN … |
The End.