General C++ Programming - May 2012 (Page 9)

Roman numerals enum
 
I was just working on a short code that converts Roman numerals to arabic numbers. I use enum to re...
[no replies]
by CaleyM
Working Outside of Functions
 
Is it invalid to define variables and use i/o outside of a function? When I tried compiling this it...
[5 replies] Last: You should show the exact text of error messages. (by vlad from moscow)
Generic function objects
 
I have created a comparator which defines "ascending" order for a custom class. This can be used wit...
[5 replies] Last: @Layne a namespace using won't help: greater will look in std and will... (by Cubbi)
by Mastif
reading column by column
 
Hi, I would like to read word by word column by column from txt file. my db.txt file: 0....
[3 replies] Last: Thanks, it is a good idea, but I have to read one element at time not ... (by Mastif)
Reading an in-memory file
 
I am trying to write a program that will re-organize the data of a file that has been loaded into me...
[12 replies] Last: Allocate some memory big enough: char* someMemory = new char(theSize... (by Moschops)
Matrix
 
Hi i am trying to write a program that builds up matrices( without really using pointers) and i am u...
[3 replies] Last: Please put your code between code syntax, and also provide your header... (by therockon7throw)
linked list system C++
 
Need to write a code in C++ for the following problem. In a Parking lot a car is parked and said ...
[1 reply] : First take a pin and a peace of paper, and make a mind-map how would y... (by therockon7throw)
C++ Win32 GUI
 
1. Are there any books that teach it? 2. I have used the CreateWindow(); function to create a text ...
[2 replies] Last: Yeah I know, just using Win32 for some practice. I think I'm going to ... (by ben1996123)
C++ code for car parking system
 
I need Help in Writing a Program in C++ for car Parking system using queues ,In which any VIP car is...
[5 replies] Last: Here is the scenario i assume: U have a parking lot of fixed size say... (by SirSmilesaLot)
time functions
 
I am doing a program for my class. I need to calculate how long someone has been doing something sin...
[1 reply] : You can also use a time_t passed to localtime() to get a struct tm. Y... (by Texan40)
Given two strings, not necessarily of the same length, count the number of positions at which they differ.
 
Given two strings, not necessarily of the same length, count the number of positions at which they d...
[5 replies] Last: @cubbi we have to count at how many positions the strings differ from ... (by kalicha)
by BKz
Windows Settings in Console Applications
 
Hi, I was wondering if anyone know if it's possible to change the windows property of a console app...
[1 reply] : You can use the STARTUPINFO structure to do those things before the co... (by Texan40)
Technical issue with exceptions -- throwing a char const *
 
Hi, This problem is blowing my mind. I can't figure out what I'm possibly doing wrong. Here's the ...
[3 replies] Last: [quote=SexyBachelor] "Are there good reasons to use std::exception ove... (by closed account zb0S216C)
by Jikax
color conversion
 
I have a 16 bit number which represents a temperature i want to convert this number to a rgb valu...
[9 replies] Last: Have you tried looking at how Direct3D computes their colours? #def... (by closed account zb0S216C)
Seg Fault problem with inFile.getline command
 
#include <iostream> #include <fstream> #include <string> #include <cstdlib> #include <iomanip> ...
[7 replies] Last: About the char *line. I was under the assumption you could use that a... (by S G H)
c++ Count the number of occurrences of sequences of N (acquired through user input) or more consecutive 'T's
 
Count the number of occurrences of sequences of N (acquired through user input) or more consecutive ...
[8 replies] Last: @Cubbi Bravo. I like it. (by vlad from moscow)
sdl img loading problem
 
i cant seem to load a jpeg using sdl_img, and i cant figure out why. heres the code: tileset = IM...
[6 replies] Last: What does IMG_GetError() return? (by Peter87)
by tarak
Reading data from a file into main
 
Hi, I need help with reading a file given to us into the main.cpp using a 2D array. The questi...
[8 replies] Last: You think this part's hard? Just wait until you get to the part where ... (by Doolittle)
how to create communication between two .exe ,both written in C++.net?
 
how to make communication between two different .exe,which are in two different servers? so that da...
[1 reply] : Using the network. http://en.wikipedia.org/wiki/Network_socket beej.u... (by Moschops)
Binary Search
 
Hello every body...i want to ask that whether if we can do binary search without using a function?? ...
[3 replies] Last: right krakissi..........i dont want to use any function neither predef... (by awaise17)
May 2012 Pages: 1... 7891011... 41
  Archived months: [apr2012] [jun2012]

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