Beginners - June 2011

by Majeth
Segmentation faults && vectors
 
soo... I was nosing around basic encryption, and have tried to make a decrypt project, which takes in an encrypted message (e.g. 10110 etc.) and a key (e.g. 15,...
[4 replies] Last: Aye, time to use the debugger. compile it with the -g option added.... (by Moschops)
Basic Loop Question.
 
Heya, guys. So I took a giant step back and decided to re-do the fundamentals of loops. I started with the While Loop. I made a successful code that asks the...
[2 replies] Last: Right! I just thought of that. Okay, give me a couple of minutes. H... (by RialnisMada)
by Jsel
Starting network programming
 
I don't know anything about network programming but I want to try to modify my tic-tac-toe console program to be a multilayer game. Where do you recommend I sta...
[5 replies] Last: Most networking APIs are based on the BSD sockets API (afaik) which is... (by closed account S6k9GNh0)
by wtf
returning a c_str() not working.
 
char *strswap(const string & s) { const char * temp = new (nothrow) char[s.size()]; temp = s.c_str(); char * rv = new (nothrow) char [s.size(...
[no replies]
For-loop problem
 
I'm getting seg-fault in a for-loop like this, where I need to change the starting point within the body. Is that accepted/allowed? I'm using gcc version ...
[2 replies] Last: Use the debugger. Step through the code one line at a time. Look at ... (by kempofighter)
by symant
Help for a very beginner!
 
Ok guys i want to read an monochromatic .bmp file using dev c++ and then create a file with the X and Y from the images,i'm very newbie in programming and i nee...
[no replies]
rand() function always returns the same value
 
For some reason, when ever I use the rand() fuction, it always returns the same value. How do I fix this?
[4 replies] Last: Thanks that sovled my problem!!! (by TexanMonkey)
Do not work (compiling no errors)
 
Hi, can anyone talk to me why code do not work good? #include <iostream> using namespace std; double Data (double &a,double &b) { int temp; do ...
[4 replies] Last: thank you so much it helps a lot (by Anon777)
by moi134
Windows is triggering a breakpoint in my program
 
Hi all, I have written a simple C++ program to implement the string class. This class has member functions for +operator and =operator overload in addition to...
[6 replies] Last: Thanks a lot Hamsterman. The problem is solved :) (by moi134)
Craps game help
 
I think i'm pretty close, a few issues i see running it is 12 doesn't always end game with loss on first roll and probability does not calculate for some reason...
[4 replies] Last: I'll preface this response in saying that I am a new student to C++ an... (by Drakbak)
converting string to int
 
I am a student learning c++. I am trying to write a program where a user enters two times and the program returns the time that has elapsed between them. I have...
[2 replies] Last: thank you very much. that is exactly what i needed (by mmcdermott2212)
by dev200
Im Gonna Crazy :Z
 
Why is doing this i do compile everything is ok,but when i do a building i got a 2 errors :? Code is // console.cpp // #include "console.h" using ...
[7 replies] Last: Try fixing the error. (by Disch)
Help me to rewrite
 
Hi im tryint to rewrite program into program using <string> but i cant figure out how. #include <iostream> #include <cstdlib> #include <ctime> #include <cmat...
[6 replies] Last: yes :D. But since englsih isnt my native tongue, i need hel to underst... (by vastrolorde)
by dev200
It Is a Possible ????
 
Guys Is It Possible To Make a Program -exe,that can detect a CPU Systems - RAM,VIDEO CARD,PROCESSOR etc. ? in console with iostream ?
[9 replies] Last: The Directory Name is Invalid ??? What Means That ? (by dev200)
case sensitive comaparison
 
Hello all I wanted to know if case sensitive comparison is possible between characters, not strings? Could anyone please tell me how do I go about it. Tha...
[2 replies] Last: alright Moschops. Thanks a lot (by vbaswant)
My program isn't pausing for user input
 
Hey, I'm trying to write a craps game using while loops. The problem is once in the loop the game doesn't pause for further user input. Also, to give the user ...
[6 replies] Last: Ok, I think I've fixed it. R is an int and I've made the users' choice... (by Cutegun)
check number is octal or not??
 
Write a C++ program to read an integer and test that the given integer is an octal number or not????? i m in problem when u put 0 in first position of intege...
[3 replies] Last: I don't know what you're trying to do. Octal is just another kind of ... (by coder777)
Can't compile multiple file projects in Code::Blocks!
 
I'm having an annoying issue with Code::Blocks when I try to include a header file I made containing a class definition into a .cpp file that implements the cla...
[3 replies] Last: -please mark this topic as solved then- (by HenriK)
stack overflow
 
Hi, I have a .txt file I need to into an array for processing. File size is 3000 lines and there are 13 info separated by a ";". Now to insert the full file ...
[8 replies] Last: [quote=wboustany]I mean, at the end the "dynamic array" will have to b... (by m4ster r0shi)
variable being used without being initialized
 
Hey, newbie here. I'm trying (unsuccessfully) to write a rock, paper, scissors, lizard, spock game. So far it keeps coming up: 'Run-Time Check Failure #3...
[8 replies] Last: Wow, thanks guys. This is still above the level that I'm at, but it c... (by Cutegun)
June 2011 Pages: 123... 41
  Archived months: [may2011] [jul2011]

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