Beginners - January 2011 (Page 17)

by soprot
Give letters specific numbers.
 
Hi Before I say anything, I think that you must know that I am very new to c++. I have not worked with it a long time. So... I try to do a program that will ...
[8 replies] Last: sorry, my prob was easy to solve. Sorry for my dumbness. (by soprot)
Writing strings to a .txt file
 
I have the following code: #include <fstream> #include <iostream> #include <string> using namespace std; string input(void) { string in; ...
[3 replies] Last: Thanks! It works now! (by pwnedu46)
C++ on number input only
 
i tried, do while, while and etc.. i can't just simply input numbers (any int numbers). if not numbers, cin, prompt to re-enter again. i even tried isDigi...
[8 replies] Last: http://www.cplusplus.com/forum/articles/6046/ (by Bazzy)
Reading bytes, arithmetic operations with them...
 
Hi there!, What i want is basically work with the signed value of the bytes of one file (i don't really care about the data inside), in order to make arithmeti...
[3 replies] Last: Hi there!, I solved what i want it to do using this small routine: ... (by bobsands)
lingo game problem
 
Write a program that will play the Lingo game. This game will randomly produce a five-letter word, displaying just the first letter and letting the player to gu...
[1 reply] : Firstly put your code between [co de][/co de] tags so it can be easi... (by hamsterman)
by madsky
RIP Protocol in C/C++
 
Hello all, i want to implement RIP Protocol in C++ what should i do? is there anyone help me? who can do this for me?(i pay $50 for that) following: we hav...
[1 reply] : anyone? (by madsky)
Random Number Generator not working?
 
Well, I'm a beginner programmer, and I would like to program games. So I made this game where the user would have to guess the number the computer generated. Bu...
[3 replies] Last: ok well, i didn't know how to change guess, so I put the int guess =... (by Assassin7257)
Passing by reference FUNCTION
 
So I completed a program identical to this one except it passes pointers ( Which I run and compile perfectly). I am having some trouble with passing (2) referen...
[6 replies] Last: haha thanks much. I didnt even realize that .... >.>. I figured that o... (by Battousai)
Header File
 
Hello everyone, under which header file does String's stream "in" come? I'm getting this error : Unable to resolve identifier in error: `in' undeclared (...
[2 replies] Last: The memory could not be "read." This is pretty off topic, but it al... (by filipe)
sort a txt file and insert into another txt file
 
hi i have a project and mainly what i need to do is i have a (input)txt file with a bunch of random numbers unsorted and then i will store those numbers into an...
[1 reply] : [co de] "Your code goes here" [/co de] void ReadArray(ifstream &... (by ne555)
Can you include other headers in your own header file?
 
For example if I make a header file on Notepad or some thing and add this to it: #include <windows.h> #include <conio.h> #include <iostream> #include <ma...
[9 replies] Last: The headers you mentioned above do not have code for everything you co... (by Disch)
Exception handling
 
SO this may be the last time I ask a question in a while... I think I got the hang of exceptions now, code-wise, but there is one thing I kind of don't get: Whe...
[2 replies] Last: I'll try to see if I can progress at all by referring to your post. Wh... (by Metallon)
using semicolons in user defined functions
 
can you do it? and if so can you show me an example? something presumably that would look like this: int myfunction(int a; int b; int c) { //do somethi...
[7 replies] Last: bazzy, thanks! I didn't think about parsing the data with a unique cha... (by closed account 4Gb4jE8b)
pausing with getch()
 
i have an interesting problem here. I want the console to be able to pause and then press any key to continue, but if you hold the key down, i don't want it to ...
[3 replies] Last: Thanks Duoas, that helped. Edit: you said I can find whether it's a... (by closed account 4Gb4jE8b)
Frequency in array of strings (1,2)
 
I have read a bunch of words from a file into an array of strings, and now I am trying to determine the frequency of each word in the array. For example, if ...
[26 replies] Last: std::vector<> on gcc doubles its size when it reallocates. It cannot... (by jsmith)
Hash Map
 
Hello everyone, is there any library available for Hash Map? without using any other extra libraries? is it there in STL?
[4 replies] Last: I thought it was unordered, like a Python dictionary. Thank you for th... (by filipe)
Create a "book page" in C++.
 
Hello C++ Experts, First of all, I just want to say that I LOVE C++, but I just don't know much about it yet. I am trying to study and learn it right now, as I...
[15 replies] Last: Ok thanks sohguanh, I really appreciate everyone's input. ~milli (by millitheKidd)
error collect2: ld returned 1 exit status
 
When I run the following command I get an error as displayed below: ~/Desktop/Cs315/binary$ g++ -g test.cc binary.cc /tmp/cctzzWZ5.o: In function `main': ...
[2 replies] Last: Thank you, I knew it had to be something simple that I was overlooking... (by dsmo223)
More user defined madness
 
hey guys, trying my hand at user defined functions once again, and this program works!....... errrr, well........ depends on your definition of "works", lol, an...
[5 replies] Last: ok got it now, dumb mistake, computer didnt recognize the comma separa... (by rjd82AA)
No data output
 
So I am writing a payroll program and need to sort the netpay using pointers. I believe my sort statements are correct, but the data still do not render in the ...
[10 replies] Last: Thanks. Do you have any thoughts on changing the def. of firstname/las... (by cplusplusrookie)
January 2011 Pages: 1... 1516171819... 42
  Archived months: [dec2010] [feb2011]

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