General C++ Programming - December 2011 (Page 21)

by Srija
Dll creation in VC++ 2008
 
hi everybody Can anybody tell me how to resolve the following error?? I created dll and trying to use the dll in another project. unresol...
[2 replies] Last: But when i am browsing to add those .lib file s and directories the br... (by Srija)
by iPlus
What's the Best way to get familiar with the other applications?
 
I just need a little info about getting familiar with the applications. The best methods whether it be books or online tutorials, just suggestions would really ...
[18 replies] Last: That's my opinion. I think that SDL is good for people who have a bit ... (by Code Assassin)
How to input reverse arrays and reverse strings
 
This is what I need to do for two parts of my project, need some insight on how to even start or do this. so how do i add on this reverseit function? and for th...
[3 replies] Last: Try with the following code, it will work fine step1) Reading the str... (by NVTKrishna)
for loop execute faster
 
Hi, i have the code below: for (i=1;i<512;i++) for (j=1;j<512;j++){ temp=y[j+1] +y[j-1] +y [i-1]+y -2; x =y +temp; } and i would ...
[4 replies] Last: So you basically made sure that the loop you were trying to paralleliz... (by Athar)
Need > Help on our Machine Problem
 
Hi there, my first BTW...i came here hoping that my problems can be enlightened...my group and I made a machine problem that should be approved by our Professor...
[no replies]
Call function from another class.
 
Hello forum! A short question regarding functions. My example is the following: // somewhere in class A //in the .h file : public: int a; //In th...
[1 reply] : This function call A::doSomething() means you're calling a static fu... (by jim80y)
by clros
seekp() on empty stringstream
 
Hi! Aren't possible to use seekp() method on an empty stringstream? I would like make a string, moving freely inside it for store infos, not in order of ...
[2 replies] Last: if it's empty, there is nowhere to move with seekp(). But you could ma... (by Cubbi)
Strucutres and reading from file
 
Hello all, I had to made a code to read from an input file using structures. The input file was information relating to a car dealership. I didn't post the inpu...
[4 replies] Last: Okay thats makes a lot of sense. Thats why I kept getting 1301. I real... (by acmarshall)
Perfect programming but with wrong output!
 
I have made this program to show the use of Nested Structures. The programming is completely correct, as it doesn't show and warning or error when compiled. Th...
[12 replies] Last: You're mixing C and C++ IO, not good. Firstly, I'd recommend using so... (by closed account DSLq5Di1)
Mac OS X+GLUT
 
Is Mac OS X ideal for C++ coding? I am thinking about getting a MB Pro soon and I was wondering how good it is. Can you use GLUT/OpenGL, and what IDES are there...
[1 reply] : I have used GLUT and openGL on a mac, no problem. (by mik2718)
Why??
 
So, almost every tutorial I have read has told what to do for program x with code y and how it does it. For example, take pointers. I know when to use them, how...
[13 replies] Last: Why digital? Analogue computers were made, these are quite different... (by mik2718)
Avoiding code duplicates in this particular case
 
Hi! Consider the following class: template< typename K, typename T > class HashMap { ... private: bool locate( Key a_Key, Bucket *& a_pBuc...
[14 replies] Last: The duplication is not a problem if it is just a small number of lines... (by mik2718)
Color in console game
 
Well I'm making a console ascii game for my final in class. What I can't seem to figure out is how to make a specific character or line of text a different col...
[4 replies] Last: Some links to get you started with Curses, including two examples of u... (by Duthomhas)
Function Problems
 
I wrote the code and ran it before i put it into functions and it worked. I'm terrible at functions and so now i'm stuck, say the variables are not being initia...
[3 replies] Last: Parameters in C++ are passed to functions "by value". This means that... (by mmay)
Keyboard input issues
 
I am trying to create a game using Dev C++ as my IDE. I am currently using Dev's OpenGL template. I would like to be able to catch all key presses. One issue I ...
[2 replies] Last: That is not something that your program should be messing with. It is ... (by Duthomhas)
Help with hash program using vectors
 
Hey I have a "segmentation fault(core dumped)" error for the following code and not sure what to look into next. Please help thanks. #include <iostream> #inc...
[12 replies] Last: Yep that did it, thanks guys (by devilishdil)
My First String Reversal Program
 
Hey There, I just finished this a while ago. I'm sure I've made plenty of errors, but It gets the job done. Any suggestions on how I could "optimize" the code,...
[8 replies] Last: #include<iostream.h> #include<conio.h> #include<string.h> int main()... (by absawis)
CXX0030: Error: expression cannot be evaluated
 
I'm currently implementing my own version of a hash table in C++ using VS2010. I'm having trouble with some of the variables showing in the watch window. Those ...
[no replies]
E-mail server
 
I am working on a small e-mail server-esque project. I am not going to support fancy things like POP3/IMAP, just a really simple text-based e-mail server and...
[2 replies] Last: Thanks! (by closed account Lv0f92yv)
by yani
Tutorial question
 
I'm reading the tutorial in this site, n there is a reference n link to the string class reference. U gotta click on it and get something, but i get nothing. Wh...
[1 reply] : http://www.cplusplus.com/reference/string/string/ (by LB)
December 2011 Pages: 1... 1920212223... 39
  Archived months: [nov2011] [jan2012]

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