Beginners - April 2012 (Page 60)

Unique array numbers
 
Hi all! Very new to programming and I need a little bit of help with this please? Thanks in advance for any and all replies! I'm trying to read in an arra...
[3 replies] Last: Thanks very much guys! Worked it out in the end with your advice! (by moominboy)
if/else help
 
#include <iostream> using namespace std; int main() { int a; int b; int c; int result; int d; int e; int f; int g; int input; cout << "Please enter a number"; ...
[3 replies] Last: Thanks for all the help! It works perfectly and thank you for the ref... (by smurf12125)
Basic GUI in c++
 
Im new too C++/programming in general. Have a project from class where the extra credit is to create a graphical interface for our program, instead of ASCII art...
[4 replies] Last: Qt is a good option, but it has a very large learning curve. A great G... (by Need4Sleep)
Swtiching places in a vector
 
Im having problem switching two string values in a vector. Im suspecting that the vector i insert isnt updatet by the fuction. Any tip? #include <iostrea...
[2 replies] Last: Thanks for the help ! (by chilliman)
by pjwasz
String comparison
 
Simply, I have two strings. No matter what you type in, the strcmp returns 1. Here's the code int accountnumber ; cout<<"Your account number is: "; ...
[3 replies] Last: Fixed. Thank you. (by pjwasz)
Finding the size of an Array?
 
If given the constraints thatthe array will be between 1 and 50 elements. The array is in class where the object is initialized with an array of elements within...
[3 replies] Last: intialize the entirre array to a default value then load the array and... (by patchesOhulihan)
BlackJack scoring.
 
Hey guys, i wrote a bit of code and im having trouble debugging it, any help would be appreciated. #include <iostream> using namespace std; int main()...
[5 replies] Last: line 28 should be cin >> currenthand ; I would say you're on the ri... (by Lowest0ne)
reading from .dat file (1,2)
 
Hello. I am currently trying to make a program to keep track of contracts I have in a MMO. It's really inefficient and it's more of a for fun kind of thing sinc...
[30 replies] Last: The main thing wrong with what you have is that Contract is an object,... (by Lowest0ne)
error messages
 
hi, i am using Dev-C++ to do my programming at home but when i am in university, it is done on visual basic 2008 and my assignment is to be presented on visual ...
[no replies]
About Include and CPP files
 
If you have two CPP files one called Main.cpp and one called Second.cpp, in Second.cpp you need to include <iostream> again that you already have included in Ma...
[6 replies] Last: Okay, that changed my view to it and makes more sense hehe thanks for ... (by Mekolle)
What Does This Template Mean?
 
I've come across this class template: template <template<class> class X> class Something { //... }; I tried to instantiate it like so: ::Somet...
[3 replies] Last: You're welcome! :-) (by TheDestroyer)
Help with total sum.
 
Hey all, new user here. Im having a problem with one of my assignment questions, ill post the code in a sec. Basically the program has to ask the user for a se...
[3 replies] Last: Ah I see. I've got it now. Thanks for the help :) (by b0sanac)
by atkfo
Timer
 
Im using a microcontroller 8051f226. I dont know how delay in 1 sec. I was thinking if i have to add some more codes under ISR? void Timer2_ISR (void) interrup...
[3 replies] Last: Please go to some MCU forum. This is not the right place. btw, I used... (by TheDestroyer)
by chipp
objective C
 
does anybody in here know about objective C? does anyone good in objective C?
[8 replies] Last: No. In terms of desktop OS, we target Win and *nix (generally with the... (by Moschops)
Char string[] Constructor error
 
hey i have a separte header file with the class: class image{ private: char src; point pos; scale size; public: ...
[5 replies] Last: Happy to be helpful! :D (by S G H)
String getline
 
Hello all! I know that it is possible to use "cin.getline();" for C style strings, but I am not aware of how to do this with C++ style strings. Does anyone kno...
[1 reply] : It's getline as well: http://www.cplusplus.com/reference/string/getlin... (by coder777)
File scope.
 
Hello, After some very odd "unresolved extern symbol" errors, I'm wondering whether there's such a thing as "file scope". Basically, I have one header file...
[7 replies] Last: Ah yes, it was declared "inline", but the actual body of the function ... (by Gaminic)
by Hucaru
checking if a char is an integer
 
Hi, I am trying to create a function that can be called upon when the user wishes to receive an integer value only for a variable. This function will check that...
[7 replies] Last: Ok. Thanks for help I think I understand it better now. (by Hucaru)
Sujested learning book
 
hello, i am a student and i have to learn c++ on a good level. i have experience with pseydo-code and i am looking for a good book(or any other method y have to...
[3 replies] Last: what about this: http://www.amazon.com/Without-Fear-Beginners-Guide-Ma... (by Mortikis)
by pzling
The value of ESP was not properly saved across a function call.
 
Hi How do you debug one of these errors? Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a resu...
[1 reply] : Ok, it seems that this one is fixed by restarting the compiler (VC++ 2... (by pzling)
April 2012 Pages: 1... 5859606162... 66
  Archived months: [mar2012] [may2012]

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