49,757 Topics

Member Avatar for
Member Avatar for andrew mendonca

Here is the website for the assignment I am working on: http://view.samurajdata.se/rsc/5c1dd0b4/ Here is the website for my header file (MixedExpression.h): http://ideone.com/oJ6mI8 Here is the website for my library source file (MixedExpression.cpp): http://ideone.com/inEyqe Here is the website for my calculator client file (Calculator.cpp): http://ideone.com/EDTWeS The header file is correct. I …

Member Avatar for rubberman
0
211
Member Avatar for margaretbn

#include<stdio.h> int main(){ printf("hello world"); getch(); return 0; }

Member Avatar for Learner010
0
97
Member Avatar for Nines

how do i put a password, change password on my code because everytime i put it in, my program don't shows it it just jumping to my selection menu, and how do i delete informations that ive put on my program? this is my code. thank you in advance. [CODE] …

Member Avatar for kdevesh
0
4K
Member Avatar for Tewhano

Thanks to Muschops and Schol-R-LEA I finally got my program working. However I decided to change my file format and replace the underlines with spaces and separate the data with a comma. I open the file and use getline to grab the data but I have an error that reads: …

Member Avatar for Tewhano
0
3K
Member Avatar for Syafiq_1

write a program to request two integer number,x and y. If x falls within the range of -2 and 7, y is either 5 or 10, then the program will display ""within range". Otherwise the program displays "out of range".

Member Avatar for Syafiq_1
0
176
Member Avatar for Tewhano

I am trying to read from a text file and input the data into a struct. I have read through all the threads on this topic and have not been able to work out where I am going wrong. My text file is: > Plain_Egg 1.45 Bacon_and_Eggs 2.45 Muffin .99 …

Member Avatar for Tewhano
0
130
Member Avatar for skyyadav

given int a[]= {3,2,7,6,8,1,4,5} vector<int> v(a,a+8) use the stl copy algorithm to display the last 5 integers in the vector to cout with each integer on a seperate line. copy takes three argument. third argument is output container. In this case it is v.but v already have 8 elemenst. How …

Member Avatar for mike_2000_17
0
192
Member Avatar for kay19

Question: Well I have to input a number correctly with comma's and a decimal. My input would be 243,111.11 and the output would come out as 2,43,,111.11 Do I have to create additional for loops statements for each digits and check for comma's/decimal? I almost scrapped this code for attempting …

Member Avatar for kay19
0
245
Member Avatar for zozzooo

I have an application this is already license but in this application use my functionality put custom .afl file this file make in c++ make this .afl file as trial period.So how to make this .afl file as 7 day trial period.....i am beginner so plz help me...

Member Avatar for Ancient Dragon
0
227
Member Avatar for yatman

