Beginners - July 2013 (Page 37)

Decimal to hexadecimal converter
 
Hi everyone. Im trying to make decimal to hexadecimal converter. The code is given below: #include<iostream> #include<cstring> using namespace std; vo...
[4 replies] Last: Two approaches: #include <iostream> #include <iomanip> #include <str... (by cire)
Fast retrieval/ reading of data
 
I have a 1024 by 1024 dataset and I've written a piece of code that tokenize line by line and storing them elements by elements which is extremely slow. The ...
[6 replies] Last: One more comment. If you had full control over the format of the data ... (by Chervil)
toupper and tolower error
 
I am stuck up in a seemingly simple program: my homework task is: Write a program that will ask user to enter his name. Convert all uppercase to lowerca...
[10 replies] Last: use int main() in C++ rather than void main(); (by Group of Eight)
array, sentence, word elimination
 
write a code to eliminate a word in a given sentence! compiles fine. doesn't work!!! can anybody tell me why??? #include <iostream> #include <string> ...
[1 reply] : Use std::string to hold the sentence and the word to be eliminated, ... (by JLBorges)
Factorial Finder
 
What's wrong with this application? I want the user to enter a number and it finds the factorial of it by displaying the result on the screen. #include <i...
[19 replies] Last: unsigned int num; doesn't prevent the user from entering a negative ... (by JLBorges)
going out of the matrix
 
so let say i have a 4x4 matric...now lets consider coordinates 0,0..the first cell...now just outside the matrix..in the left angle..i mean 0-1, 0-1, i.e. -1,-1...
[3 replies] Last: Assume the matrix is nx*ny. Then your function should look like this (... (by ats15)
by Shrpie
unlimited input from user
 
I am having trouble phrasing this but here goes. How do I make a new variable every time I need one within the program? Here is a example say a user wants to en...
[1 reply] : Please see Dynamic memory allocation and/or vector stuff.... (by condor)
Help with building cash register for homework
 
So i am still very new at this, i am basically learning as i go. So my home work is to Write a program that acts as a self-checkout register at a store and lets...
[2 replies] Last: It looks more less ok. But you're not "reading the price and the numbe... (by andywestken)
how to change the configuration of Visual Studio
 
I want to use C# in visual studio 2010 my default setting is c++. how to change these settings??? i want whenever i start Visual Studio the C# automatically run...
[2 replies] Last: i have 2010 and i never install whole Visual Studio i just install Vis... (by azmizryk)
by Andym
Why am I getting different values here
 
HELP!!!! I know I have something simple out of place here but I've been working on this for a few hours now and I cant get it right. The part of the code th...
[3 replies] Last: Can't you use 'rowNumber' to assign to 'Assignments'? (by maeriden)
char **pointers
 
How to assign chars to the pointer array? Would it be: char somefunction (char **array) // char 1darray // detect length // Outer loop to control the...
[12 replies] Last: I see thanks. (by kingkong200)
bubble sort
 
So I'm doing one of these bubble sort programs and it is certainly sorting for one pass. It will pass the highest integer to the end but then is not doing succ...
[2 replies] Last: Good eye and thanks! It's working now. I had something similar going... (by philbertfour)
random list picker
 
Is it possible to write a program that will randomly pick items based on a percentage value from several lists then add them to one major list? i saw this prog...
[no replies]
prototype for class with multiple template variables
 
Could some please give me an example of the class function prototype for an overloaded = operator when there are two templates involved? For example: Let's say...
[1 reply] : What's important is that the class name includes the template argument... (by Daleth)
Attack sim error
 
I was writing a program to sim an attack and i set scbp to "sneak=N(string) FOA=N" and sneak_num(int) to 3. if (scbp == "sneak=N FOA=N") { if (sneak_num...
[4 replies] Last: if(sneak_num == 1,2,3,4,5) Only validates sneak_num == 1 . I don't ... (by Daleth)
by ZeHgS
Unresolved externals when Vector1 = Vector 2
 
Hello! I have been burning my brain for the last three hours trying to understand why my code wouldn't compile because of linking problems. These are the error...
[3 replies] Last: Anything that can be done should be done in an initializer list. The ... (by Lowest0ne)
removing vector elements
 
I have a main vector container which will be passed vectors of different lengths I would need to sum up all the first elements of the different vectors and del...
[7 replies] Last: thanks for the help. I modified the code and is working fine. #inc... (by rafae11)
Overloaded function.
 
I have been using return a lot and I have overloaded it. What can I do about this? I can't use it less.
[8 replies] Last: From what I see, if I understand correctly, you can simply delete over... (by MatthewRock)
Copying folders and their contents
 
Hi. I'm pretty new to programming but I have an ok handle on it. I normally do scripting and I used the xcopy command in a batch file to copy a folder from on...
[18 replies] Last: THAT sounds like a good idea. I've been asking people for ideas and t... (by ThtCooperFellow)
Read text array to array
 
Hello, I am new to C++. I have a text file that looks like this: (a couple lines of words) x = [1 1 1]; o = [0 0 0]; q = [[[0 0 0 0 0 0 0 0 0 ...
[11 replies] Last: Thank you very much, but it did not give the right number (which is 20... (by vadkortefa)
July 2013 Pages: 1... 3536373839... 53
  Archived months: [jun2013] [aug2013]

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