49,761 Topics
| |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
(a) (b) (c) (d) * ********** ********** * ** ********* ********* ** *** ******** ******** *** **** ******* ******* **** ***** ****** ****** ***** ****** ***** ***** ****** ******* **** **** ******* ******** *** *** ******** ********* ** ** ********* ********** * * ********** I managed to do a and … | |
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, … | |
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! | |
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 … | |
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++ … | |
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; … | |
I need help to write a project proposal for traffic light implementation project in c++ | |
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 … | |
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 … | |
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 … | |
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 … | |
can i know how to create a system using addition,multiply,subtracton and division? | |
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 … | |
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: & & & & & & & & & & & & & & & & | |
#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(); } | |
#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(); } | |
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 … | |
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 … | |
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 … | |
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 … | |
hi i want help for this program , have your program count how many numbers you have input until the negatil number is entered | |
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 … | |
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 … | |
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 … | |
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 … |
The End.