Beginners - August 2011 (Page 19)

Error check for account# starting with any 0 int.
 
I have to error check if a user inputs any number with a 0 or 00345. The account number cannot begin with any 0 at all and account number needs to be 5 digits ...
[1 reply] : Fetch your input as a string, check the length is 5 and the first char... (by closed account DSLq5Di1)
Assertion Error(Debug Error) in this Snake Game I'm making(using SDL)
 
#include "SDL.h" #include "SDL_image.h" #include <string> #include <vector> #include <cstdlib> const int SCREEN_WIDTH = 640; const int SCREEN_HEIGHT = ...
[1 reply] : I'm double posting since it's not really bumping if I do it right afte... (by azndarkgodx)
cmake-gui, make????
 
I've been through a couple full length tutorials but nothing really covered cmake and make. From what I can tell cmake-gui makes make files for the compiler? ...
[no replies]
how to check picturebox image?
 
Hi All, I need your help. I have got a problem with the if statements. I want to check the picturebox through the resources as if the picturebox is reading t...
[no replies]
Project: read file and find maximum slope
 
Ok so I've been learning C++ for about a month now and am new to the language and anyway I told my dad I'd help him with something he's working on since I'm tak...
[1 reply] : Can you do it yourself on a piece of paper with 5 or 6 lines of data? ... (by Duthomhas)
Compare two strings
 
I'm supposed to write a program to take two strings input and then to compare them to see which one is alphabetically larger. What sort of comparison should ...
[5 replies] Last: Thanks packetpirate, that solved the problem (by dacoolest)
if string is number only
 
ok, i been searching after this but with no good result i would like to se if a string contains numbers only i tried searching on this site but i found nothin...
[7 replies] Last: If you want to see if every character in a string is a digit then loop... (by Duthomhas)
Creating my own program
 
Hello I am using Visual to create my first program for a final project. I have the interface completed and I know what I want the program to do. But I am stu...
[1 reply] : There are several very good tutorials on the Microsoft Website on seri... (by kooth)
Delete void pointer with 'delete' keyword -- given size. How?
 
I am stil trying making a C++ version of my C# class for working with Dragon Age: Origin's 2DA tables. Solely for learning's sake. The values are void* as they'...
[4 replies] Last: The bools are sometimes padded, sometimes not. It's not my file format... (by GisleAune)
by Nelli
is a string of characters odd or even?
 
I have some simple code that reuest a user to input a string of characters (up to a length of 81) I need to discover if the ctring had an even or odd number ...
[5 replies] Last: We can't give you the answer to everything. But if I were you, I'd use... (by packetpirate)
by b10c
rand() function with a linked list
 
Hey im trying to generate a linked list with random items/keys, only when i get my list, all the items are the same random number, and all the keys are all simi...
[1 reply] : linked lists don't have keys.. what am i doing wrong here....? wha... (by hamsterman)
by fugu
Updating private members - unnecessary copy overhead?
 
Hi folks, I have a function void update(gsl_vector * x) and as the name suggests update changes the vector x points to. I would like to use update to work on...
[2 replies] Last: Whether there is a copy overhead depends on the contents of set_x(). I... (by hamsterman)
copy and paste
 
why cant you copy and paste words or phrases off of a c++ program. and is there any way to do it through code?? thank you for any answers
[3 replies] Last: thanx can i please have the code (by cainen172)
Sorting algorithm
 
Is there, just for curiosity's sake, a sorting algorithm that outperforms merge sort with it's O( n log n ) complexity? If there is, is it worth implementing it...
[1 reply] : Radix sort :). Also, there are several (normal) algorithms with O( n )... (by hamsterman)
by Rmac
Stuck in "while statement "
 
I have a program I have written using a while loop that appears to stop the loop as soon as it gets input. My programs loop is to push a button called Par...
[no replies]
fstream.read is acting funny (bad_alloc)
 
I had some strange issues with my code and it turned out to be that I raad a struct wrongly and thus all following structs would not give me the proper value. ...
[1 reply] : You might start out by checking your return codes (if you aren't - you... (by kooth)
by newby
beyond the (very) basics
 
I'm studying physics at uni and as part of my course did a brief introduction to C++, roughly covering the topics in the tutorial here. I really enjoyed it and ...
[9 replies] Last: @ultifinitus Erk - meant to double the P, of course. Not sure what h... (by andywestken)
How do I change the console color?
 
How do I change the color of the console?
[6 replies] Last: Code::Blocks why do you ask? (by TexanMonkey)
How do i code this?
 
sin(x) = x^1/1! - X^3/3! + x^5/5! - x^7/7! + x^9/9... this is the sine i have but how to i do using for-loop? //sin(x) = x^1/1! - X^3/3! + x^5/5! - x^7/7!...
[9 replies] Last: @hamsterman Point taken! (I do thing that the recursive approach is s... (by andywestken)
Could C++ develop rtos?
 
Are there any rtos developed by C++? Not sure if C++ could be used to developed rtos or not. Thanks a lot
[6 replies] Last: There is no real reason not to write a RTOS in C++. The language itse... (by closed account 1vRz3TCk)
August 2011 Pages: 1... 1718192021... 39
  Archived months: [jul2011] [sep2011]

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