49,761 Topics
| |
I have spent endless hours searching the web for a few days now and still the only tutorial I have found (doesn't even show everything I need) is at [URL="http://www.functionx.com/vcnet/controls/combobox.htm"]http://www.functionx.com/vcnet/controls/combobox.htm[/URL] But what I need is code or tutorials on how to make graphical interfaces such as textboxes, scrollbars, tickboxes etc … | |
hello! i would like to ask something about a program that i am trying to do. I wrote the program but i cant find where is my fault and doesnt check the right day for the february. I sent you my program, if anybody has something to suggest. The suggestion … | |
hi all , im trying to compare two time values , but im unable to display the correct result , the retval returns -1 for both d1 and d2 , i suppose the mktime is the convert the values into seconds since EPOCH . any idea as to where im … | |
I was wondering if it is possible to create an array of enums like this: [CODE] typedef enum { LABEL, SCREEN_BUFFER, PID, ENABLED, NUM_BYTES } SENSOR; static SENSOR sensors[] = { // formula // label //screen_buffer //pid //enabled // bytes { "Absolute Throttle Position:", "", "11", 1, 1 }, { … | |
I have the following C++ code: [code=syntax] void f(int* x) {...} void f(char* x) {...} int main() { ... f(0); ... } [/code] I understand that this has a problem interpreting which function to call. I also think I can get rid of this problem by giving it two different … | |
Ok I know how to sort an array. That's not what I'm asking. Basically my problem analysis is: I have to read in a file of employee reports ie salesID Employee code numunits numdollars 6022 1 3 100.00 6023 1 6 200.00 ok so I read each value into arrays … | |
Tried searching but everything seems to be for VB C++. Is this even possible in dev c++ if so please tell me how to do it | |
Okay so I was the one with the Assertion failure problem earlier.. so I started all over. I have no compiling errors anymore but now the output is wrong. My new code is: [CODE]#include <iostream> #include <cstring> using namespace std; int main() { char phrase[100]; //100 characters allowed char *words[20]; … | |
hi, I was hoping someone could help me. I've been trying to do this for the past hour with no luck. basically i'm trying to make a Celcius to Fahrenheit converter. So far, the converter works fine, except for the fact that I cant get it to display 2 decimal … | |
Hello everyone! I would appreciate some help with this problem i'm facing I have designed a application using Borland C++ Builder 6. The problem I'm dealing with is that the application GUI runs as designed only on my computer. If i try to run it on another computer applications components … | |
Hi everyone, Is there any way to open a website in the default browser that will be cross-platform? Right now I'm using: [code=C++] #include <windows.h> ShellExecute(NULL, "open", "http://sourceforge.net/projects/tro", NULL, NULL, SW_SHOWNORMAL); [/code] But this Windows only of course. Thanks, Brett | |
Can u help me in making a C++ code for simulating a bidirectional shift register?????? | |
I can't seem to figure this one out but I'm sure it's easy. My program seems to be truncating decimal values even though stored in a double Both sets of code below output the number 0 when I need them to output .5, what am I doing wrong? [code] cout … | |
Hi, I am trying to compare two strings. When i enter two arguments on the command line 12 and 100, the flag1 should be set to 1 because (argv[1] =) "100" > (junk2 = )"13". But this is not happening. So, how can i check that the input arguments entered … | |
i have made this strstr() function,it gives the correct answer if it finds the correct string inside the another but the program crashes if it does not find the string,gives a runtime error,compliler does not give any error! here is my code: [code=c++] char *astrstr(const char *s1,const char *s2) { … | |
Hi, I have to create a hunt the wumpus game using c++ and using the parameters that my proffesor set up, but I am really confused and I don't know where or what to start with. This are the parameters and other stuff that my proffesor gave us. (ps I … | |
| Hello, my name is Dallas. I'm (obviously) new to the site. I've spent the past couple of days doing absolutely nothing but trying to work on this program. I usually don't like trying to get help, but I've spent so much time on it by myself that I have no … |
I have drawn a small box in a game, that I would like to be able to click it in order to bring up another Larger box that would contain various information, I have named InfoLarge() This is the Small box VOID InfoSmall () [ICODE]Rectangle(730, 390, 60, 17); draw(732, 405, … | |
Hi guys, When i run my programs in c i always use things like [code=c++] include "stdio" [/code] But then i see things like [code=c++] include "stdio.h" [/code] and [code=c++] include <stdio> [/code] I was wondering which one i should use and also why there are so many different ways. … | |
Can anyone show me how to make this perform the calculation using the postfix data?? I assume I would have to read the post fix data one character at a time and code what to do with each character??? For example, if I entered this: 5 ^ 3 * 4 … | |
Ok, I think my problem has to do with my rotation functions. It is not performing them correctly though I don't see where they are messing up. On a more complicated tree when it performs a rotation the structure of the tree becomes incorrect. Maybe some one can see something … | |
Dear All, I am facing a problem in passing 2D array of pointers to a function. can any one give some suggestions on this. 1. How the Declaration fo the function should be ? 2. How to pass 2D array of pointers to that function? 3. How to access the … | |
Hi All, Could you kindly help me regarding the usage of array of pointer (1dimension or 2), I mean where we can use it. Regards, IDB | |
Hello! I have an assignment in my "intro to programming class" and I am having trouble just getting started. We are suppose to take a txt file that has several lines of text - and create a program using "fin" to test each line to determine if it is a … | |
Hi Guys! Was wondering what I was doing wrong with this program. This a program that when a person enters a number, 2-9, it gives them the letters that correspond just like on your phone, e.g., 2 is a,b,c. They also have to chose if they want a switch statement … | |
Hi, I know this kind of stuff been wandering around. I did have a look through the search function but I haven't got the answer. This is the program to check whether the number inputted is a prime number or not. [code=c++] #include <iostream> #include <math.h> #define TRUE 1; #define … | |
I want to plot a rectangle by mouse click in opengl. But I failed to do it, it's very comfued, by the way, the rectangle just exists in a flash, then disappear. [CODE] [COLOR="Red"]void OnMouse[/COLOR](int button, int state, int x, int y) { glRectf(a,b,0,-10); } int main(int argc, char** argv) … | |
Hi, I'm writing a C++ single-threaded Unix daemon that listens for data arriving at a port. The whole application logic is contained into an infinity loop. The problem is that the daemon consumes a lot of CPU cycles, specifically because the loop is being continuously executed. I’ve looking around for … | |
I was just wondering, in all of the code snippets i see there is no #include "stdafx.h" in them, but i cannot compile a program without it. Is this a Microsoft Visual C++ that is the problem or am i just missing the point here? | |
I am using RDLC and i want to add dynamic text in header as well as in footer and some images in to the header but i cant understand how to add it in same rdlc. i can add static text in header as well as footer and when i … |
The End.