49,757 Topics

Member Avatar for
Member Avatar for OblibSystems

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:

Member Avatar for ddanbe
0
434
Member Avatar for manie
Member Avatar for iAMyours

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]

Member Avatar for WaltP
0
91
Member Avatar for meshael

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 …

Member Avatar for WaltP
0
94
Member Avatar for Labdabeta

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?

Member Avatar for BCBTP
0
118
Member Avatar for hariharan89

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

Member Avatar for Ancient Dragon
0
64
Member Avatar for hariharan89

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.

Member Avatar for hariharan89
0
122
Member Avatar for cppgangster

Hi I want to learn network programing, but I dont know where to start. I want to do windows networking. Help please

Member Avatar for cppgangster
0
82
Member Avatar for c.pentasuglia

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 …

Member Avatar for c.pentasuglia
0
481
Member Avatar for c++ prog

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 …

Member Avatar for Cross213
0
114
Member Avatar for elmar01

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!

Member Avatar for WhiZTiM
0
154
Member Avatar for Zssffssz

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

0
87
Member Avatar for DoubleZ

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 …

Member Avatar for DoubleZ
0
2K
Member Avatar for Triarius

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

Member Avatar for Triarius
0
187
Member Avatar for mimah1

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 …

Member Avatar for mimah1
0
169
Member Avatar for hujiba

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 …

Member Avatar for doug65536
0
168
Member Avatar for SCass2010

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 …

Member Avatar for doug65536
0
729
Member Avatar for amulgarg

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 …

Member Avatar for Taywin
0
123
Member Avatar for cheeseboy

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 …

Member Avatar for mike_2000_17
0
542
Member Avatar for Nakeo

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

Member Avatar for Nakeo
0
171
Member Avatar for garu525

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 …

Member Avatar for mbundgaard
0
941
Member Avatar for thenewbiecoder

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

Member Avatar for WaltP
0
256
Member Avatar for ambigouscase

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

Member Avatar for cherrymae.calma
0
182
Member Avatar for Faux

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 …

0
66
Member Avatar for weakprogrammer

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 …

Member Avatar for Narue
0
195
Member Avatar for rockerjhr

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 …

Member Avatar for Fbody
0
192
Member Avatar for Deepali_Jain

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.. :(

Member Avatar for Ancient Dragon
0
924
Member Avatar for somshridhar

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 …

Member Avatar for somshridhar
0
317
Member Avatar for vrs1155

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

Member Avatar for Stefano Mtangoo
0
558
Member Avatar for supersuru

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 …

Member Avatar for Fbody
0
152

The End.