I get several link errors when i try to compile my project..
its a calculator which was working just fine when was on 1 cpp file..
But i tried to split it in many cpp files and only one .h file..
...
Type: Posts; User: Luigi
I get several link errors when i try to compile my project..
its a calculator which was working just fine when was on 1 cpp file..
But i tried to split it in many cpp files and only one .h file..
...
thx but i really need an int array..
Im making a function to invert twho-dimension int array
so i wanted to add user definable array so i could verify it works with evry array size..
anyways...
I want to make a user definable size array..
can it be done?
I tried this so far but i get 3 errors.. :(
cout << "Enter the size of the Array: ";
unsigned int size;
cin >> size;
if(size...
what do u mean word like a simple sentence?
#include <string>
string str = "A simple sentence.";
why do I get an error for that?
istream* input;
int main(int argc, char* argv[])
{
switch (argc)
{
If u use less only to sort values within the map its kinda useless.. cause:
values within maps and multimaps are already sorted smallest value first..
same for <set> and <multiset>..
what is wrong with this?
#include <iostream>
#include <fstream>
using namespace std;
ifstream fin;
ofstream fout;
Ok dont ask why but this will work..
If u replace cstring by c++ string all goes fine..
anyways i almost always use c++ string..
#include <iostream>
#include <map>
#include <string>
using...
opps i just red ur post again what u want to do is :
user input either num1 or num2 then a number to add to it?
if thats what u want second option should work..
but ill check it out just in case...
>> I removed the line: values[tempS] = tempI, because I need the value stored before in the map
If u remove that line u will always get 0 :
...
tempI+=values[tempS]
#include <iostream> //remove .h
#include <map>
using namespace std; //always usefull
int main()
{
map< char*, int> values; // sorry i dont know what is less so i just removed it..
...
<iostream>
Is the new iso standard for c++ since 97 i think..
so usually u better without the .h
but there are few exceptions..
like string and string.h
if u want to use c string : include .h...
use ascii value to check if current char is tab..
http://www.asciitable.com/
or u could use isspace() this will check for tab..
but in the other hand it wil check for space to...
but u could do...
Use code tags!
I for example wont even bother looking at code unless code tags are used...
So if u want help, use code tags..
initialize sel (ex int sel =0;)
switch statement should have break statement..
int byc() has no return value..
If u correct all that i think it should work fine..
#include <iostream>
using namespace std;
int main ()
{
char name[256], title[256];
cout << "Enter your name: ";
cin.getline (name,256);
sorry for trying to help
i++ twice thing.. ur right my bad i made this in 5 sec..
I guess from now on ill just ask question and wont bother trying to help others if i get answered like this..
u can also do something like this..
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
well if u are anywhere near quebec city I dont mind jaming..
And if u can understand my bad english with a huge french accent.. hehe.. ;)
sorry
btw I DO need a hug.. :)
Squid:
yes cin>>array would do that but thats not what he does..
cin >> x..
and x is only one char..
since when keeping a floyd rose in tune cost too much?
Do it yourself..
its fairly easy
just do a search on the net...
Its explained clearly..
This might sound weird but learn some old metallica...
first if u know metallica 90% that others will be able to acompany since almost everyone knows at least one tune..
also metallica is not so...
What exactly do you want to achieve cause from the code u made its not very clear and doesnt seem logic..
if u want to fill the array one character at a time say so and ill help u with that
if...
If u decide to do it plz email me I am really interested by your idea..
:)
[email protected]