- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 3
- Downvotes Received
- 9
- Posts with Downvotes
- 5
- Downvoting Members
- 8
I know more than the novice but less than the intermediate programmer. if you have any suggestions towards coding or can help me with anything or you need someone to talk to im here. if you need any explanation on anything about my computer (like how…
- Interests
- C++, Html, would like to learn php. music: any except rap. preferably rock, metal,techno,and alternative.,…
- PC Specs
- 733 mhz, 512mb ram(one is buggy and won't let me boot into windows),rocking (well was a triple boot…
27 Posted Topics
Re: ive actually found c# to be faster than c++ on my 733MHZ that originally came with windows 98 pro(rocking ubuntu 9.10 now). however i like c++'s syntax and (for me anyway) easy to derive functions. however i still like c# i just wish there was linux support. however im sure … | |
Re: well A) this is unsafe as you dont know whether or not you have a static or dynamic ip b) if you did this with a static ip i gurantee you would have to call your isp's tech support. could you enlighten me on to why you would need to … | |
Re: quicktpgo: i have the same problem and i also learned that the chat function won't work anymore. | |
I'm trying my best to learn linked lists but am having a difficult time understanding them exactly any way debugger returns SIGSEGV Debug Info: [code] Registered new type: STL String Registered new type: STL Vector Setting breakpoints Debugger name and version: GNU gdb 6.7.50.20071127 Child process PID: 1572 Program received … | |
Re: oh dear seems to me that youve included both iostream and string TWICE though thats not messing your code up but its a waste of space and used namespaces when you didn't need to ill get back to in a few | |
Re: say i had class foo in ex.h then i would call it like this [code] #include <ex.h> #include <iostream> using namespace std; foo objectOne; int main(){ //or if you wanted to call a function or variable without declaring an object //just like namespaces foo::color(RED); cout<<foo::x; objectOne.x=3 //example with using the … | |
Re: youll get more responses if you post the actual code instead of the file people are to skeptical download anything in the first place and most people don't want to download source code that can easily fit on the webpage :P | |
im having trouble understanding why this won't work. I'm extremely new to php (my primary language is c++) [CODE]<html> <body> <?php if(strpos($_GET['codev'], 'ddd') !==FALSE){ if(strlen($_GET['codev'] ==3) { echo "<p>Welcome</p>"; } ] ?> </body> </html>[/CODE] | |
Re: you need {} in class train; so it needs to be class Train{}; Also can you explain this bit here? [code] Arrival(int time, [COLOR="Red"]Train* newTrain[/COLOR]); [/code] | |
I wish there was an option in the "What are you posting" for tutorials hehe. But I guess I will just have to right it here :). If anyone else has any pointers (pun intended) let me know ;). Ok if your like me and were wondering how to accept … | |
Re: that must be an old version cause my mingw runs it just fine try updating the compiler or you can try codeblocks to see if you like it. | |
Re: ill give you an example i assume your using vc++ by the syntax [code] #include <iostream> using namespace std; int main(){ float me; cout<<"enter a float: ": cin>>me; //takes input (for now float) and stores it including me cout<<"\n "<<me; cin.get(); //pause for input though this has other use's too … | |
ok so my code will output the message its suppose to if it doesnt receive any arguments and im 100% sure the problem is the if statement with the argv[1] because i always have problems with char type for some reason. :( [code] #include <iostream> #include <string> #include <sstream> #include … | |
Re: Firstly use int main its easier to find errors and secondly M is an object and N is an object you can not use them like that reconfigure your classes [CODE] [COLOR="red"]sMatrix M(3,3); // declare M object[/COLOR] M.setEl(0,0,3); M.setEl(1,1,4); M.setEl(2,0,2.4); M.print(); [COLOR="red"]sMatrix N(3,3);//declare N object[/COLOR] N.setEl(0,0,0); N.setEl(0,0,0); N.setEl(0,0,0); N.print(); [COLOR="red"]M.add(N); … | |
Re: could you post where you declared the vector template (im assuming its a template) theres not enough information for me to help right now | |
MSG msg ; HWND hwnd; WNDCLASS wc; to me this syntax looks like msg hwnd and wc(all lower case) are variables is this right? and with the exception of wc would changing the other 2 change anything? | |
Re: your missing another parameter eg int travissmall etc. and where did you declare general ? EDIT: nevermind i found it | |
What I am trying to do is compare the contents of array s to the string name (for a filter) but it just continues and prints whatever goes through. I think the problem is with my if statement but I have tried everything that I thought was valid code. [CODE]#include … | |
Re: I like code::blocks its pretty simple does what i need it to, loads fast, and no massive extras that i don't need(err well my problem with msvc is too many buttons and menus but i can use it just fine). I don't use debuggers though C::B supports them, plus C:B … | |
ok i think ive got this right i but i tried compiling an it spit out [QUOTE]error: expected primary-expression before ‘.’ token|[/QUOTE] any idea what this "primary expression is? ive tried single quotes and double quotes to fix it as i have this problem every time i mess with strings … | |
I downloaded the latest version in the repository and unless the tutorial im following is incorrect in the #include function then im lost. here is the code im trying to compile taken from the tutorial. [CODE] #include <QtGui> int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel label("Hello, world!"); … | |
Re: first off your missing some declarations I.E(a,k,n) and you dont need this part [CODE] a[i] = a[mini];//here you stated a[value of i] equals a[value of mini and before that you said mini =i so the value of i and mini are the same putting them in an array doesnt change … | |
Re: [URL="http://beej.us/guide/bgnet/"]http://beej.us/guide/bgnet/[/URL] go here its hard for me to understand because i dont have the time but its the only networking source that covers linux windows and mac on the same site. | |
Re: is f() defined? also i recommend checking the arguements to see if you meet all of the required ones like jonsca said. | |
Re: [CODE] #include <fstream> ofstream text; string name; text.open("myfile.txt");[/CODE] would work as well. also if you know the syntax for cout using the operators << and >> then you can output to file like so using my above example [CODE]text<<"Hello World"; //or if you wanted to use a variable getline(cin,name); text<<name; … | |
Re: ok post your code so i can see how your doing it. btw try using a char array then invoking each index starting from the last first and the first last in a loop that exits after it prints the last character. Example: [CODE] char input[8]; cout<<"input: "; cin>>input; for(x=7;x!=0,x--) … | |
Re: also i personally would write all functions before main(). as it helps keep your code organized. but its just my preference. |
The End.