General C++ Programming - March 2010 (Page 4)

by AaronB
Inputing from file to parallel arrays
 
I am trying to write a function that will input from a file to parallel arrays. i have a file that contains 4 columns of information and an unknown number of r...
[1 reply] : Are you having any problems with that? Also, a little suggestion: ... (by hamsterman)
nested for loops
 
# include<iostream> # include <cstring> using namespace std; int main () { for (int i=1; i<=18; i++) { for (int k=1; k<=i; k++) { ...
[5 replies] Last: What is the point of this exercise? Just to start off printing 18... (by Dacster13)
Unresolved Token Errors in Class
 
I am just learning C++, and am having a hard time with creating a class definition. Can you please help me understand what I am doing wrong in the following cod...
[3 replies] Last: I tried a different compiler and had similar errors to what EAStudent ... (by Scooter513)
GNU C Compiler and MinGW
 
Hey all, I'm new here and would like to be sure I get into the right thread with these tools. Can anyone please direct me?
[2 replies] Last: Yes I have used that one from http://sourceforge.net/projects/mingw/f... (by Douglas)
error 2440 and 2068
 
I keep getting these errors and I can't figure out how to fix it. The errors are at line 17 and 20. code: #include <stdafx.h> #include <stdlib.h> typede...
[2 replies] Last: ok, I got that 2nd error cleared up but I don't understand fully what ... (by marty3333)
Class Instantiation
 
Hi all, just a general question I have. If I create a class with my data members containing other class objects I created in my project. Can I just decl...
[1 reply] : Will the Objects default constructor be called automatically to creat... (by Disch)
Global namespace error
 
Está apareçendo este erro no arquivo math.h: Erro: 1>c:\arquivos de programas\ogresdk\nxogre\dependencies\bml\math.h(63) : error C2039: 'fabsf' : is not...
[no replies]
Unresolved external symbol
 
Hello everybody. Please if you can help me this, I've used different media but nothing certain. I'm trying to use the NaviLibrary in Ogre3D. But this error ap...
[5 replies] Last: thx for the answers. The problem is solved. must be properly set up th... (by dokfiler)
singleton
 
which would you prefer and why? A class with all static members(data and function) or a singleton class. ex class with all static members class rs { st...
[8 replies] Last: I actually use a class like this in one of my current projects. But a... (by imi)
by ajwest
how to pass a function to another function
 
im trying to pass two funtion one is call void sort arrys which would sort the arrays and the other is call void print arrays which would print arrays. so far i...
[1 reply] : You are never calling sortArrays (by Bazzy)
by Zendet
Bad array initalisation?
 
Could someone tell me whats wrong with it? want to make the array of strings, and then have it so that they are randomised, then i will start the main part ...
[4 replies] Last: 1) You spelled "length" wrong. 2) The random code as in random_shuffl... (by closed account S6k9GNh0)
Secret agent game stuck
 
Description: Develop a secret agent game. The player will play the part of some famous secret agent (James Bond, Austin Powers, Sherlock Holmes, etc…) – ...
[10 replies] Last: got code to work, thanks guys!! (by skyline2k7)
by Thr3sh
Building off .obj file
 
I need help with a .obj file I was given in my class. The professor included a Explorer.h and a Explorer.obj file in the project folder. We are supposed to exte...
[2 replies] Last: How do you link the files at the end? I get what your saying, just c... (by Thr3sh)
Project to recover UnderC C/C++ interpreter
 
Hello ! I'm managing to update UnderC C/C++ interpreter to work with modern c++ compilers, actually it works on windows with gcc 4, compiles on linux but doe...
[2 replies] Last: If not I'll not been doing it ! (by mingodad)
by NGen
Return 3;
 
For some reason my program is returning with a code of 3. My program starts, creates a window, initializes everything needed for drawing with DirectX, it loads ...
[1 reply] : Without code, the only thing I can give you is this link: http://www.... (by R0mai)
by NGen
STL Not Thread-Safe
 
I've heard this mentioned multiple times, but I have no idea what people mean when they say it. Anyone care to enlighten me?
[5 replies] Last: You can use TBB library. http://www.opentbb.org There are many alg... (by Denis)
Ifstream C++|Get access to exact line instead of reading the whole file?
 
So - Like i mentioned in the title: I work with .txt files and the file has for example 40 000 lines. If I need only last 100 lines - do I have to go through t...
[3 replies] Last: LOL - I'm not too lazy... - But I really couldn't find it myself. Howe... (by selector)
How can I rotate a 3d Object (cone) ?
 
A set of vertices together represent a cone. Imagine that the Tip of the inverted cone is on the origin, and I have a the axis of the cone. I have to rotate the...
[1 reply] : You need to read up on 3D coordinate manipulations. Part one here give... (by Duthomhas)
What will be the output for it ?
 
Hello everyone .. I just looked at a question .It was written something like that . int i=10; i=i++; printf("%d",i); I wonder what will be the va...
[1 reply] : What do you think it is and why do you think that? The answer is ... (by closed account z05DSL3A)
by kerlon
problems with header file (code to find extrema (turning points))
 
so.. my code is analysing some data and extracting the extrema.. (supposedly) the structure of my code is as follows MAIN 2dev.cpp #include "b...
[6 replies] Last: Thanks again bazzy.. I got it working eventually! What I ended up... (by kerlon)
March 2010 Pages: 123456... 23
  Archived months: [feb2010] [apr2010]

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