Beginners - July 2011 (Page 48)

by wtf
c++ date non standard format issues
 
Alright this is driving me nuts. I am trying to use the system date of users' computer to create a free trial version. After 7 days from the initial run, they...
[11 replies] Last: Is the atoi function standard? Yes, it is. You can use ctime to get... (by Null)
Setting up a Constant in a Class
 
I want to make a const char in a class. I mean that if I create two objects of a class, A & B; If I set the value for A.Char & B.Char, it will be a consta...
[4 replies] Last: Thanks.It did the work!! (by Nisheeth)
Can't find what's wrong with my code.
 
Started C++ Programming yesterday, been reading like mad and developing this code in Dev-C++ as I learned more. It started as a simple Modulus Calculator, the...
[4 replies] Last: o.o You're correct. Thank you :] (by Omnikron)
Error with a For Loop in a Class Function
 
I have created a board in the form of a class. This is the code: class Board { private: char board ; public: void SetBoard(); } void Board::SetB...
[5 replies] Last: Man, I was too slow replying... (by HenriK)
pointer to a string
 
char *p="Hello",*l="cello"; *p=*k;//or p ='c';it crashes again cout<<p; the program rashes why?? I have some idea but not very clear about it... some one pleas...
[1 reply] : String literals ("hello" in this case) are not of type char*, but cons... (by hamsterman)
Documentation Tutorial Typos?
 
As i was going through the beginners tutorials, i noticed that even when they are giving the example of a Hello World program, they leave out a pause. so any pr...
[1 reply] : I think it's left out because it's not needed, at least not on the com... (by Gabe 101)
What's wrong with my code?
 
It compiles without error but the 'netPay' result won't display. The console just closes down... // assignment1.cpp : Defines the entry point for the consol...
[6 replies] Last: It's bets to use cin.clear() if you extract data from the stream befor... (by LB)
Using an Application without DLLs
 
Hello. I am making a program with Ogre3D and other libraries needed to make this an online game, but thats not important. Lately Ive been using my project on...
[10 replies] Last: hmm... i think i know what youre talking about, but is there an obvio... (by shacktar)
Pointing to elements in a vector.
 
Hi, So I've got 3 structs - track, top_hit, and bot_hit. A track is essentially just a pointer to a top_hit and a bot_hit with some member functions to analys...
[3 replies] Last: You can still use one vector, you just need to have a way that you can... (by LB)
Combining Bubble and Selection Sort
 
I am receiving this error, how can I fix it. ERROR: 1>payroll2.obj : error LNK2019: unresolved external symbol "int __cdecl swap(float * const,int,int)" (?...
[2 replies] Last: Thank you, I fixed it. (by queenzgurl)
Just getting started, keep going back to square 1.
 
Hey Guys, I'm new and I'm Failing Hard. Pleased to meet everyone here. I got a lot of respect for the people who can stick to learning c++ with the fierce de...
[8 replies] Last: I'm learning C++ too. what I do is: 1. read a section in the book 2. ... (by muratagenc)
by wtf
troubleshooting weird cin >> problem
 
This is weird ive never seen anything like it before. I swear its the boogeyman. bool b; cout << "Testing... " << endl; //makes it here cin >> b; //cra...
[6 replies] Last: I don't know. I just read through pretty much my entire program and I... (by wtf)
DMA & String Pointers
 
Hi, I am trying to teach myself C++, and really appreciate your time & help. This program is supposed to dynamically create an array of type string that wi...
[3 replies] Last: Okay, I deleted lines 4, 5, 6, & 28. Now the code works correctly. Tha... (by matthewmpp)
Something easier than Classes
 
Hello, I've got a basic knowledge of C++ curently, well atleast procedural paradigm programing, but not object-oriented. To me classes look to complex to make w...
[5 replies] Last: fun2code, do i have to have any syntax at the beginning of the header ... (by Blugamer44)
by g913
career in c++
 
Hi, I have been working in HMTL, ASP.NET till now. All the stuff that I did so far is just learning tags and using them. I am sure this is not what I want. I...
[16 replies] Last: Almost a decade. I'll freely admit that I've always been prepared to m... (by Moschops)
by jihad
FIX this for me please
 
int grade; printf ("Input grade :"); //nagta2nung xa ng input from the user scanf("%d", & grade); //ila2gay nya ang input ng user sa variable na grade swit...
[3 replies] Last: Your problem is in scanf(). It is not inputting into the variable 'gr... (by wtf)
Robot Programming
 
Hi. I`m 2 years in for CompSci major,and thinking about leaning toward AI. I want to do a project this summed and program a robot in C++ or Java. What would ...
[4 replies] Last: I would recommend the lego kits. I wanted to do robots(still do) and ... (by brokenbot)
Deleting node from Linked List not working
 
I've been stuck on this project for class for 3 days. This is my first linked list. I'm referencing all kinds of examples and tutorials and can't figure out whe...
[6 replies] Last: toexii: Thanks for the link. I had seen that and was using it as a r... (by WhiteVandal)
Begin Programs with templated code
 
Hi, I'm taking a C++ class and have a couple of questions to make my life a little easier. We do a lot of short exercises where we have to write code from s...
[1 reply] : You should just make an empty project and type the beginning code your... (by Zhuge)
void pointers (be deleted ?)
 
Can void pointers be deleted if they have been created as new objects? I had been confused with void pointers when I heard that they can't be reassigned once...
[11 replies] Last: Oh right. Yes, that can be done. You don't need to use new . #incl... (by Moschops)
July 2011 Pages: 1... 4647484950... 54
  Archived months: [jun2011] [aug2011]

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