49,757 Topics

Member Avatar for
Member Avatar for Masood_786

Hi All, I have a USB capture Card (EasyCap USB2.0 Video Adapter with Audio) Model DC60. In Windows XP it comes under Imaging Devices as (Syntek STK1160). i have attached a camera to the input and windows xp displays the video in it's default dialog. I want to programatically display …

0
65
Member Avatar for Ancient Dragon

>>Ok, so time() function (argument being null) returns what? It returns the number of seconds since 1970, as you previously posted. It doesn't matter whether the parameter is NULL or not, it will always return the same value.

Member Avatar for Ancient Dragon
0
368
Member Avatar for Lusiphur

To preface this post I'm going to say that what I'm looking to do is purely in the theorhetical stages at this moment so I don't have any code to share yet. At it's basest essence what I'm attempting to do is compare Image A with Image B to determine …

Member Avatar for arisa12
0
672
Member Avatar for alex1050

[CODE]#include <stdio.h> cant figure it out, im trying to count all digits please help with this bugs int main() { int iochar, numdigits=0, numlower=0, numupper=0, numwhites=0; printf("Please enter a phrase:\n\n"); while((iochar=getchar())!=EOF) { if ((iochar='\o ')||(iochar='\t')||(iochar='\n')) { numwhites++; putchar(iochar); } else if((iochar>='0')&&(iochar<='9')) { numdigits++; putchar(iochar); } else if(('a'<=iochar)&&(iochar<='z')) { numlower++; putchar(iochar-32); …

Member Avatar for alex1050
0
83
Member Avatar for Unseen Machine

Hi folks, I have googled around, read a lot and still can't figure it out. I know a bit of C++, but am far from literate in all commands. I am much happier with QBasic (old i know, but it works). I have made qb code and need to convert …

Member Avatar for mike_2000_17
0
333
Member Avatar for margeaux54

after finishing books of thinking in c++ vol1 and voL2 , ı decided to read c++ programming language 3rd edition by stroustrup. Do you think that it is appropriate?

Member Avatar for rubberman
0
131
Member Avatar for Kase42

Hey everyone. I am attempting to create a simple console maze generator in C++ for a school project. I've already gotten most of it down but I'm having a problem debugging the actual generation algorithm I've implemented. I've been learning C++ for the past few months now but I haven't …

Member Avatar for Kase42
0
1K
Member Avatar for FrancisLazo

Hey there guys I need your help as I do not fully understand the program source code below. This program will multiply two numbers without using the multiplication sign (*). I am confused with the highlighted part, the for loop part. Here it is: [CODE]#include <iostream> #include <string> using namespace …

Member Avatar for FrancisLazo
0
154
Member Avatar for rbduck09

Can someone either explain this or give me an example of what it is asking for. Heres my code if you need it In the attached picture [CODE] /////////////////////////////////////////////////////////////////////////////// // // Name: GCD.cpp // Author: Jeffrey A. Stone // Course: CMPSC 101/121 // Purpose: Computes the GCD of two integers. …

Member Avatar for WaltP
0
140
Member Avatar for tricket_7

I am working on a rainfall program that will ask the user to enter the total rainfall for each month, then will calculate the total rainfall for the year, the average monthly rainfall and is supposed to display the month names for the highest and lowest month. I have everything …

Member Avatar for tricket_7
0
648
Member Avatar for woody0114

Having trouble stopping my do,while loop. It asks the right questions, and I thought I had the right qualifier, while blah>0, do such and such, but it continues in the loop and keeps asking the questions Here's what i've got: cout<<"Now let's subtract the door and window area."<<"How many doors …

Member Avatar for woody0114
0
94
Member Avatar for flowerpixie

I am using darkGDK to complete an asignment where I am to create a sprite with a moon background and to make a rocket ship move up with the spacebar pressed and come back down agian when it is released. I can't figure out what I don't have in my …

Member Avatar for chrjs
0
265
Member Avatar for Taibah

hi all I want to start now with C++ windows.h libary. I already know now the basics i only programmed in CMD command line programming now i want to program further are there some tutorials or something that i can go further i dont want to stay only at a …

Member Avatar for mytich
0
178
Member Avatar for ashrafu1

hello i need to fix the problems in this program. can some one please fix them for me or give me a hint how to fix them cause i really do not know how to fix them. i also added the errors if you do not have C++ program at …

Member Avatar for Ancient Dragon
0
598
Member Avatar for woody0114

simple question that baffles me. attempting to get multiple data from a user, but cannot get the program to "wait" for the data. It spits out all the questions at once. here's what I have written //woody0114 #include <iostream> #include<cmath> using namespace std; double HSF(double ft_height, double ft_width, double s_height, …

Member Avatar for Derek Elensar
0
98
Member Avatar for CPT

