Beginners - February 2011 (Page 2)

looking for a good Qt forum
 
Hopefully one that is a little more active than qtforum.org, where it takes half a day or more to get one semi decent response. I've been here for awhile and wa...
[1 reply] : There is also http://www.qtcentre.org/content/ (by guestgulkan)
Open/read file without typing the extension name .txt
 
Hi again! is there any way a program can read a .txt file without typing the .txt extension name? I need this for my ATM program for accessing an account number...
[5 replies] Last: yep. it's effectively the same thing i mentioned above (by closed account 4Gb4jE8b)
by ogward
problem with inheritance
 
Hi! I have a base class called vehicle and two sub classes Car and Bike. I have a handler file that has a couple of functions like addVehicle,showAll, showC...
[8 replies] Last: Thanks a lot for the help! (by ogward)
I can't figure out the end of this Fibonacci series program
 
I am trying to write a program that uses a for loop to output the Fibonacci series to the number inputted. I have put the program I have so far, but am having t...
[no replies]
Segmentation Fault
 
int Link :: find_r(node *pNode) { node *cur = head; if(cur->next != NULL) return find_r(cur->next...
[2 replies] Last: hey thank you! that worked! (by andersonwq)
convert string to const char
 
Hello. for my program I need to change a string into a const char ( for opendir ) ... string uhome=getenv("HOME"); string dir1="/Desktop"; const char *...
[3 replies] Last: Thank you :) (by strongdrink)
Encountered a warning
 
After building I get a warning. How do I fix it? Code: #include <iostream> #include <string.h> using namespace std; //prototype int processline(c...
[2 replies] Last: Quote from Bytes.com: OK basically you can ignore this error becaus ... (by closed account zb0S216C)
by Krahl
templates/parallel programming
 
Hi; The following code has 2 template functions in the same header. I would like to ask whether there is any problem with writing template<int N> before each...
[3 replies] Last: Thank you jsmith. @Ramses12 it works for me just fine. (by Krahl)
Void and malloc( )
 
I have the following code segment: void *Cell_alloc; int Alloc_cell( void **Allocator, int Sizeof_element, int Element_count ) { if( ( Allocator ...
[2 replies] Last: My mistake. This was just an example code I wrote. I've changed the co... (by closed account zb0S216C)
by Dixiie
Multiples of the number 2
 
Codes of how to write a program that keeps printing the multiples of the number 2. The loop should not terminate. What happens when you run this program?
[1 reply] : it will output 2 4 6 8...1999998 2000000 2000002 etc :P lol (by strongdrink)
Unsure of how to work with Qt
 
So I'm using MSVC 2008 with Qt 4.7.1 which is good and all, except I can't find any tutorials or really anything at all that specifically uses MSVC, and I have ...
[no replies]
Array Add Program
 
Hey everyone, I'm completely new to C++ and my professor wants me to write a program where two strings are input by the user, both are converted to int arrays ...
[2 replies] Last: Hahaha wow thanks so much. So that got rid of that error! Now I have o... (by WillyWacker)
if expressions
 
Hello everyone. I am trying to write a program for a phone bill. Input need day min + night min. I was wondering if i can use more then one expression in a...
[3 replies] Last: Thanks for your time and help. (by detroit)
Homework lab using sentinel loop.
 
I have this homework problem to do: The population of a town A is less than the population of town B. However, the population of town A is growing faster th...
[3 replies] Last: I got MOST of it to work. I really really appreciate your help. I'm ... (by spencerian)
by rblsfx
Vector of objects (structs) and corrupt values
 
Hello everyone I have a question regarding vector of struct objects. My struct looks like this: enum ExtremumType { Maximum, Minimum }; str...
[3 replies] Last: In this specific case, probably not. In general, yes; initializing me... (by PanGalactic)
Subclass arguments?!
 
I am attempting to create something like this: class food { public: void EAT(); //Whatever happens... }; class cheese:food ...
[5 replies] Last: You're welcome. As Computergeek01 points out you can add more data an... (by closed account D80DSL3A)
cin question with integers
 
I've noticed that if I want to take something off the command line (UNIX/Linux) with cin and put it in an int variable, things like "4four" would work. For e...
[2 replies] Last: Thank you. ^_^ (by HappyDas)
by wasabi
Executing an external process
 
I'm starting on a small project with a friend of mine who works with perl. It's going to do some machinations on the internet and return some data to my C++ pro...
[2 replies] Last: libperl++ doesn't build in Windows due to perl linker problems. "Buil... (by wasabi)
timer
 
can anyone tell me how to add a timer to a programme. for example, suppose you make a program where the user has to answer a question in a certain time limit
[2 replies] Last: You can also just grab the time when you asked the question and the ti... (by PanGalactic)
void function hw problem c++
 
Hi everyone, I'm new to the forums, as you can probably tell by my join date. I am currently stuck on a homework assignment that I am working on and any help i...
[2 replies] Last: Thank you zhuge you were right. Your reply just saved me some time, b... (by Gamerzdisease)
February 2011 Pages: 1234... 43
  Archived months: [jan2011] [mar2011]

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