Beginners - November 2013 (Page 22)

Array Problem
 
Can you help me to get with this output? Please dont use vectors Enter No. of candidates :3 Enter Name of candidate 1:obama Enter Name of candidate 2:bush E...
[1 reply] : see my reply to your other post.... (by mutexe)
how to serialize binary data? (1,2)
 
i have an 144-bit array of ints that are 1s and 0s. i need to split up the array into 24 6-bit symbols and store each symbol in a single variable. i am unsure ...
[20 replies] Last: > i guess i am still unclear about why we are using bytes, or 8-bit va... (by JLBorges)
Need help getting from beginner to intermediate programmiinig
 
Hey guyz! I have been doing programming for the past two or so years but at a very slow pace I'm afraid to say. I'm 15 years old by the way. The issue I am ...
[1 reply] : Would games ( thinking something like 2D bit-mapped graphics ) be some... (by snowright)
binary search
 
I have gone through the program many times and still unable to detect my fallacy. Kindly point out? The problem is such that i can't get the right output for ce...
[3 replies] Last: Yes, I just read it up! Thanks again, mate! (by peaceormetal)
sorta stuck...
 
so im writing a program to validate isbn, all is good except when i use atoi()with my char* it converts the whole isbn instead of just one number .bool isbnC...
[4 replies] Last: Then use the array operator to select each character in your string.... (by anhtuanbk57)
Not Writing to file.
 
It does not write to the file for some reason. So when I read it from the file nothing actually shows up. I am stumped on what to do. Any suggestions? #inclu...
[4 replies] Last: Thanks again. It works with TurboC++ but when I tried the original cod... (by itsohappens)
Array sum too high
 
I'm writing a program and one of the requirements is to find aggregate rainfall from user input for each month. I wrote the code for about one month so far but ...
[9 replies] Last: Why should the function know about the month-name? (by keskiverto)
by h4ever
what means operator *= in copy function?
 
Program of this program is to copy file. In the code I found the operator *= #include <iostream> #include <fstream> #include <conio.h> using namespac...
[2 replies] Last: Ah, I thought that the star is pointer :-) BTW: How big buffer is op... (by h4ever)
Debug Assertion Error.
 
I keep getting this weird error message, and i don't even understand what it's about or where my problem is. http://s23.postimg.org/52b4xgva3/error.png ...
[2 replies] Last: this assertion is a problem of the ctype functions (tolower, isalpha, ... (by coder777)
what did i do wrong help me fix this
 
Need help with the backward string part please help me fix this code thank you // 1. Length of a C-String int stringlength(char charray ) { int len...
[1 reply] : Are you required to use functions? Try this? #include <iostream> #i... (by swejnc)
Searching for a string in a .txt file
 
Below is my code: #include <iostream> #include <string> #include <fstream> #define SignatureBlock "~*~ ~*~ ~*~ ~*~ ~*~ ~*~ ~*~ ~*~\nNicholas Whitmore\...
[4 replies] Last: -1 is the int value of std::string::npos. This is what std::string::f... (by Stewbond)
Class Distance project
 
Ok, i have been able to figure out some stuff with a lot of fustration but now i am getting some really retarted errors things like error, the code exists bulls...
[2 replies] Last: #include <iostream> #include <string> using namespace std; class D... (by nvrmnd)
OOP and Filing Related Question
 
CAN WE READ AND WRITE AN OBJECT OF CLASS OF SIZE 10 MB???
[5 replies] Last: http://www.cplusplus.com/articles/oyhv0pDG/ http://www.cplusplus.com/a... (by Zhuge)
Code works first time but not in repetition
 
Hello everyone, I've been working on a blackjack game. The premise is simple enough, an array holding values 1-52 is randomized to simulate a shuffle, and the C...
[5 replies] Last: Your input code is wrong. cin >> doesn't remove whatever is used to d... (by CplusplusAcolyte)
by Garion
How to play a music file.
 
I can't seem to get this to work here. I'm trying to play a midi music file. Any ideas? #include <iostream> #include <windows.h> #include <mmsyste...
[3 replies] Last: I looked at this a little more. It seems to use the mciSendString I n... (by Garion)
Multidimensional Array help please
 
I'm making a program due tomorrow where we have to use a multidimensional array. The program is supposed to call for the name of a file. The file will be in t...
[1 reply] : fin is an object of ifstream, you cannot assign directly an object to... (by nvrmnd)
by Oxage
Total newbie bool problem
 
I was doing a practice excercise from a book and it asked me to Implement a simple "password" system that takes a password in the form of a number. Make it so ...
[3 replies] Last: awsome thanks guys ! (by Oxage)
Sorting Arrays with String and Integer
 
I'm trying to add last names into my array that sorts the exam scores (I built it first without the names and it worked) but, I'm receiving errors, and a little...
[9 replies] Last: THANK YOU XISMN!!! I finally see what everyone was trying to say. I d... (by jlpurnell)
Boolean Trouble (Simple)
 
I'm writing a program using a map that only allows keys/values to be used once.I've tried to set up an iterator that reads through the values in my map to check...
[6 replies] Last: You win! Much appreciated. (by Glorinar)
selection sort function
 
How to do a selection sort and in order from main in this array function ? #include <fstream> #include <iostream> #include <string> #include <stdlib.h> ...
[1 reply] : Your algorithm is close, but you need to pay attention to when to do... (by Duthomhas)
November 2013 Pages: 1... 2021222324... 80
  Archived months: [oct2013] [dec2013]

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