Beginners - May 2011 (Page 23)

C++ Call non static function on another function (1,2)
 
I have the following code void APPDlg::set() { WxGauge1->SetValue(20); { void Thread(void *) { system("start run.exe"); //how to call "APPDlg::se...
[21 replies] Last: Well, there are several Threats, and each is assigned a different val... (by coder777)
by puni
How to read a from a txt.file
 
#include <cstdlib> #include <iostream> #include <iostream> #include <fstream> #include <string> #include <stdio.h> #include <string.h> #include <iostream...
[3 replies] Last: Like Zhuge said: Use [co de] Your code The problem is this: Accou... (by coder777)
by madi L
Application Error
 
Hi, When I run my application, I receive this message error: 'The application failed to initialize properly (0xc0150002)'. I can't fix it. I'm using VS 2008....
[7 replies] Last: Not the *.lib's are missing the *.dll's are missing. Put the dll where... (by coder777)
plot a graph when x-axis,y-axis data are tables
 
i want to plot a graph with x-axis,y-axis data tables what do you suggest? a library or something else
[1 reply] : Check these out -> (1) http://www.gnuplot.info/ (2) http://www.suiri.t... (by m4ster r0shi)
help!!!
 
how do I make a linked list array perform how ever many while loops that they want? got everything else but do not know what to do to set the while loop to end ...
[1 reply] : try: // n = number of records; counter = 0 while (counter < n) { ... (by matsom)
Introduction
 
Hi guys, I'm new to the board and would like to introduce myself. I am an undergrad Computer Engineering major at Texas A&M, and joined this forum in need of a ...
[2 replies] Last: I've worked on a couple class projects (Created versions of the game "... (by NewProgrammer)
linked list
 
I have been writing a program using linked list and just inputing single int's into the list and then averaging them and outputing which inputs where about the ...
[3 replies] Last: The average at line 43 is different than the one at line 50 which sh... (by matsom)
creating dynamic array in getData function
 
Please don't laugh & I AM DOING THIS FOR SCHOOL SO RATHER THAN POSTING ANY CODE, I'D MUCH RATHER IF SOMEONE CAN MAYBE HELP TO JUST EXPLAIN how if i'm creating a...
[3 replies] Last: The new operator returns a pointer to a contiguous chunk of memory o... (by h3432)
#ifndef, #define
 
Hello guys, In my textbook (Data Structures and Algorithms - Goodrich), I see the use of the terms " #ifndef " and " #define ". What do these mean? I am ...
[5 replies] Last: Right. I see now. In this case, no replacement is necessary. Line 2 ju... (by NewProgrammer)
by Yakzan
About pointers and inheritance
 
]I just wanted to clarify that my thought about how stuff implicitly works is right as it's bugging me. Simply enough, two classes of A and B. B is the deriv...
[3 replies] Last: That function does nothing. A cast only temporarily changes how the co... (by Zhuge)
by cnub
Errors in gradebook program
 
#include <iostream> #include <iomanip> #include <fstream> #include <conio.h> using namespace std; void capacity(); int main() { int ROW = 25; const int COL = ...
[1 reply] : You forgot to prepend line 9 with const . You'll need to make some ex... (by Albatross)
Windows "Sleep" delay alternative
 
Whats the alternative to using windows' "Sleep" in the windows environment? Specifically, I'm trying create a delay when the player touches a switch (its a bool...
[6 replies] Last: No, clock() is unsuitable for measuring time. On Windows, use GetTickC... (by Athar)
by cnub
grade book 2d array txt file
 
#inclu
[1 reply] : After line 37, write the following: return 0; } (by Lynx876)
by qwesr
Cant get this to work
 
Im trying to compare two character- #include <iostream> #include <string.h> #include <string> #include <sstream> #include <fstream> using namespace std;...
[2 replies] Last: Ok thanks (by qwesr)
Virtual functions
 
When a virtual function is declared in the Base class; does the output type have to be the same for each of the derived functions? For example; class CPoly...
[5 replies] Last: size_t is unsigned. That means it has no negative values, but its maxi... (by Albatross)
password script
 
I have a simple password program that I would like to put into some other programs. Is there a way to have the code of program B run the password program at th...
[3 replies] Last: ...there is, but it's a bad habit to rely on it in C++. Instead of usi... (by Albatross)
by Drue
Prog. Not working. Don't know why.
 
I don't really know what's wrong with it. Typing in anything but "new" or "update" doesn't work. You press enter then it closes out. I dont' know what's going...
[9 replies] Last: Sorry for replying so late. Yes it does work if I make it in the curre... (by Drue)
palindrome.help!
 
Hi, this code should check if the string is a palindrome or not. the problem is that it gives me "Is Not Palindrome" always even if it's a palindrome!! wha...
[8 replies] Last: x = string1.substr(i,1); if you output this with a string lets say "... (by Breadman)
by codder
triple pointer help
 
i have this type **a = NULL; // i need use as this a ->foo(); void alloc_it(type ***b, int c) { for(int i=0; i<c; i++) *mem =new type(); } but it c...
[6 replies] Last: I know but let me tell you what i'm trying to do. In fact i'm writing... (by codder)
by bonw
MasterMind
 
Hello people, it has been a while since i posted but i guess this would be a good time to post. I was bored so i decided to program MasterMind, it's fairly s...
[2 replies] Last: Oh ok, my bad then :p But yeah feel free to use it modify it, do whate... (by bonw)
May 2011 Pages: 1... 2122232425... 48
  Archived months: [apr2011] [jun2011]

This is an archived page. To post a new message, go to the current page.