49,757 Topics
| |
Basically the time old question of who would win. Just decided to put a very geeky twist to it. Just looking to see if people think C++ is better/worse then C :icon_lol: | |
Can anyone help me how to blink my introduction for my program? seriously i have no idea how to do it :( THANKS ! ;) here's my introduction: [CODE]cout <<" \n \t\t***WELCOME TO THE ALLOY INQUIRY PROGRAM!*** " <<endl;[/CODE] | |
Hello, I know that this is an old thread, but for me it’s new.. I faced this situation where the screen quit instantly, and I knew now that using system() and cin.ignore() aren’t good solutions So, I used the pause(); function, and it goes ok unless there is a data … | |
If I make my own math header with similar functions as math.h, can I possibly make it as fast as the implementations of math.h, or does math.h use special hardware or something? | |
Hi, I am using visual c++ 2008 for my OpenCV2.1. when i tried to debug in step into mode it shows. "There is no source code available for the current location." I am wrong in setting up some thing , if then guide me pls... | |
Hi , i am working with openCV 2.1, its very difficult for me to find source for the routine cvLoadImage . I really need to know how does memory is allocated while cvLoadImage is called for my project. could any one please help me on this issue. with regards, sabarish. | |
Hi I want to learn network programing, but I dont know where to start. I want to do windows networking. Help please | |
I am working on an assignment for school and i seem to be having some issues. I am using OpenGl with free glut, and attempting to animate a pendulum. I can draw out the pendulum, but cannot determine how to make it swing. I have to make it swing from … | |
I've been working on a Linked List assignment. I completed it but I still have a problem on deleting an element that has a predecessor or after an element and inserting an element after an element...can anyone give me an idea? This is what I have so far [CODE] #include … | |
Hello c++ experts. Please help me with this kind of program >.< i wanted to make my integer converted to string. For ex. I input "1" and the output must be in string "one". Sorry if i request this just need this for my homework. Thanks in advance! | |
Ok sorry, extra typos today using an international keyboard with autocorrect on. Ok I Want to mâle a text bases screensaver. I Know how to ... **BEEP** KEYBOARD STUPID IPOD!!!... use console App n stuff how do I make it a screen saver. (I watt a little thing in thé … | |
Hello, I`m just starting to get into the basics of C++ and I have to create a following program - basically the user has to input an integer and a digit of their choice and the program has to check whether the square of that integer contains that specific digit … | |
Hi! It's me again :) I have failed with my C++ code once again. This time it's with vectors. [CODE]string show_actions(){ vector<string> actions; actions.push_back("end"); actions.push_back("hunt"); vector<string>::const_iterator iter; cout <<"All of the possible actions are : " << endl; for(iter = actions.begin(); iter != actions.end(); ++iter){ cout << *iter << endl; … | |
ok so far i got this!!! but what i realized is that when i run the ouput 1 2 3 4 5 it gives me the correct output but if i put the value as 3 6 7 8 4 !!! it arranges the number as 3 4 6 7 … | |
I'm new at this so sorry if my vocabulary and stuff is totally off. With the following syntax, my goal is to call the choose_number function, which, when given two arguments (integers), returns one of those two at random. I run it multiple times with a for loop but it … | |
Hi everyone, I was wondering if anyone could help - at the minute I have a program that records how many bytes are received over a set interval (for example, 500 milliseconds). How would you calculate how many megabits have been received per second if the sampling interval will always … | |
I am having trouble finding the real trouble in my program to insert into a Binary Search tree. [CODE] //BST #include<iostream> using namespace std; class bst { public: int data; bst *lnext,*rnext,*root,*prev; public: bst() { lnext=rnext=root=NULL; } bst* addBST(bst *p) { if(root==NULL)//if tree is empty { root=p; cout<<"\nRoot Inserted!"; return … | |
Hi there pleasse help. I get the warning C4700: uninitialized local variable 'BottlesLeft' used. [B]Here is what the CalcNrCases is supposed to do:[/B] A value-returning function called CalcNrCases( BottleType, NrBottles, BottlesLeft ) that will calculate and return the number of full cases (NrCases) as an integer. It will also calculate … | |
I need to get the outputs of each process to strictly alternate. however after i select which process to out put first my program gets stuck. Any help would be much appreciated i have been stuck for awhile. code follows. [CODE]#include <stdio.h> #include <iostream> #include <stdlib.h> #include <sys/types.h> #include <fcntl.h> … | |
Good day to all, I'm doing a project about inverse permutations from an array of permutations. It's my first time coding on permutations so I don't have any experience on this. So I came up with a solution to just swap the array and the element number as the inverted … | |
I'm just starting to learn c++ and need to know how would you read the first line from a file and write to a new file? thanks | |
Given the number of commodities bought, create a program that computes the total amount purchased in a fast food center. Assume that the following unit price of each commodity Fried Chicken= 29.75 Cheese Burger= 25.00 French Fries= 18.50 Soft Drinks=14.25 | |
I need help making two substrings(I think) to get the integer values (course hours, grade) for each course. I thought I had it but every time I ran the .exe it would crash after obtaining the name and major, so I deleted that code altogether. It'd be grand if someone … | |
Hey everyone I'm new here and I need help with a homework assignment that allows the user to make change. The assignment is as follows: You will write a program that will calculate the minimal amount of coins needed to make change for some amount of cents. The program will … | |
if you declared/defined a virtual function for a class and redefined it in a derived class so that when you call the derived class it calls its own version of the function and not the base class function , how do you call the base class function on the definition … | |
I am compiling a VC++ source file in VS2008 licenced edition. Using the following header files: #include <regex> But I am getting the below error while compiling. fatal error C1083: Cannot open include file: 'regex': No such file or directory Please advise what Iam missing here.. :( | |
Dear Sir, I am tring to convert integer to string and using string for further find and replace operations. While doing so I am using for loop to for integers and then wants to store all these integers in strings. But I did not succeed. But If I use only … | |
friends i am learning visual c++ 6.0.i need to know how to connect the database(oracle).can you tell me how to do??.give me some example.... mfc application connect to oracle database,any example ??? thanking you | |
hey can any 1 help me out here coz i am new to c++ and have couple of errors Using a program that gets the product of even numbers and sum of odd numbers between 1000 and 100, demonstrate the syntax and implementation of the different types of loops. have … |
The End.