just as the title says i have a problem with serializzing class which has a pointer to class. so this is a mock-up of my class structure [code] class X{ private: int number; public: int set_number(int); int get_number(void); //I'm defining the stream operators so class will act as primitive data …

Member Avatar for L7Sqr
0
95
Member Avatar for SWEngineer

0 down vote favorite I'm new to Qt, and trying to compile and run this Qt program I typed from the [I]Programming with Qt[/I] book: [CODE]#include <qapplication.h> #include <qlabel.h> int main(int argc, char *argv[]) { QApplication myapp(argc, argv); QLabel *mylabel = new QLabel("Hello",0); mylabel->resize(120,30); myapp.setMainWidget(mylabel); mylabel->show(); return myapp.exec(); }[/CODE] When …

Member Avatar for jonsca
0
277
Member Avatar for Casper3912

I have a assignment which requires the use of multiple files. I don't believe I am linking them together correctly. I'm using visual basic 2008 at the moment. Ofter I get the program working I'll create a make file and test that. I'm also not too familiar with the string.h …

Member Avatar for thekashyap
0
185
Member Avatar for Dexxta27

Well I have made separate programs for testing and debugging purposes and now I want to put them together. Is it possible to use one .cpp as some sort of a header file, and call it later on? I saw it done before but I think it was a makefile(which …

Member Avatar for Dexxta27
0
119
Member Avatar for Doughnuts

My assignment is to make a program that can resize a dynamically allocated array. But when I delete a value, the program crashes (memory leak?). Here's my code. [CODE]#include <iostream> #include <cstdlib> #include <cstring> #include <limits> using namespace std; typedef char* charPtr; typedef charPtr* strPtr; strPtr delEntry(strPtr a, int &size, …

Member Avatar for Ancient Dragon
0
165
Member Avatar for thecodepixie

So, here is the thing. I am dissecting some code to try and better understand how to finish my project (I'm a student. Made it to the final project without getting too lost!) and I am a little stuck. This part of the code randomly fills a 32x32 2D array …

Member Avatar for Arbus
0
160
Member Avatar for arun srinivaas

I tried out this sample program [CODE]int main() { int *i=new int; return 0; } [/CODE] The return type of new is a void pointer . Pasted below [iCODE]void* operator new(std::size_t);[/iCODE] [iCODE]int *i=new int;[/iCODE] new int in the above statement should return void pointer . How can a void pointer …

Member Avatar for rubberman
0
209
Member Avatar for arun srinivaas

[CODE]#include<iostream> #include<stdio.h> using namespace std; int main() { for(int i=0;i<10;i++) { char *a=new char[10]; printf("%u\n",a); } return 0; }[/CODE] This is the output that i got 5377864 5377888 5377912 5377936 5377960 5377984 5378008 5378032 5378056 5378080 why the memory is increased in size of 24?

Member Avatar for rubberman
0
134
Member Avatar for ben25x

Hello everyone. I am looking to see if there is any possible way Visual Basic 6.0 code can run in Visual C++ 2008 Express. Any help would be very appreciated.

Member Avatar for Ancient Dragon
0
431
Member Avatar for Smartflight

Yes, I did a search, and I understand time() better than before, but I would appreciate personal help. Initially, I wanted to make a program/function that would randomly generate a number. Next, I wanted to limit it between two defined numbers. I came across rand() yesterday, and I couldn't get …

Member Avatar for Smartflight
0
264
Member Avatar for nunopedrosilva

Hi, I'm trying to convert a string to an enum data type, and am having a bit of a hard time to do it. Basically I have [CODE] enum MyType{ Saw, Saw2, Saw3 }; [/CODE] more over I try to read from the console: [CODE] MyType m; cout << "What's …

Member Avatar for rubberman
0
6K
Member Avatar for Pamalicious

please, someone please help me understand polymorphism. I need help. Thank you. Pam

Member Avatar for frogboy77
0
77
Member Avatar for diedie

hello all. I'm relatively new here. and very much a newbie in c++, string manipulation. I couldn't solve this. it has taken me soooo long. I did search the entire forum and google but those solutions seem a bit advance for my string problem. I know this is just basic, …

Member Avatar for WaltP
0
183
Member Avatar for hawita

I need help writing my program. Please i am new to C++ . String manipulation: the user inputs a sequence of characters; the program prints all possible permutations of those characters. Example: input: “abc”; output: “abc acb bca bac cab cba”

Member Avatar for rubberman
0
55
Member Avatar for Dexxta27

The line "getline(cin,get_password);" doesn't repeat if the user chooses to re-enter the password. It pauses for a short while when it should run that line, refuses to accept any data, and then continues as normal. [CODE]#include<iostream> #include<string> #include<windows.h> using namespace std; int main() { string get_password; string password="abc4"; char repeat1; …

Member Avatar for Dexxta27
0
148

The End.