Beginners - September 2010 (Page 2)

by vlad61
Header files
 
I found http://www.learncpp.com/cpp-tutorial/19-header-files/ this site here for header file tutorials but the code they gave doesnt compile on my V C++ for som...
[2 replies] Last: Sorry for the long reply forgot to subscribe. ---H... (by vlad61)
error 2065, error 2228 C++
 
ostream & operator<<(ostream & stream, String1 &sIn) { stream << sIn.str; return stream; } When I compile this I get 2 Error messages which is down...
[12 replies] Last: String1 & String1::operator =(String1 & sIn) { return *this ... (by sohguanh)
Value returning 5.0000, not include decimal
 
Hello, my take two values of type int and divide by three other values of type int. This value is stored in the variable "answer". However, when i do this the a...
[2 replies] Last: Thanks. Your post made me think of something we did in class. The way ... (by trouty323)
Function does not take 0 arguments
 
Hello, I'm very new to C++ programming and I'm trying to get this script to work and the only error that I'm getting is: Function does not take 0 arguments ...
[5 replies] Last: Makes sense, anyways it works now: float problem2a() { float ... (by James5955)
Curious about matrices and arrays.
 
I was reading about matrices and saw how similar they are to arrays in c++. I then opened a new project and tried adding two arrays together like you can with m...
[3 replies] Last: Right gotcha. No magic then... (by AlphaBravo)
Linker Error Reading From File
 
I seem to be having trouble as I'm receiving two error messages from the following source code. [Linker error] undefined reference to `__dyn_tls_init_callb...
[2 replies] Last: I used the standard development environment in DEV C++. All the sourc... (by wagnerpj)
deleting an elements
 
hello guys ... Here I have a problem to code my algorithm... I have a list of numbers that save in text file format. And the list is as follow : 1 2 3 ...
[4 replies] Last: ahaa...thanks alot ... (by sitikhadijahalistud)
Big 0
 
I need to figure out a running time function which provides a formula for the total number of operations (additions and assignments) performed on the variable s...
[4 replies] Last: soooo.....>_< 2n -1 for both the outer and inner loops. seems like it ... (by Rawkhawk)
by Bri426
Character input
 
I have an assignment due tomorrow that deals with a previous assignment. The previous assignment was a program that asked the user how many numbers they wished ...
[3 replies] Last: Nevermind, it was a mistake on my end...that part works now (by Bri426)
Sorting program using only while statements
 
I am just starting out learning C++ and I am looking for some insights on how to get started writing this program. I am looking to learn, not have it solved for...
[1 reply] : Create "temporary" variable to hold one of the values so you can sort ... (by Dukaim)
by Stza
N00B Questions.
 
I've just started learning C++ about three days ago, and surprisingly, its going quite well so far. I have a few questions I am wondering if anyone could help m...
[2 replies] Last: Thanks!. I'll start reading over that now. (by Stza)
by Draahl
Learning C++
 
Hey all, i tried searching for this question im about to ask but didnt find any good information about it. Im very new to C++, started a few days ago and is ...
[2 replies] Last: Thanks alot for the reply, i will do as you suggest. Will train for th... (by Draahl)
by booker
C++ question
 
Hy i'm a beginner in c++ and this question may sound silly but i have a problem. My cursor is yellow and every time i type a character the nextone is deleted...
[7 replies] Last: You have several options: 1) Just use variable+1 if you don't actua... (by firedraco)
by GaryJJ
absolutely noob question
 
good day bool __stdcall cs_aim::cs_aim ( usercmd_s *cmd ) { cl_entity_s *ent; float flDistance = 32; int iEntity; pmtrace_t gVis; ...
[7 replies] Last: isn't that a compiler output you was asking (by GaryJJ)
return (very simple quetstion)
 
for a given code, ex: unsigned int bFunction() { if (!aFunction()) { //do something return this->data ; } return false; return 0; } T...
[1 reply] : That's more or less right. If you hit a return in your program and the... (by Albatross)
Strings and Char
 
I have recently began programming and am having some difficulty resolving this problem: The aim is to take in a binary number from a user, store it in a stri...
[6 replies] Last: The String library has some great functions for checking validity of i... (by Ritter688)
File IO with std::string
 
Hi! I was looking at the tutorial on file I/O, and did a few experiments on it. After trying a few different things, I ran into a problem: std::ifstream R; ...
[2 replies] Last: wow, I haven't seen .c_str() before, thats helpful. I'll remember that... (by liyarax)
probelm with csv
 
i have a problem with exporting data from my program to csv file to be opened by excel spreadsheet as following: i wantto writh a number in a cell then another...
[2 replies] Last: You need to put a comma in between? (by Pax)
by tonnot
Problem of visibility in static access to a methods
 
this is my file wwin.h #ifndef WWIN_H #define WWIN_H #include <string> #include <QMessageBox> namespace Wwin { class Windows { public: ...
[1 reply] : I think that the problem is to write Win::Windows:: into the body of t... (by tonnot)
by Eyecon
pancakes exercise problem :P
 
I want to cout the list starting from the person who ate most pancakes and finishing with the person who ate least. but it doesn't work :P #include <...
[1 reply] : Here's your sorting for loop: int order ; int i,j,m; for (i=0;... (by hamsterman)
September 2010 Pages: 1234... 32
  Archived months: [aug2010] [oct2010]

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