Beginners - November 2011 (Page 35)

Sorting a vector of structs
 
Hi, I am trying to sort a vector that contains pointers to structs. I read a lot in the internet and in this forum about that. However I do not know what I do w...
[6 replies] Last: Thanks a lot to all of you, I was able to solve it now. (by Sandermatt)
Confused with game show program.
 
Hi. I'm currently taking a C++ course, but I'm having a bit of trouble understanding how to complete this assignment. I'm supposed to make my game show reset th...
[no replies]
by Sathed
Confused about Forward Referencing with classes
 
I'm a little confused about forward referencing. If I'm not mistaken, this should work, correct? class Y; //Forward Reference class X : public Y { ...
[2 replies] Last: Ah! Exactly what I needed. Thanks! (by Sathed)
Bool Functions???
 
I am attempting to write a program that will allow someone to play the matching game. The problem I have though is using a bool function. Somehow I am supposed ...
[2 replies] Last: Basically I was told by my professor that I need a bool function. Im t... (by DeepThoughtEli)
pseudo code download?
 
i have to use pseudo code to do a project but i never used this before so i was wondering where could i download it? i basically know nothing about this so p...
[9 replies] Last: ok thanks for the help (by beginner123)
is my selection sort right???
 
void sort(int *array, int size) { ...
[no replies]
Help with a Lib Program
 
I'm writing a program that reads txt file that has a mad libs story in it like this Zoos are places where wild <plural_noun> are kept in pens or cages <#> so...
[no replies]
String Array homework help
 
Hi, this is my first post so forgive me if Im missing something anyway I have to write a sudoku program in C++ for my comp sci class I was a string array that...
[3 replies] Last: You can use the string's length function to determine the number of ... (by shacktar)
why C++ has both struct and class????
 
C++ is a super-set of C language...C language has struct ( structures ) while C++ has struct and class ( ADT's).....by default the access specifier of struct is...
[6 replies] Last: Classes do the exact same thing, as in the code below. I didn't kno... (by codekiddy)
I keep getting error C4430: missing type specifier - int assumed. Note: C++ does not support default-int!
 
I have a very simple struct. In a file called grades.h I have struct grades { string studentname; string classname; char lettergrade; }; In main I ha...
[2 replies] Last: Aha! Thank you! (by Katie Bartha)
Help with homework!
 
Is this valid or not? Explain. If correct what will be values of variables involved: Code int x = 15; int *xp = x; int *yp = *x; int *zp = &x; int ...
[6 replies] Last: anyone else have anymore input on this? Seriously, just read what a... (by Moschops)
Reading from a file to an array
 
I have a file with ~180 lines, on each line is just a 0 or a 1. I would like to create a routine that takes this file and creates a boolean/integer array so tha...
[1 reply] : Managed to get it working but I'm unsure if this is the best method, a... (by Chunder)
C++ Graphics library...
 
kindly tell me there is any standard C++ library for Graphics????? ( using colors...circles...graph...etc??? thanks.....
[3 replies] Last: thank you sooooo much ....... :) its really knowledgeable for me..... (by raheel54)
C++ Tutor Needed
 
Hey !! Guys ..I need a tutor just for two hours for C++ programming. Please let me know if ur interested.Reply me to my email mastermindisnow@gmail.com .Tha...
[no replies]
string class wchar_t?
 
Does the string class in c++ support wchar_t ? or is it just char ?
[1 reply] : It is just char, but you can use std::wstring instead which is the one... (by webJose)
Inheritance/overriding - my display function doesn't seems to print out the information from the derived class!
 
I instantiated 5 generic Employee (base class) and 2 OrdinaryEmployee (derived class) But when the data is printed out, they only print the information specify ...
[4 replies] Last: You should use the new keyword when you do the assignment. e.g. ... (by shacktar)
templates notorious to debug?
 
hi I've heard from word of mouth that templates are notoriously difficult to debug and have begun to generally accept this. But is this official? And if so,...
[no replies]
Passing a Vector as an argument?
 
I'm writing a program which passes a vector as an argument to a function, only I don't know how to pass it. BTW this is a game of Craps. code: #includ...
[11 replies] Last: Bump. Edit: I finally found out how to do it. I don't know why you guy... (by closed account yCf9216C)
Setting compiler settings through code.
 
Hello, I was wondering if there's a way to 'force' compiler/command line flags in the code, to ensure specific behavior when someone else compiles my code. ...
[1 reply] : Usually that's done with #define of #pragma. But I don't know if all ... (by coder777)
by ty98
consle color
 
I need to know how to set the color of a console program. I can use system("color 01") but you can only use that on xp. Can you help with this?
[6 replies] Last: [quote=yet5438]the former can't show anything but the latter can? bca... (by coder777)
November 2011 Pages: 1... 3334353637... 65
  Archived months: [oct2011] [dec2011]

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