49,757 Topics

Member Avatar for
Member Avatar for Manojpandey96

(a) (b) (c) (d) * ********** ********** * ** ********* ********* ** *** ******** ******** *** **** ******* ******* **** ***** ****** ****** ***** ****** ***** ***** ****** ******* **** **** ******* ******** *** *** ******** ********* ** ** ********* ********** * * ********** I managed to do a and …

Member Avatar for Despairy
0
128
Member Avatar for samohtvii

I was just wondering if anyone can give me some info on converting C++ to C. I don't really care about finding a program to do it for me, I would just like to know what is different between the two. My program is 'fairly' simple. uses file IO, prints, …

Member Avatar for deceptikon
0
304
Member Avatar for PinoyDev

Good day! I just one to ask if there is a function in C++ that can format a currency directly. Example if I have a float of *10000.00*, it shoud output *10,000.00*. Note the comma separator. Thank you!

Member Avatar for deceptikon
0
1K
Member Avatar for Despairy

hey, i need suggestions of programs to ease the access to usb devices like webcam in a c++ program im writing. this post is made because i already tried a few suggestions like videoocx and videocapX but unfortunately they arent compatible with windows 7 64 bit , or just cant …

0
110
Member Avatar for Lienordni

Using a c++ program, how can I open another program or file with a given url ?? Well actually I use dev c++ and I would like you to answer with a code or function which would work on that compiler.....If you think it can't be done with dev c++ …

Member Avatar for Suzie999
-1
298
Member Avatar for Kryptonitex

I got 2 Declaration syntax error... i really need help :D Thanks! Btw .. i'm using Borland C++ #include<iostream.h> #include<graphics.h> #include<stdlib.h> #include<stdio.h> #include<ctype.h> #include<conio.h> void main() {clrscr(); int opt,opt1,opt2,opt3,opt4,opt5,opt6; /* request auto detection */ int gdriver = DETECT, gmode, errorcode; int style, midx, midy; int size = 1; int x,y; …

Member Avatar for Kryptonitex
0
224
Member Avatar for hchikutu

I need help to write a project proposal for traffic light implementation project in c++

Member Avatar for TrustyTony
0
176
Member Avatar for rahman86

HI all. I have a problem regarding how to drawing a crescent using opengl. i recently learn this opengl so i dont have much idea how to do it, here is what i have so far. void drawCrescentTriStrip(float step,float scale,float fullness) { glBegin(GL_TRIANGLE_STRIP); glColor3f(1.0, 1.0, 0.0); // glVertex2f(0.9f,scale); const float …

0
46
Member Avatar for TheRazzle

Im trying to get this working but my if statments dont work or am i just doing them wrong ? cout << "You see a house, what do you do?\n1. Run away\n2. Walk inside" << endl; cin >> Input; if (Input == "Run away"){ PowerLevel_Final = PowerLevel_Final - 9036; cout …

Member Avatar for rubberman
0
123
Member Avatar for ncis_sg1

I am trying to write a code that is giving me a great deal of problems. **The program challenge is as follows:** Write a program that asks the user for the name of a file. The program shold display the contents of the file on the screen. If the file's …

Member Avatar for ncis_sg1
2
2K
Member Avatar for Sanjam.kumar

I made this program which had to calculate the Largest Palindrome which being the product of two 3-Digit Numbers. My Program : #include <iostream.h> #include <conio.h> int reverse(int num) { int rev=0,mod; while(num) { mod=num%10; num=num/10; rev=(rev*10)+mod; } return(rev); } void main() { textbackground(WHITE); textcolor(BLACK); clrscr(); long a,b,c,r=0,d; for (a=999 …

Member Avatar for WaltP
0
335
Member Avatar for TheLegend91
Member Avatar for TheLegend91
0
244
Member Avatar for zvjezdan.veselinovic

Can anyone help me with my program? I am making Tic-Tac-Toe and I am stuck. Here is all of my code that I have done so far.... . . . This is called design_of_board.h #include <iostream> #include <string> #include <Windows.h> #include <conio.h> #include <ctime> #include <vector> #include <algorithm> using namespace …

Member Avatar for zvjezdan.veselinovic
0
1K
Member Avatar for Manojpandey96

Can someone help me with writing C++ program using loop for the following fragment.. I tried damn hard to do so, but nothing i achieved. The fragment looks like this: & & & & & & & & & & & & & & & &

Member Avatar for deceptikon
-1
99
Member Avatar for Jinson Jacob

#include<iostream.h> #include<conio.h> void main() { clrscr(); cout<<" Floyd's Triangle " <<endl<<endl; cout<<"Enter a number till which floyd's triangle is required : "; int max; cin>>max; for(int i=1,num=1;num<=max;i++) { for(int j=1;j<=i;j++,num++) { cout<<" "<<num; } cout<<endl; } getch(); }

0
52
Member Avatar for Jinson Jacob

#include<iostream.h> #include<conio.h> void main() { clrscr(); int num; cout<<" Factorial Program"<<endl; cout<<endl; cout<<"Enter a number : "; cin>>num; int fact=1; for (int i=1;i<=num;i++) { fact=fact*i; } cout<<"Factorial of "<<+num<<" is :"<<fact; getch(); }

0
55
Member Avatar for trantran

I am finding that variadic templates are quite useful for typesafety of functions with variable length of argments, but I am having much less success using then with struct especially with typelists. Is it possible to 1) count 2) extract types in/from a typelist using variadic templates. I tried with …

