General C++ Programming - August 2012 (Page 23)

by kbw
C++ 11 Compiler
 
Can anyone recommend a C++ 11 compiler.
[8 replies] Last: Thanks again. (by kbw)
Unicode characters
 
When I try to put in character from this site: http://www.alt-codes.net/ It says unicode characters cannot be saved in the current codepage, and it asks me if...
[1 reply] : Sorry, but we can't read minds. What asks you to resave what file? (by helios)
Is there a way to run a bit of code when a key is pressed?
 
I've been wondering for a while if there is a way to run some code when you press a certain key. for instance: When the key 'M' is pressed, then: cout << "...
[8 replies] Last: It probably is the wrong syntax or something. I havent used it in a lo... (by BrokenSilenceDev)
goto statement not working
 
Hi everyone, I'm relatively new to c++ programming and I was trying to create a program to convert things, such as a number of degrees celcius to fahrenheit. B...
[5 replies] Last: Your problem is because you have a return statement within the while... (by Major Tom)
getting the error while passesing the pointer from the function
 
HI, i am getting the error while displaying the char array . Not able to understand what am i doing wrong . any help appreaciated . #include <iostr...
[9 replies] Last: Thanks again Moschops I got you .. you are right .. the code that ... (by bluecoder)
pass word
 
i have been testing a password entering to my program. I want to enter the pass word as "*" and compare the entered password with my given pass word. After tha...
[6 replies] Last: Just so you know, you don't have to quote everything frm the post befo... (by viliml)
by dem7w2
How do you format integers to two digits? 2 -> 02
 
I'm wanting to open a file using date and time but I want my date formatted this way: 08/08/2012 as opposed to: 8/8/2012 I know functions like printf and C...
[4 replies] Last: cout<<setw(2)<<setfill('0'); should do. (by viliml)
maze traversal I need help.
 
01 #include <stdio.h> 02 03 #define FALSE 0 04 #define TRUE 1 05 06 #define NROWS 6 07 #define MCOLS 6 08 09 // Symbols: 10 // '.' = open 11 ...
[9 replies] Last: i need your help guys. i don't know how to write the maze traversing a... (by closed account SGb4jE8b)
Can anyone tell me why these errors are coming
 
i wrote the following code in visual studio 2010 and i am getting lot of errors #include<Windows.h> #include<WS2tcpip.h> #include<stdlib.h> #include<stdio....
[3 replies] Last: sir please help me on my program that contain the above code,i am runn... (by Tarun Batra)
Please help with a looping program
 
1. Open and read from a file called ‘teach.txt’. Test that it opened correctly. Read till the end of the file. 2. As you are reading, output what you ...
[1 reply] : Please use code tags to format your code ("<>" button on the right). ... (by KRAkatau)
Code not able to understand please help
 
i have the following code from some website.i am not able to understand following things:- 1>why they have used so many in_addr and in6_addr. 2>Why they have ...
[no replies]
by jaytee
hello, Im trying to read the contents of "file.txt" and replace each vowel with a corresponding number...help please
 
#include <iostream> #include <fstream> #include <cstring> using namespace std; int main() { ifstream member; ofstream dogs; ofstream cats; ...
[4 replies] Last: Does it mean the ASCII value?? No! f=1,g=2,k=3,p=4,h=5 f, g, p ... (by viliml)
how to loop this code 60 times the cout
 
{//--- read ADC input and calculate next PWM value. str = "ousb -r adc 0" ; Vavg = cpp_do_ousb_command(&str) ; Vgen = Vext - (Vavg - Vsat*pwm/100) / ( 1 - ...
[1 reply] : for (int i=0; i<60; i++) {//--- read ADC input and calculate next PWM... (by viliml)
by abu
Passing a pointer by reference
 
Hello, I want to pass a pointer, of type double **x, by reference. I have tried two different option by passing **x and **&x, and both give same result for the...
[3 replies] Last: Ok Thanks so much. (by abu)
Instancing objects with data from a file
 
Hi guys new here. I remember the basics of C++ from uni (well i knew enough to pass anyway) a couple of years ago, I was never very big on programing and im ...
[no replies]
To use regex or regular string functions/strtok?
 
Hello, I have been researching this past week in my spare time for a pet project (I am a university student trying to learn on my own). I have a system in wh...
[3 replies] Last: Well, trivial cases are thing like substrings. I would not use regex i... (by andywestken)
Plugin development
 
Hi all, I have given a task to develop a plugin. I have never ever created a plugin. I need help in getting started to develop a plugin. Any help or poi...
[3 replies] Last: You could start here: http://www.drdobbs.com/cpp/building-your-own-plu... (by guestgulkan)
Hello, Im new here.
 
Hello everyone, good day to you all. I just signed up here and have a few questions. I know the basics of C++ but i am wondering... What things do i need to stu...
[4 replies] Last: A client side bot must connect to and communicate with the game server... (by JLBorges)
by Tresky
C++ w/ Lua
 
Learning C++ w/ Lua isn't too difficult I find, but my main problem is trying to find a good use for scripting in my program. I'm working on a top-down 2D RPG u...
[8 replies] Last: OH! Okay! That is the answer I was looking for. Haha. Thank you. I can... (by Tresky)
Array Troubles
 
Hi all. I've been having some trouble regarding code that I am using from a tutorial on 3D Perlin Noise Terrain Generation. Currently, I have been using the ...
[2 replies] Last: Yeah, I figured it out via. toilet think. Thanks though xD (by Major Tom)
August 2012 Pages: 1... 2122232425... 31
  Archived months: [jul2012] [sep2012]

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