49,761 Topics

Member Avatar for
Member Avatar for superchica08

hello everyone I really need help so I have to make functions that find vowels, digits and uppercase and lowercase letters from a sentence inputted. So i was able to do it all in main but i cant seem to make the new program work with the functions properly, it …

Member Avatar for superchica08
0
300
Member Avatar for olusegun.oluwadamilola

Write a program: A company requires a human resource application to manage the data base of the company’s personnel. The system to be designed must be able to register workers and their details: name, date of birth, marital status, race, sex, cell number and ID number.

Member Avatar for np complete
-3
61
Member Avatar for zeppelyn

So, I'm merely just a student learning and all that. The assignment has four components: write a bubble sort function with test program, write a quick sort function with a test program, write a shell sort function with a test program, then finally write a main program. For each compare …

Member Avatar for WaltP
0
195
Member Avatar for ryan.wood.1042032

I was coding up a class template a little while ago and I came across an error while debugging: error: invalid conversion from âstd::basic_string<char>*â to âcharâ [-fpermissive] It was in the code template <typename T> void ArrayList<T>::insert(const T& x, unsigned int i) { if (i >= m_max) cout << endl …

Member Avatar for NathanOliver
0
160
Member Avatar for MasterHacker110

Ok what I mean is if i build say a client and server side (network) program in c++ on linux. Will i be able to run it on windows? i know that linux creates .o files and those are executed. were windows create .exe files and thos are executed. I …

Member Avatar for deceptikon
0
180
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
299
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
338
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
756
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
204
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
943
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
554
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
169

The End.