- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 4
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
38 Posted Topics
Re: If you shared the source code, I'd see why you posted it here. Other than that...i'm just lost, can you explain why are you sharing a binary file? | |
Re: That's still a 'while loop' isn't it? But what about goto? Special circumstances so...:D | |
Re: Hi, To sum up, win32 api is a bitch. I'm not an expert on that but until somebody more knowledgeable appears i'd suggest checking http://www.winprog.org/tutorial/dialogs.html to see what you are missing. Also, if you think an error maybe ocurring, try and see what GetLastError() has to say. | |
| |
Re: Well right now you are just storing from 0 to n (0, 1, 2, 3...) in numbers[] array. So numbers[4] will be 4 and so on. Is that what you want to do? I don't know if you have another source of int's (besides this for) that you want to … | |
Re: I've actually learned how to properly clock loops! | |
Re: Hi, I think you're asking for too much here. In my opinion there's no "right direction", you just have to solve all the parts of the problem. Maybe if you pick one part it will be easier to be helped, other than that it's basically do the homework for you. | |
Hi! I'm trying to implement the easy curl function to get a website, `curl_easy_setopt(curl, CURLOPT_URL, m_sURL);`, where the third argument is the only one that i give, and it's in this part of the code: ... public: string m_sURL; URL() : m_sURL("http://www.google.com") { } ... Now, when I call `curl_easy_setopt(curl, … | |
Hi! I understand almost all basic theory in C++ (including templates, inheritance, STL etc.) and I'd like to start understanding C++ in Windows, specifically stuff related to memory, calls, hooks, stuff like that. I don't visualize what do I want to do exactly (probably that's why I'm asking here) but … | |
Re: Hummed I guess you meant something like: class_name *p; if (condition) { p = new class_name; } | |
Re: And I would like to know, why don't just google it my friend? | |
Re: I'm not sure in *nix systems, but in windows you can use `sleep(x);`, x are the ms, including windows.h: `#include <Windows.h>` If you explain a little more what you want to do... because the `if( delay() ) {}` doesn't look good at first sight :) | |
Re: [QUOTE=sadi000011;1057210]i also need the code i have realy tried to do myself but i m new so i feel very difficulty plz send me at [I]<<snipped e-mail>>[/I][/QUOTE] Might the sir be needing anything else? | |
Hi all! I'm new to pixel/graphic management and fairly new to C# as well but i'm learning some AI at the same time, very basic of course. I did some kind of "Game of life", you know that it imitates cell birth and death and whatnot. I have it working … | |
Hi! I'm a newbie and i have kind of a teoric doubt. I wonder where the functions/events truly reside. For example, when i doubleclick a form or a button, i can see in the events properties that a function is created in my code (private void Form1_Load(object sender, EventArgs e), … | |
Hi. I'm new to C# and i'm facing this wierd thing. To put it simple i have two classes: - Especimen - Form1 Form1 has a button, when you click it it generates 10 objects of class Especimen. This is a very simple class, it's supposed to simulate a biological … | |
Hi, i'm just mixing file handling and struct types and pointers to learn, but i'm a little stuck on this. I might be doing something awfull i can tell, sorry for that. Can anyone help? What's the best way to pass [CODE]#include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> struct … | |
Hi everyone, i have this portion of code [CODE=c]while(c = getc(file) != EOF)[/CODE] c is an int and file is a FILE *file = fopen(filename, "r"); The filename points to a file with 2 lines, 10 characters total. That while always makes c a value of 1 (accodring to ASCII … | |
Hi, i'm facing a weird behavior in this code that i just wrote. It was supposed to read a string from stdin and just write it out. I've debugged it and for me it reads perfectly, but in the while (line 38), *p just seems to be taking weird chars … | |
Re: I know you asked for a linux OS but why not FreeBSD? I'm setting up my own server and i was adviced to use it as an excellent choice for my purpose. | |
I want to finaly learn what's up with pointers and arrays, so i made up this program: [CODE]#include <stdio.h> int main() { int cantidad_frases = 0; printf("Cuantas frases quieres escribir?: "); scanf("%d", &cantidad_frases); char *frases[cantidad_frases]; for(unsigned i = 0; i < cantidad_frases; i++) { [B]for(; *frases[i]; frases[i]++)[/B] { *frases[i] = … | |
I'm learning C, but a friend of mine asked for help with this code. I have debugged it with C::B and actually it crashes when getting out of the switch and starting to print out the menu again, after selection the first option (1. Polinomio) I 'watched' the polinomio pointer … | |
Re: [QUOTE=wangatang126;1031025]K here is what i've got. However the program immediatley termanates. Why? Also if you could take my program and edit it it would be heavily appreciated.[/QUOTE] Your code looks kind of crazy. I don't understand any of this, why would you need 6 variables just to create a simple … | |
I'm focusing now on this I/O thing, even writing a guide by looking some sources. I want to cover it all i can about stdin i/o and if it looks good in the end i'd love to share with you. But that's still OT. I can't get rid of the … | |
Hi everyone. I am so confused in input and output! I'm following what it looked to be a nice tutorial from VTC and it shows how to use scanf and printf. But i'm seeing everywhere things like printf and scanf and getc, getch, puts, gets...wtf? I learnt the diff between … | |
Hi everyone, nice to join this community. I have a doubt, why can't i get a larger avatar than this? Other user's avatars are bigger! Thank you. | |
Re: [QUOTE=yellowSnow;1019422]Well it's a minor miracle that you even got into university.[/QUOTE] lol +100 | |
I want a vector<string> with some values by default. I wanted to do something like char **strings = {"bla", "blo"} How to do it with vector<> without using repeated push_backs? | |
I'm new to C++, i'm learning with the help of Stroustrup Principles of C++ book, with this forum etc I'm doing console apps that treats and operates with numbers and so on, as i see you do the same, at least that's what i see people asks in the forum. … | |
Re: [QUOTE=saadulla89;1016489]I don't find from Google please help... does any one can help me??? and wrote to me compelete program????[/QUOTE] I don't think you will get somebody to make your homework, put in the place of the other people, they would be working for free by doing other's homework. Who is … | |
Re: [QUOTE=calypso&noname;1015799][CODE] while(cin>>x) { cin>>x; [/CODE][/QUOTE] while(cin>>x) does TWO functions. One is to evaluate if the cin is good and another is actually executing that cin >> x so only by typing that while you already got the user input so the second cin has to be deleted. | |
Re: [CODE] void insertSeats (char seats [][5]) { int row = 1; char A; for (int i = 0; i < SEATROWS; i++) { cout << row << " "; seats [i] = '1'; row++; for (int j = 0; j < 4; j++) { if (j == 0) cout << … | |
Re: [QUOTE=mauryoung;1014628]isn't this a bit too advanced for my beginners level? i get the concept tho[/QUOTE] As far as i've seen where you have stuck with your code, the program you want to creat itself is way too advanced for you aswell. Don't try to go that fast. First walk, we'll … | |
[CODE] unsigned longitud; cin >> longitud; vector<char> palabra(longitud); for (unsigned i = 0; i < palabra.size(); i++, letra += 1) { palabra[i].push_back ('a') << " "; }[/CODE] The error i get: [CODE]error: request for member `push_back' in `(&palabra)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = char, _Alloc = std::allocator<char>](i)', which is of non-class … | |
[ICODE] * Don't use system("pause") to pause your program if possible. Use getchar( ) if you are using C and cin.get( ) if you are using C++. [/ICODE] Why is that? A reasonable explanations for those tips would help to learn. | |
Re: It would make your code much more readable and clean to convert those multiply and divide lines into two shiny functions. | |
I'm new to C++, and i've seen some C and C++ code. I tried array[] and vector<> so i see i can use both, why should i use what way to work with vectors? Furthermore, i've seen a lot of "array[]" in this forum... so, any lead? Thank you! Oh … |
The End.