General C++ Programming - September 2011 (Page 17)

Programming
 
Im meant to Write a program that asks the user to enter the base of a numbering system. I ran into some errors help??? #include <iostream> #include <string>...
[3 replies] Last: I would change binary to an array of 8 bool s. Since bool can onl... (by closed account zb0S216C)
Compiling Error!
 
Can someone help me with this code? When i try to compile it (in Code::Blocks) I get the error: expected initializer before 'void'? If there is anythi...
[5 replies] Last: Watch your language, please, Void. main( ) could be declared as a ... (by closed account zb0S216C)
Writing a Library
 
Hello, I was just wondering what programmers do when the write a library. For example, how did programmers write openGL , and how hard is it to write a custo...
[10 replies] Last: Thanks everyone for your help :D Muhasaresa (by Muhasaresa)
by hmmm
reading in a string of a specified length
 
I am attempting to read in a string of 123 characters and strip out certain fields. The string 'can' contain allot of blanks and special characters; example: A...
[2 replies] Last: You can use something like this: #include <fstream> int main() { s... (by Galik)
nodes project need help
 
This is what I have so far, and here is the assignment: Change the data portion so that each node contains the same game character(single name) and a integer va...
[no replies]
Sockets
 
Hey, Firstly: I'm trying to make a socket proxy server. It will end up something like browser -> c++ -> PHP on a web server -> c++ -> browser. So far I've g...
[4 replies] Last: The browser will assume it is part of the same message. The browser wi... (by Galik)
by EvanM
Need help with simple conversion code
 
Hello, I have to create a program that converts a decimal number into binary, hexadecimal, and binary-coded decimal. I have hexadecimal to work, however, both...
[1 reply] : Surely you can figure out a way to turn the recursive call into a loop... (by helios)
Multidimensional pointers
 
I'm writing a class that is a multidimensional array. Number of dimensions (as well as element type) is passed as template argument. The storage is a solid memo...
[16 replies] Last: @thesourcehim your comparison is false. You're comparing fixed with v... (by coder777)
With About _gcvt
 
#include <resource.h> #define LABEL1 0 #define FIRSTVELOCITYVALUE 1 #define LABEL2 2 #define ACCELERATION 3 #define LABEL3 4 #define ENDVELOCITYVALUE 5...
[no replies]
Inputting data from txt file into array object
 
I am trying to enter data into an array object. The array size is 50, because the final data file will contain no more than 50 items. My code compiles, but wh...
[no replies]
CAN Communication - CAN controller initiallization
 
Hello Members, I am working on Embedded linux based coldfire microprocessor. I need to do some CAN communication and I am using "can4linux" driver which cont...
[no replies]
Encryption Methods
 
I was interested in knowing some encryption methods for C++. I know about XOR encryption and can use it (Many thanks to ultifintus' great article). (I have seen...
[4 replies] Last: I assure, I didn't get confused by the terms, but by their implementat... (by Nisheeth)
problem with include file
 
I have a solution which includes 2 projects, when I turn on the .h file only in one of the projects I do not see the namespace, which is described. h file, and ...
[no replies]
by mhetto
hello i need help to my lottery number
 
as you know the lottery numbers occurs a specific number and sequence. i have problem with the number creating. İ don't want same numbers and for this i develo...
[3 replies] Last: dear friensd i fixed my problem first changed place karar variable pos... (by mhetto)
Problem with listings of lots .txt files
 
Hi all! I'm a new user of C++ and i have a problem that i want to ask for a solution! I have a folder that contains for example 10 text files which keep infor...
[4 replies] Last: I'm gonna try another solution to make another text doc that is going ... (by SpecijalkaPP)
static const int pointer array(or static array of pointers) in class,help
 
ok so my c++ is a little rusty, and im trying to do something new here and that is making a class that needs to have a constant static character pointer array. ...
[2 replies] Last: This works for me: class Test { private: static const int arr2d ; }... (by hanst99)
Bit wise Minipulation
 
Im doing a project and trying to just get started i feel if i can see how the first part is done i can do the rest from there. The object is to & two numbers...
[6 replies] Last: n = 0010 1110 (binary) We want the 6th bit of n from the right, 6th l... (by Mathhead200)
alternative way of showing max min definition
 
#define MAX(x,y) ((x) > (y) ? (x) : (y)) #define MIN(x,y) ((x) < (y) ? (x) : (y)) is another way of doing this but not having it defined above ?...
[8 replies] Last: is there a black book somewhere LOL, I don't think so. I only learne... (by Duthomhas)
Switch (enum) ... ?
 
Can you switch through enumerated data...here is what I tried that didn't work: enum TEAMS {buffalo, miami, etc...}; TEAMS t; switch(t) { ... } ...
[11 replies] Last: enum Color{ RED, GREEN, BLUE, CYAN, MAGENTA, ... (by helios)
by cdd
Quicksort Wont Sort first digit?
 
Hi, I have been going through my code for a while now and still cant find why this quicksort program wont work. The input im using is 4 3 2 7 4 8 1 ...
[1 reply] : int PivotIndex = left;//FindPivot(List); You're always grabbing t... (by shacktar)
September 2011 Pages: 1... 1516171819... 31
  Archived months: [aug2011] [oct2011]

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