Member Avatar for trantran
0
752
Member Avatar for muhammads

Hi, I have to create an application which can be executed in Linux and Windows. My question is : 1: Will i have two executables. Each for an environment? 2: Do i have to write two totally different codes for different enviroments. If yes, is there anyway to MAP the …

Member Avatar for rubberman
0
201
Member Avatar for jason007thomas

Hello I’m new to QT and C++, my primary language is JAVA (and I’m still a novice at that) But I want to learn how to use QT and C++ combined and create some awesome GUI programs I have a Bioinformatics program that reads a DNA sequence from a text …

Member Avatar for rubberman
0
370
Member Avatar for ben1996123

I just started looking at the basics of openGL, but I keep getting error LNK2019 and I don't know what's causing it or how to fix it. #include "stdafx.h" #include <cstdlib> #include <GLTools.h> #include <GLShaderManager.h> //Include OpenGL header files, so that we can use OpenGL #ifdef __APPLE__ #include <OpenGL/OpenGL.h> #include …

Member Avatar for ben1996123
0
939
Member Avatar for constantinos21

hi i want help for this program , have your program count how many numbers you have input until the negatil number is entered

Member Avatar for np complete
0
71
Member Avatar for danpe

WORKS: [CODE] LLGroupMgrGroupData* LLGroupMgr::getGroupData(const LLUUID& id) { group_map_t::iterator gi = mGroups.find(id); if (gi != mGroups.end()) { return gi->second; } return NULL; } [/CODE] DOESN'T WORK: [CODE]// static LLGroupMgrGroupData* LLGroupMgr::getStaticGroupData(const LLUUID& id) { group_map_t::iterator gi = mGroups.find(id); if (gi != mGroups.end()) { return gi->second; } return NULL; }[/CODE] Error 1 error …

Member Avatar for neil.a.hudson
0
553
Member Avatar for haroonrulz

Dear Gurus/Experts in C++, I am creating an automation tool, for that I have to autosave the excel with strings.I can read/write in excel, but when I try to auto-save the excel I am getiing error, the same code I tried for saving the integers,its working but for string I …

Member Avatar for Ancient Dragon
0
306
Member Avatar for DeHF

The error of "} expected" appears at line 5. Why is that? I have included it at line 12. The error of "Declaration missing ;" appears at line 8. Why? There is ";" at the end of the line. class PEmployee { public: PEmployee(); PEmployee(string employee_name, double initial_salary); void set_salary(double …

Member Avatar for Perry31
0
110
Member Avatar for samohtvii

Hi all, Say i have 2 nodes of a tree. struct tree{ int data; tree* left; tree* right; }; NODE1 data = 3; left = NULL; right = NULL and NODE2 data = 6; left = NULL; right = NULL How do i say Node 2 if the left link …

Member Avatar for WaltP
0
168
Member Avatar for DeHF

I need a little bit of help here. I'm new to C++ Classes. There are some errors which I do not know how to troubleshoot. The error of "Declaration terminated incorrectly" for line 6 and 7. Multiple errors of "Type name expected". Why is that? Multiple errors of "Declaration missing …

Member Avatar for WaltP
0
312
Member Avatar for triumphost

Hello everyone. I have a problem with my checksum and logic. I wrote a program that downloads and read bitmaps and try to generate a checksum for each one. The checksum is used as the name to save the bitmap as so that I don't save the same bitmap every …

Member Avatar for WaltP
0
160
Member Avatar for waqas94

hey guys !! i am new at c++ so i need a bit of help .. i am trying to solve different problems but i am stuck on this problem .. write a c++ function , smallestindex that takes as parameters an int array and its size and returns the …

Member Avatar for WaltP
0
115
Member Avatar for ccbuilder

Aim of the program to is read to Atmega board, which has portb which is l.e.d . When the input of +25 , it will move the stepper motor forward 25 , and negative -25 move it back. I got stuck after reading the +/- and argv1. any tutorials online …

Member Avatar for VernonDozier
0
163
Member Avatar for HacruLeian

hello, i'm confused here. i have an assignment that required me to create a project registration program that have student, project and supervisor. i haven't start to do it yet. but i've gone through the question. there's a part of the program that need to list out the student's, supervisor's …

Member Avatar for Bob
0
101

The End.