Beginners - May 2011 (Page 8)

Use Vector to do Insert Sort
 
Hello, I am a newbie of C++, who has some experience in Java. I just finished my first C++ book and am doing some exercises for beginners. I am trying t...
[7 replies] Last: Hello everyone! This is my very first post and I don't want to be obno... (by Osmar)
String in class
 
Hi, I'm trying to make a class called dayType. As a private member, I declared and initialized a string array to hold the days of the week and for some reason, ...
[6 replies] Last: Yeah, the next section in my book discusses static members. Once I rea... (by Maese909)
c++ array question ?
 
Write a program for a one dimensional integer array A with maximal number of elements =1000 (const=1000) that: a) Input by the keyboard the number N of the c...
[5 replies] Last: @ jeff: I'm pretty sure that IS the case -> http://cplusplus.com/foru... (by cnoeval)
by Ttown
Creating separate arrays from text file
 
I have a very long text file containing numerical data. The data looks something like this: 0.2 26 24 27 0.1 29 31 25 0.9 35 32 31 0.4 23 22 25 The first ...
[4 replies] Last: Mathead's example is eloquent but doesn't account for irregularities i... (by johnnystarr)
Read only function
 
Hi there I have a question regarding const but after looking online I still cannot understand what it means exactly. My question is as follows: The cla...
[12 replies] Last: Hopefully not too late for your exam, but play around with my Circle e... (by jeffbmartinez)
anyone explain why I need single quote?
 
Can anyone explain a bit of the meaning and the cause of the compile error and why I must use single quote here? #include <iostream> using namespace std; i...
[7 replies] Last: An example of something similar in english would be if you wrote: "Th... (by jeffbmartinez)
2-dimensional vector and a 3-dimensional vector program
 
i am trying to write a program that could output the magnitudes of a 2-dimensional vector and a 3-dimensional vector, however im stuck at this point #include ...
[5 replies] Last: sqrt(x) is short for Square Root of x. You can write a function any wa... (by LB)
Find the least common multiple in a range
 
Nothing hard to do, but I thought it was entertaining while it lasted. Got this task from eulerproject.com - my solution is here ( http://pastebin.com/UZwR4P3z ...
[7 replies] Last: You can get a modulo of a negative number. (by hanst99)
by KatieT
Serial/Random Access File
 
Hi. I am extremely new to C++ and have my first year final assignment to complete. I'm rather stuck. Is it possible to add to each individual line in a seri...
[3 replies] Last: Most of the time, a text file requires serial access due to the variab... (by kfmfe04)
Separating Integer into Digits
 
This is far as I gotten, I have been able to separate the digits;however, they are displayed backwards. Any help would be nice. #include<iostream> using namesp...
[8 replies] Last: Thanks, I thought that was how it was, but i wasn't entirely sure. (by smkelsey)
Odd mistake while creating a class
 
Hello everyone! I'm trying to write a programm which simulates a football championship. I'm using Microsoft Visual Studio 2008. I just have started but there i...
[4 replies] Last: helios (8067) You're absolutely right, buddy!!!! It works!!! That was... (by andreychernukha)
email parser need help asap!
 
so i need help for some reason it searchs through for a valid email but still prints the whole text? #include <iostream> #include <string> #include <fstre...
[4 replies] Last: So why don't you take any suggestion? I answered to one of those threa... (by coder777)
Complete C++ beginner can't get his head around File I/O
 
Hello, I'm making my way through the book 'Practical C++ Programming' and I'm getting stuck at the getline function in Chp 16. The actual line of code to ...
[2 replies] Last: Thank-you for the speedy response. I've got it to work now. I have a... (by phy2j2s)
Problem compiling an example from the SAMS teach yourself C++ in one hour a day book.
 
Hey everybody! First of all, I'm new here, just started learning C++ from the book written by Jesse Liberty et al. While going through the chapters, I've ...
[2 replies] Last: perhaps, I just saved the source again while reading your message. Now... (by biomed0101)
Problem with program
 
Hi, I am just starting out with C++, and I was trying to write a program that gives you the factorial of a number. However, the program just gives 0!="Whatever ...
[4 replies] Last: It's called a trace statement in other contexts because it logs/traces... (by kbw)
lvalue
 
what is lvalue in c++? how can we be sure about lvalue without compiling the code?
[1 reply] : lvalue and rvalue is vaguely teated by the c++ standard and is som... (by guestgulkan)
How can I create a control inherit from CWnd
 
I want to write a control inherit from CWnd,what should I do if I want to create it? I call the function CWnd::create(),but it fails.Please give me a instance. ...
[12 replies] Last: [quote=fanrongqi]I guest the CDC::FillRect() will refresh the control ... (by closed account z05DSL3A)
lost how to solve the question (class called invoice)
 
#include <iostream> #include <string> using namespace std; class Invoice { public: Invoice (string, string, int ,int); void setPartnumber (string) stri...
[no replies]
hi all plzz help
 
i am just starting coding in vc++ 2010 express i am tring for a simple scanf program /* scanf example */ #include <stdio.h> #include "conio.h" int main ()...
[13 replies] Last: /* scanf example */ #include <stdio.h> #include "conio.h" int main () ... (by binarybot)
Allegro error
 
I am following this tutorial on Allegro. http://www.cppgameprogramming.com/cgi/nav.cgi?page=allegbasics I followed it through to the code part and i got t...
[no replies]
May 2011 Pages: 1... 678910... 48
  Archived months: [apr2011] [jun2011]

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