Beginners - April 2013 (Page 59)

by four
Stack around the variable ' ' was corrupted.
 
I was working a project that required us to write a console program to add two 10 digit hexadecimal numbers. I've written out the program and everything works f...
[3 replies] Last: Oh yes! The size was 10 but I mistaked the 10 as the index. Thank you... (by Disch)
Help on dealing with space in string.
 
To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-56...
[5 replies] Last: can u suggest me some code sample? I'd rather suggest you think ou... (by cire)
Best method for searching string with regular expressions
 
Hello all, I am attempting to search a target sequence that utilizes regular expressions (wildcards, etc.), and determine whether there is a match for my inp...
[3 replies] Last: Those are not "regular expressions". They are filename-matching wildc... (by keskiverto)
Problem with giving value to arrays
 
I want to make something will shows up like: 1 A B C D 2 A B C D 3 A B C D 4 A B C D 5 A B C D 6 A B C D 7 A B C D I am trying to use 2-D arrays. ...
[2 replies] Last: Thank you, fixed (by closed account oLC9216C)
I do not seem to figure out what is wrong
 
#include<iostream> using namespace std; int main() { int first, last, sum=0; cout<<"Enter first and last value: "; cin>>first>>last; if(f...
[5 replies] Last: Yanson...it compiled just fine for me. But we do have an infinite lo... (by closed account 3CXz8vqX)
Adding characters to a string
 
I'm trying to make a game, and this part of the code used to work, but it stopped. int TempVal; char Input ; string Word1; string Word2; stri...
[no replies]
Receiving output from a pipe
 
So I'm trying to make a program that will allow me to type in the command line something such as: cat inputFile | myProg.exe otherFile1 otherFile2 ... I know ...
[2 replies] Last: That helps, but I've run into another problem. How do I read the whole... (by suchanoob)
Valgrind - memory leaks
 
I´m trying to optimize my linkdelist´s memory management, but I got stuck. I have a class sortedlist which consist of class student and struct listnode. I go...
[6 replies] Last: So I almast solved my problem. I had to change a few functions in Sort... (by Jaimito)
Component Entity Design: dynamically adding and removing member variables.
 
I have been reading about component entity design and was wandering how to go about implementing it. I think I have an idea that might work but am confused abou...
[no replies]
Trouble with C++ Go Fish game
 
I believe I have most of the code working for a Go Fish program. Right now there are two functions that I believe to be the problem. Any help would be appreciat...
[1 reply] : There is a problem with the logic of your code, which may be causing t... (by fg109)
need help writing a bowling program?
 
hey guys i have instructions on writing this bowling program but i dont know where to start. Given a file with the results from a game of bowling, calculate ...
[1 reply] : ~~ logic Input: Frame 1 - Throw 1:10 Throw 2:0 Throw 3:0 ... Store ... (by GaGoKoYa)
Cant get bitmap to load :/
 
I mean...maybe this belongs in windows programming but im pretty sure im making a beginners mistake somewhere...My bitmap wont load and yes the relative file pa...
[2 replies] Last: Your HBITMAP is local to Mainwndproc. That means that every time tha... (by Disch)
201 [Error] expected unqualified-id before 'if'
 
Here is the code it's very big . There's an error on the 201 line so if you can help i would appreciate that . :) #include <iostream> #include <fstream> #...
[7 replies] Last: Your compiler is outdated or you're working with templates. Most compi... (by LB)
password C++
 
You have been chosen by your employer Google to create a program to rate customer’s passwords. The users will enter a password and your program will output a ...
[no replies]
Question about string and getline
 
Is there a way to use getline to take a series of strings and put them into three different string values? For example: cout << "Please enter your full name:...
[1 reply] : std::cout << "Please enter your first, middle, and" "las... (by LB)
Why is it wrong to call the main function directly?
 
Someone has told me that calling the main function directly is not legal. I have done it before and it makes my program run exactly as I want it to. Thanks fo...
[13 replies] Last: The above code is recursive. rng() calls intro() intro() calls questi... (by Chervil)
Good Tutorial for memory management.
 
I've gone through a good amount of the core c++ library now. The book doesn't go into key words like new and delete . From what I can tell, this a more diffi...
[8 replies] Last: Thanks guys! (by Austin J)
Trouble with If Else
 
Beginner with C++ and I keep getting a expected primary-expression before "else" error. I thought it was because I added ; after the if statement bu then I got ...
[1 reply] : please use code tags my eyes will thank you. http://www.cplusplus.com/... (by Yanson)
Need help with some if else coding homework
 
Hey, This is my first post and I'm having trouble with some c++ homework. Everything works fine until it has to return the average and drop the highest and l...
[1 reply] : Please use code tags http://www.cplusplus.com/articles/z13hAqkS/ Wher... (by Yanson)
struct array issue?
 
I am making an array of structures and when I build I keep getting the build error error: expected unqualified-id before '[' token| The line in question ...
[2 replies] Last: Thank you so much. Knew it was something little. (by JayRyGeo)
April 2013 Pages: 1... 5758596061... 83
  Archived months: [mar2013] [may2013]

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