General C++ Programming - May 2013 (Page 35)

C++ Multidimensional Array
 
Hey, found this skeleton on arrays and tried to put some use to it. I'm having an error with the values though... can anyone help? #include <vector> using ...
[6 replies] Last: Do you mean unchecked, as you could also access information that is "... (by cire)
Visual Hull
 
Hi Anyone have any experience of how to build the visual hull using opencv and c++ I have calibrated the camera and don't know what should be the next ste...
[no replies]
char and general mem allocation.
 
Hi, I was always wondering about this. As far as I understand, using char *a = new char; allocates one block of memory for a char, and not more. Then, why, i...
[4 replies] Last: Ah, ok, that's what I thought, so, I don't need to delete every pointe... (by hansaaa)
by Zoo
Problem with dynamic memory allocation in istream &operator>>
 
Hi. I have a question. How do I allocate dynamic memory in istream &operator>>() (operator overloading)? I need to allocate int & char dynamic memory when the ...
[2 replies] Last: Thanks Fransje. I will read through it! (by Zoo)
Need your help to explain this OOP
 
_v3signal *_v3main :: find_v3_signal_bylhs ( char *s ) { printf("chunhaun:lhs1,%s,%d\n",s,_num_v3_signals); if(!s){ printf("chunhaun:checklhs\n"); retu...
[2 replies] Last: Furthermore, the _V3Signals must have been declared somewhere. Perha... (by keskiverto)
3D label plot
 
hello to everyone, I would like a to plot a 3d graph that connects with lines some points in 3d space. I have tried with qwt3d but the problem is that I c...
[3 replies] Last: Well, I have limited experience in 3d plotting using c++, but, if yoz ... (by hansaaa)
psuedo code for behaviour tree functions
 
Just wondering how i could improve these bool checks for my Behaviour tree class, what checks or other functions could i implement to improve these choices this...
[no replies]
code concept
 
Need help pointing out where/if these are applied: The heap Constructor overloading Private/protected data members/functions Functions, parameters, return ...
[4 replies] Last: @cire Ok edited that Aceix. (by Aceix)
Generating compile time endianness
 
I've been looking around and am just shocked that there doesn't seem to be any way of using the optimizer or templating system in any consistent way across comp...
[2 replies] Last: Yes. Though for the most part, the compiler should be able to pad as ... (by AdrianH)
functions undeclared
 
I keep getting errors stating my variables are not declared, although i seemed to have declared them. anyone have suggestions on what to do? #include <iostr...
[1 reply] : I think you're using the wrong tags for code. The reason why it says ... (by Bourgond Aries)
[C++] Open / Create a file without deleting the previous
 
Hi, as specified in the title, I want to open a file if it already exists and create it if it does not exist, but without deleting what was already within. Bec...
[no replies]
replace char in string
 
Is there a way to replace 3 char's in a string. For example i have a string containing s = "The school is called 7x8" I want to replace the "7x8" with "L...
[6 replies] Last: Store all locations of "7x8" in the string, the copy LSU to each of th... (by Bourgond Aries)
c++ to c# ?
 
Let me start off by saying I know this is a c++ site, but I was wondering if anyone had experience going from c++ to c#? If so, what learning materials did you ...
[no replies]
File IO
 
I can extract the data and print it out but i want to get a copy of the data and run the Replace Algorithm I have on the bottom of my code. Is there a way to ge...
[no replies]
Cin (input) is being ignored in do while loop.
 
Hello. The cin (input) is being ignored after the post-test. Any solution? Thank you. #include <iostream> #include <string> #include <cmath> ...
[no replies]
Best method for text trees in games? (XML vs etc.)
 
I guess that this will all boil down to a matter of opinion, but I'm all ears for assistance. I'm making a game with multiple endings. For debugging purposes...
[no replies]
Polymorphism C++
 
CPolygon * ppoly1 = new CRectangle; DOes it mean poly1 can either point to type of Cpolygon or Crectangle?
[1 reply] : Yes (Assuming CRectangle is derived from CPolygon), this is because CR... (by Lachlan Easton)
C Help - Reading from file.
 
Hi guys, So I have this text file that I am trying to read from and store the values of each line in multiple variables. Let's say my text file contains ...
[2 replies] Last: Thanks Cubbi, appreciate it :) (by computerkazi)
tea algorithm
 
hi guys, i`m trying to figure out how to use these two methods of tea algorithm that i have gotten from wikipedia. #include <stdint.h> void encrypt (uin...
[2 replies] Last: thanks man! so i will do the same for string? correct me if i`m wrong... (by CLearner88)
C string manipulation (C not CPP)
 
Hello, I'm usually a c++ programmer but my teacher is forcing me to use regular old c. I've been spending a lot of time figuring out how to manipulate strings...
[2 replies] Last: Beautiful. So glad I asked! =D (by ssteuteville)
May 2013 Pages: 1... 3334353637... 47
  Archived months: [apr2013] [jun2013]

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