Beginners - August 2012 (Page 25)

Do/While loops
 
Hi everyone I'm new to a programming course and I don't find my lecturer 100% helpful, so I'm hoping maybe you people could give me a hand? I'm not sure what...
[17 replies] Last: I've been doing the next question coding and design and come so much c... (by BrendanKB)
Tutorial confusion
 
On this website, there is a c++ tutorial as many of you know. I don't know if the examples it provides are relatively simple, but I am having trouble understan...
[15 replies] Last: Here is the std::function version. Since it isn't easy to post code si... (by Volatile Pulse)
by iepah
empty string
 
hi, i have problem with this program, i want the program to give a command after a certain time if user not put the input #include <stdlib.h> int main() { ...
[4 replies] Last: there's no need for void inside main() (by ToniAz)
File creation
 
Hi everyone, I've created this program: #include <fstream> #include <iostream> #include <string> int main() { string rName; cin >> rName; string fil...
[1 reply] : This is an attempt to open a file for reading. It would be silly for s... (by Moschops)
Program crash after viewing or altering a file
 
Ok so im trying create an program that asks the user for a few things to keep track of inventory but when i try change or view the items it crashes. i can appen...
[1 reply] : The problem is in how your writing to and reading from the file. You c... (by Moschops)
by Ch1156
Class help, again
 
Ok so im trying to learn how to use classes the right way and i watched some tutorials and he can change the string from the class object but what if i want the...
[8 replies] Last: To elaborate by what I mean with using classes, here is an example: ht... (by Volatile Pulse)
by Doth
Unresolved Externals in a string
 
I started to work with SDL and decided to write my own class for working with it, for showing errors, loading images, etc. I made a class called MySDL containi...
[4 replies] Last: Thanks, it is working now, I got confused with the private so I though... (by Doth)
by gerfy1
How long does it take to learn c++ (1,2)
 
I am wondering how long it would take to learn c++ enough to make any program from with it. Please don't give me answers like "it depends on how much time you ...
[21 replies] Last: Nah, that is just your interpretation of it. He is just pointing out t... (by BHX)
Typedef translation
 
Hello, I am following a tutorial online and so far so good (http://www.abstraction.net/ViewArticle.aspx?articleID=67). I am able to understand all of the code ...
[3 replies] Last: Thank you very much for the quick replies. And thank you again Cubbi f... (by MasterZero)
Problem in reading file
 
Hello, I have a problem to read file, here is the pseudo code : Graph is a class void Graph :: lecture_fichier(char *nom) { ifstream fich; ...
[2 replies] Last: To solve the problem addresed by Moschops, why not use the std::string... (by legolizard)
by Gecks
Problems with pure virtual and Factory Method
 
Hi guys! I am getting the error: SniperFactory.cpp: In member function ‘virtual Survivor* SniperFactory::createSurvivor(std::string)’: SniperFactory.cpp:7...
[8 replies] Last: Indeed, I don't define any pure virtual functions - but that's not the... (by KRAkatau)
dividedByTwo
 
Hi. can someone tell me how i can write a statement that calls the dividedByTwo function? advance thanks.! :)
[12 replies] Last: Well it's better if you don't use the same names in your functions as ... (by Volatile Pulse)
idea for byte circelize
 
Hi I try to write a function in C that get one byte(char) and a number N(integer) and it needs to shift left N times and return the new number exemple: 0x...
[6 replies] Last: @viliml I think that your code is incorrect because the type char can... (by vlad from moscow)
ı could'nt understand
 
if((((char*)&n64Offset)[chOffsetSz-1])&0x80) for(int i=sizeof(LONGLONG)-1;i>(chOffsetSz-1);i--) ((char*)&n64Offset) = 0xff; what does it mean p...
[5 replies] Last: When you dont understand a piece of code, you should first space it o... (by spy man)
problem with input
 
printf("%d",scanf("%c%c",&a,&b)); why it is not taking two inputs???
[1 reply] : [quote=man]c Matches a sequence of characters whose length is specifie... (by ne555)
need help with program in xcode
 
the following program is supposed to take an input to choose to convert from F to C or C to F. The problem i am having right now is that it is telling me that ...
[6 replies] Last: And for my 3. and 4., just change the name of the variables to somethi... (by MaxLascombe)
by Alirez
Heart pun
 
I wanted to know why strrev(a) with a a equal consideration.(so says the heart of the pun is 12345) (if such is not my fault that Google Translate) //3....
[2 replies] Last: ...did you use Google Translate? It is bad at translating. What lang... (by Zincott)
by tatai
How to operate an '.exe' using C++
 
I need to use a '.exe' file to operate through the C++ program. I am using system(). for the operation of the '.exe' file, I need to put some command to the '.e...
[16 replies] Last: _ You need to scape special characters (spaces) _ http://ss64.com/nt/s... (by ne555)
A Pattern
 
hi, how can i make an output like this? * ** *** **** ***** and its reverse ? thanks in advance. :)
[4 replies] Last: oh, well that made sense. :) sorry i forgot , while and for are both l... (by nicole Yoonzy)
time error
 
hi, why is it that when i input " 00 for hours and 01 for minutes " the output is 12: 1 AM ? my brain is already bleeding. thanks in advance.
[9 replies] Last: oh, i forgot the iomanip thing. :) but thanks again and again. :) (by nicole Yoonzy)
August 2012 Pages: 1... 2324252627... 45
  Archived months: [jul2012] [sep2012]

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