- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
10 Posted Topics
Don't take this wrong but do you really think we have nothing else to do but write project for you ??
I have tested this and it works fine [CODE] for(int i = 0; i < words.length(); ++i) { if ( words[i] == 's' && words[i+1] == 'p' ) { words.insert(i, "$"); cout << words << endl; i += 2; } }[/CODE] EDIT: Didn't see your post
Problem is in the line 43 && line 48 Operator x does not exist if you want to get result of multiplication you need to use * operator instead of x
Topic title is not the best but nvm I have been looking for this on internet but cant it find anything useful. [CODE]#include <windows.h> void main() { ShellExecute(NULL, "open", "http://dreamincode.net", NULL, NULL, SW_SHOWNORMAL); }[/CODE] This is function which I have found on net to open URL, problem of this function …
I saw few treads referring to this subject but I just can't get this working includs.cpp [CODE]#include <iostream> using namespace std;[/CODE] main.cpp [CODE]#include "includs.cpp" #include "ispis2.cpp" int main() { ispis(); system("pause"); }[/CODE] ispis2.cpp [CODE]void ispis(){ cout<<"tets file"<<endl; }[/CODE] After compiling this I always get the flowing error [CODE]error C2065: 'cout' …
I'm writing some program and i was wondering is there any way to change ALL numbers in array at once for example when you initialise array you can write [CODE]int array[10]={0};[/CODE] is there anything like that i can use in the [B]middle[/B] of the program. I have googled for it …
you dont need to use map for this you can simply use an array here is an example. [CODE]#include <iostream> using namespace std; main(){ int array[20]; // loading 20 digits int count [10]={0}; //loading digits for(int i=0; i<20; ++i) cin>>array[i]; //counting for(int i=0; i<20; ++i){ if(array[i]>=0 && array[i]<10) count[array[i]]++; } …
I have read a lot of topics with these subject many of theme where on these forum but what ever i try i cant get this working. I have tried 4 or 5 function for converting string to float but i always get compiler error left from xxx must be …
hi! I have created a class with 2 constructors and whenever i try to access it i got the error no match for to call int& here is the code [CODE]class A{ public: A(){}; A(int i); int moj_broj; }; A::A(int i):moj_broj(i){} int main() { A something; cout<<"before "<<something.moj_broj<<endl; something(5); cout<<"after …
The End.
Jeronim