181 Posted Topics
Re: You might wanna post your solution for others that stumbles upon this thread next week, maybe next month maybe in a few years! :) At least i hate googling and then being cheered up by finding a post exactly regarding my problem, and the solution is: "I found the solution". | |
Re: Hi, I find CodeBlocks a bit too unstable and generally lacking a lot. Have you tried NetBeans? It is an IDE that supports several programming languages - All I do is basically programming, and I've tried many IDE's - I really like NetBeans as the best IDE. It both available … | |
| |
Hello :) I've got this resource (as in files on the pc) management system, that had been tested but now seems to be malfunctioning. I've been debugging for way too long now, and I can't figure out the issue. I'm going to post some of my code first, and then … | |
Re: Well, you can use the string functions to find each number.. example with comma-separated numbers, spaces not allowed: [CODE] std::vector<int> v; std::string numbers; // this is the string with your numbers std::string::size_type pos = 0;// current position while(pos != std::string::npos) // as long as current position is valid { std::string::size_type … | |
Re: Uhm lol. You need the PS3 SDK (aka PS3 [B]S[/B]oftware [B]D[/B]evelopment [B]K[/B]it). I'm afraid it costs money. If Sony aren't tards you probably can download a demo version or maybe a personal version. Then you of course need to gain programming experience. And finally you'll spend 1 year designing the … | |
Re: Hello. First of all: Use code tags. Great now that's settled I'm not completely able to understand your problem. Anyway, to list all the elements in a vector, look at this: [CODE]typedef std::vector<int> integerVector; // a standard typedef of our vector type integerVector mNumbers; // here we actually make an … | |
Hello, I've been using Dvorak on my Linux machine for a long time, and I've finally convinced my sister to do the switch as well. Using Microsoft Keyboard Layout Creator (MSKLC) I easily managed to install Dvorak layout, but shortcuts like Ctrl+C doesn't move, it's the same spot, so after … | |
Re: Nice outline of what you want your program to do; copied from your school assignment? Don't you think it is a good idea to tell us what you've tried, what you suppose could be wrong and other information like that? Not to talk about those subjects of common sense actually … | |
Hi. I'm just trying out Ruby on Rails, and I'm trying to create some application that takes a hostname from the user and then checks if it is connectible through Net::SSH and if it is, it should check if a file is present. Quite simple, and I also almost reached … | |
Re: Hello and welcome to Daniweb. Usually all the friendly people here would give a prompte response. You haven't had any yet. I'm not gonna go into your code right now, but instead take a look at your posting problem. First of all, you want to get rid of your last … | |
Re: Wanted to help you there, but your code is not very nice to read. Edit your post and put the code in code tags, you have to remember that! :) | |
Re: Maybe if you included a bit more code? It seems complicated what you're trying to do, at least I didn't really understand what your goal is from your post. Take a look at this example and let me know if it's any help. [code]int* array1 = new int[100]; // pointer … | |
Hi. I have multi-language functionality on my page, and the settings are saved in a cookie, so that the user may change something different than his browser language. But this is whats happening: [U]/home.php?setlanguague=en[/U] The page shows it's text in English, and prints my user info aswell as the content … | |
Re: Ehh, I'm pretty sure you can't translate a wildcard in this case, so that *.peoplelist.com transfers whatever the wildcard represents to peoplelist.com/users/* So you have to make some automated zone editor for making A records in your DNS server, and then do the Apache configuration. | |
Hi people. I'd like to use MySQL in my application - would be an easy way for me to store users. But then I'd have MySQL credentials in my app, visible for everyone with a HEX editor, I'd suppose? And even though that MySQL user will have low privileges, then … | |
Hello. I'm in possesion of this laptop with an old Pentium Dual-Core T2080, of socket type PPGA478 (says Intel web). I wanted to upgrade it, and found a lot of processors called PGA478. So now comes the billion dollar question: Is there any difference? Can I use the PGA processor … | |
Re: Hey, please download my 100 dollars and upload it when you have made it a billion dollars. You see whats wrong? This is a forum. We help each other. We don't work for each other. | |
Re: lol and use code tags next time, then we people might love you too :D | |
Re: The problem is obvious :) Let me show you some examples here: [CODE]if(false) std::cout << "We can't get here"; // This is the first action after the if, so this is what will be executed if the condition is met std::cout << "We will get here, because I'm not a … | |
Hello. :D I've been working on a project for couple months now, on Linux. When I invited a new team member, of course he came with his Windows. I want to hear [B]your opinion[/B] on how to make the development easy cross platform. Usually I would just tell him to … | |
Re: An array is a number of objects. Example on array: [CODE]const int array_size = 10; // const because Nick Evan says so :) float floatArray[array_size]; // this is how we make an array floatArray[0] = 4.2; // this is how we access the first element in the array for(int i … | |
Re: Don't use the sleep function. Make your own function. [CODE]void awesomeWaitFunction(const unsigned int& delayMs) { unsigned int start = (float(clock())/CLOCK_PER_SEC)*1000; while((float(clock())/CLOCK_PER_SEC)*1000 < start+delayMs); }[/CODE] | |
Re: Hmm you didn't include the headers in the code above. And you're using system a lot, I probably won't be able to test it then, because it seems like Windows commands, and I'm on Linux. | |
Re: Well, I'm not sure [U]what[/U] you need help with. You'll need the rand() function to simulate the dice output. Find it on google, and notice you'll need the srand() aswell. Then you could hardcode all the field, and make an algorithm that decides where the player lands, when he dices … | |
Re: I don't understand your last post. I can tell you that when you make some variable, it magically appears in the computers memory. Magic. A pointer contains a memory address. They are used to access whatever is a that memory position. References and pointers are basically the same. Except pointers … | |
Re: You seem friendly. God I want to help you. You have an error, I must help. The only problem is.... I don't know what your problem is. - Compiler error? Post it here. - Runtime expectation mismatch? What happens, and what doesn't? Almost a good and useable post that could … | |
Re: Hey. Uhm, you have to tell us if theres anything that needs a 'repair'? Is it not working, or? I have no clue what it is, if I were to come with improvements, I'd like to know a bit more what you're trying to achieve? A card game, or something? … | |
Hey. I'm having an annoying problem, that I can't seem to figure out. In my page when I echo long messages, I do an in-code linebreak at around 100th character, to keep at all in my view. But when I do that I also get the line breaks and indents … | |
Re: [QUOTE=jangab;1157516]how to delete a string index inside an array that the user inputs???,, could someone pls help??[/QUOTE] Useless title - but indeed, your post is so short, you might just written it in the title. Also, I don't even understand what you want to do. You have a user inputted … | |
Re: If it happens, ask him to check the message that he gets when it BSOD's.. I've always been able to roughly fix BSOD problems from their message. Under no circumstances a Windows box should BSOD because of a segmentation fault. | |
Hey ! I've been using NetBeans for quite a long time, and totally addicted to it. Therefore there was no mercy when my mate wanted to join my project. - He had to get it too. He's one of those Windows guys tho x) I installed him MinGW and MSYS, … | |
Re: I agree. The reason for this is, that a computer can not just generate a random number. It does not have emotions to pick a number, it must solve it mathematically. There is no equation not actually giving the same each time. So you have to seed the rand function … | |
Re: Yeah I know how to post code here too :) and code tags... impressive. | |
Re: Do you want help? More seems like a challenge or something? At least to achieve this you really only need very basic knowledge of C++. A friend of mine was able to do almost the same with no programming knowledge of any kind, just using his intuition and the one … | |
Hi. I have some, probably, very basic questions. :D I'm making an engine, which will be script driven. But I'm concerned with the performance of plain text, even if it was loaded to the memory. I want the scripts to be executable very fast, since there would be a lot … | |
Hi :) I am certain of when to use static_cast, but often I can get satisfactory results by writing the target type in a parenthesis. For example: [CODE]void* data = somePointer; SomeClass* new_ptr = static_cast<SomeClass*>(data);[/CODE] seems to work when replaced with [CODE]void* data = somePointer; SomeClass* new_ptr = (SomeClass*) data;[/CODE] … | |
Hello. I remember once I googled a topic, and I kept stumbling upon a linux command, that would allow me to get some info on a binary application, including it's architecture. Basicly, I could see if the program was build for x86_64 or for x86. Now I actually need this … | |
Re: Uhm.. So you spammed this post with code.. What is it supposed to do? What does it fail to do? What does not "display in your program" (i supposed you mean browser, or sumthin')? Does anything get inserted to your MySQL Database? What do you mean by "together with other … | |
Re: I won't even consider reading your code and helping you out, until YOU consider how you formulate your topic. I'm not blaming your English, although understanding what your problem is wasn't exactly easy. But you're actually demanding an answer. You should tell us what you tried, and if you suspect … | |
Hello. I'm going to create a stack of pointers to objects, and I need to implement an identifier with the best performance. Those objects are custom classes. I'm wondering what would be best for performance. Either of these two ways, or maybe a third better way?. 1) Making an std::map … | |
Re: "Please give the solution" is most probably what causes this thread to have 0 replies. I didn't really read your topic, but in your form you write [CODE]action="?result1?id=<? $_GET['city']?>"[/CODE] Wouldn't you want to write [CODE]action=?result1&id=...[/CODE]? Goodluck. | |
Hello. I'm needing to store the IP adress as a variable in my application. I was then wondering, what the most efficient way of doing this would be? I would simply make 4 integers, and then in a setter function, read four arguments, and pass them into those four integers, … | |
Hi people. :) I'm making a function callback system for a console, so I would dynamically be able to send a function pointer to my console class, and then it would be callable from the console. Well, it works - but only with functions that are not member of a … | |
Re: I don't fully get what you want to know? You want to get peer name, and right below you post the function to get peer name? :) | |
Re: Hi there :) I happen to know that the sleep function has a capitalized S. So you should call Sleep() instead of sleep(). The previous poster already told you what the compilation error means, remember that :) Also Sleep is defined in the windows libraries, which you did include, so … | |
Re: [QUOTE=Tomern11;1091245]Hello there, i'm a new to this forum and i was always curious about game developing so here are some questions about game developing: - Is it a good job? - What qualities are required to develop a game? - How much time does it take to develop a game? … | |
Re: I can only advise you to use setters and getters. It gives an overall more stability, atleast you will feel like it when you are programming within your own frameworks. It's hard to explain, but I'm sure you'll one day find out :D And then it would be good if … |
The End.