I can't understand why this doesn't work, but when i enable char *s=s1 and use s wherever s1 is used it returns the correct output. char *mystrncat(char *s1,const char *s2, size_t n ) { // char *s=s1; while(*s1!='\0') { s1++; } while(n!=0 && (*s1++=*s2++)!='\0') n--; if(*s1!='\0') *s1='\0'; return s1; }

Member Avatar for Ancient Dragon
0
97
Member Avatar for PulsarScript

Hi to everyone.Can somebody help to : Write a program to display all the hour and minute values in a 24-hour clock from 00:00 to 23:59.

Member Avatar for deceptikon
0
134
Member Avatar for andrew mendonca

Here is the website for the assignment I am working on: http://view.samurajdata.se/rsc/5c1dd0b4/ Here is the website for my header file (MixedExpression.h): http://ideone.com/oJ6mI8 Here is the website for my library source file (MixedExpression.cpp): http://ideone.com/RSrshS Here is the website for my calculator client file (Calculator.cpp): http://ideone.com/U5F2O8 My question: I got the code …

Member Avatar for Schol-R-LEA
0
150
Member Avatar for SolidSora

I'm trying to write a program that prints out all prime numbers from 1 to 300. It isn't working the way I want it to. Right now it appears to have caused an infinite loop. Here is my code. [CODE]#include<iostream> #include<iomanip> using namespace std; int main(){ for(int i=0; i<=300; i++){ …

Member Avatar for Mahfuz_1
0
312
Member Avatar for baconswife

I am writing a program that outputs whether or not a number is prime. Can anyone help me find where my syntax error is? Also, i get that i = 3; i <= num; i++ would be true for it being a prime number from the other forums I have …

Member Avatar for Mahfuz_1
0
194
Member Avatar for Shinedevil

[code]#include <iostream> using namespace std; long int math; long int check; long int divider = 1; long int inputnum; void dividerp(); void counter(); void inputp(); void dividerp(){ math = inputnum/divider; if (math == 1 or inputnum == 2 or inputnum == 1){ cout<<"You do have a prime number there!"<<endl; system("PAUSE"); …

Member Avatar for Mahfuz_1
0
398
Member Avatar for boogeyman77

I'm in serious need of help with a C++ based prime number generator. I have the program to create and run the code, but i dont have the knowledge to develop the code and I'm looking for one of you guys to build the code for me. I need a …

Member Avatar for Mahfuz_1
0
633
Member Avatar for khelkely

Q1: Trace the partial of program below: 1. int v = 8, *r, *s; 2. int *p; 3. int q = 100; 4. p = &q; 5. r = p; 6. *p = 20; 7. p = new int; 8. *r = 30; 9. q = v; 10. s = …

Member Avatar for tinstaafl
0
155
Member Avatar for DuffManLight

Downloaded and installed latest RE2. When building simple test code with Xcode 5, build fails. #include <iostream> #include <string> #include <re2/re2.h> using namespace std; int main(int argc, const char * argv[]) { unsigned long ulValue = 0L; string sMultiple; string sMatch = "^(\\d+)([KkMm])"; string sData = "2M"; if (RE2::FullMatch(sData, sMatch, …

Member Avatar for phorce
0
280
Member Avatar for cambalinho

see these class: class test { public: void virtual Created(){} void test() { Created(); } }; class test1 : public test { void Created(); void test1(): test { Created(); } } test1; void test1::Created() { cout << "created test1"; } (these code wasn't tested, but you get the point) can …

Member Avatar for cambalinho
0
193
Member Avatar for Rawan_92line

i want to know what should i do first , or the main points that i should start with pleaes help me :( Project: General Distribution Center This project aims to develop a C++ program that support a General Distribution Center using object oriented concept. The General Distribution Center has …

Member Avatar for Rawan_92line
0
253
Member Avatar for jvasher

Should I loop through tiles and delete each one? Or is there a better way? if(tiles->at(i) != NULL) delete tiles->at(i); std::vector<Tile*> tiles; //TODO: need to fix this to match sprite sheet tiles size for (int y = 0; y < 10; y++) { for (int x = 0; x < …

Member Avatar for Lucaci Andrew
0
246
Member Avatar for reverend818

i need help with a complete source code for c++ program for newton raphson method .the program should have these attributes;one double data member,class,and also have a constructor to initialize the data member as it cannot be negative. The function should return the square root of the data member. The …

Member Avatar for mike_2000_17
0
374
Member Avatar for willgr

WinHttpGetProxyForUrl always returns ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT when I test it with the below code. See [url]http://msdn.microsoft.com/en-us/library/aa384122%28VS.85%29.aspx[/url] for what I have tried to base this on. Can anyone see any flaw in my code that causes this error to always return? I have tested it with many pac files and this is always …

Member Avatar for Massimo_1
0
1K
Member Avatar for SpottyBlue

I'm having a vowel count problem when I build the code. #include <iostream> #include <string.h> using namespace std; char str1[51]; int vowelA = 0, vowelE = 0, vowelI = 0, vowelO = 0, vowelU = 0; int vCount() { int ii; // Counter cout << "\nResult: " << endl; cout …

Member Avatar for nullptr
0
154
Member Avatar for asundar

Hey everyone, So, I need help understanding why I'm not able sort my code: here is my code (so far) for my selection sort. I have only written the iterative form of Selection Sort, but I know how to do it recursively as well (which is required for my homework). …

Member Avatar for tinstaafl
0
834
Member Avatar for owen99

hi can anyone help me i am trying to get a random character generator which generates 10 characters in ASCII range and then cast them into characters heres my code but its not working. it says error C2440: '<function-style-cast>' : cannot convert from 'std::string' to 'char' heres my code [code=c++] …

Member Avatar for Anilorap
0
1K
Member Avatar for Daneil

how to write an algorithm that converts deceimal to binary, using mod , div and an array to display the answer

Member Avatar for tinstaafl
0
297
Member Avatar for anonlearner

I hace to design a fucntion that draws lines of charaters to create a picture, like a trangle or something. The parameters are: 1) The symbol (letter or blank) 2) The line length(the number of charaters of that symbol) 3) An end line flag to incate the new line started …

0
121
Member Avatar for theguitarist

Hello, I have a graph that is represented in the form of a grid. For example: V--V --VV V---V VVVVV Each V is a node. If there is another V above/below/to the side of a V then there is an edge between them. I'm to form one single connected component …

Member Avatar for gusano79
0
150
Member Avatar for nhrnjic6

OK.So i need to bild this table and so I did.But what I cant understand is why it works fine till I hit number 18.then sudenly like half of 1st number-s (array[x]) are missing. can someone please tell me whats the trick.Thank you. #include <iostream> using namespace std; int main() …

Member Avatar for Schol-R-LEA
0
278

The End.