Beginners - June 2010 (Page 9)

If/Else Problems
 
Hey, I'm working on a program where the user will select one of three fruits and then be directed to select a variety of that fruit. I am having a really diff...
[2 replies] Last: First please read this and update your post with neatly formatted code... (by kempofighter)
by BOGG
Standard C implementation of hash tables
 
well this pretty much what I have so far #include<conio.h> #include<stdio.h> #include<stdlib.h> #include<malloc.h> #include<string.h> //We need to defin...
[5 replies] Last: Also I think I got the insert function wrong (by BOGG)
by sendjy
question about compiling interdependent files
 
I wrote a "string" class, and a "substring" class and put them into their respective .cpp and .h files. So now I have 4 files. I want to ask how i'm supposed...
[7 replies] Last: thanks a lot man. i think i got it now. now i can actually debug (by sendjy)
by cyzero
Do console Apps and Gui Apps use the same Commands?
 
I was just wondering since i can barely see a code in an Applicatiion with a GUI that i recognise from Console apps. Because if console app codes are differe...
[8 replies] Last: The vast majority of software running the internet doesn't have a trad... (by Galik)
by Ommi
Making a simple interactive win32 console message
 
Hey, So I have been looking into c++ a bit now, been very interested in programming for years and have friends with limited experience. I started learnin...
[4 replies] Last: I would suggest you to *not* use system(). Check here for why: htt... (by firedraco)
by sendjy
question about istream
 
This is the code i'm playing with. //---------------first part --------------- char s ; cout << "enter a string " << endl; cin >> s; cout << s <<...
[1 reply] : operator >> leaves trailing white spaces and newlines. getline reads ... (by Bazzy)
by dpp
Prize simulation
 
im nb, and i have some errors in my code thats the code http://codepad.org/NBcmJgDc i dont know why my stop condition isnt working. if u test it, u will s...
[3 replies] Last: hehe valeu cara, postei em tudo que era canto pra ver se tinha uma res... (by dpp)
struct not working with certain names
 
I'm still learning and going through chapter exercises in this book I've got. The one I'm stuck on has you calculate how many seconds there are in a user input...
[3 replies] Last: Cool, that answers that. Thanks again. (by impseth)
by patryk
System("Whatever")
 
I've heard everywhere that you shouldn't use system("Insert Here"); For anything because it's OS dependant and is a big Security hole in your program. and app...
[7 replies] Last: ok thnks ! i have started one !!! (by ajuneja)
read txt file, insert words into arrays of char
 
I have txt file and I need to read each word into char array. After reading, cout the word. So what I'm doing here is: read char while letter, add to array w...
[1 reply] : Problem 1: You are not using code blocks :p . Problem 2: The entire... (by Computergeek01)
Where are the files?
 
Is it possible to create a file using: ifstream.file("Text.txt"); Will this create a file, or I will have to make a file and then use this command. I a...
[6 replies] Last: OP, you meant o fstream. ifstream is used for reading a file. (by Computergeek01)
by kaduuk
alternative for system("cls")
 
Hi guys! As I've read on a lot of places, people strongly discourage the usage of the "system()" command. So I use it a lot less. I would be able to stop u...
[1 reply] : http://www.cplusplus.com/forum/articles/10515/ (by Bazzy)
by kaduuk
Finding the problem in this basic calculator
 
Hey guys, I've made a basic calculator, which was working perfectly. However, when I made the choice options if(choice2 == 'y'||'Y') while(choice1 != 'n'||'...
[6 replies] Last: Ok thanks guys! :) (by kaduuk)
by Faerie
Else block problem in C
 
I'm working through Chuck Allison's "Thinking in C" course. I'm using Visual C++ Express and making my source files .c, with almost everything working fine so f...
[19 replies] Last: AFAIK, you need to specify the buffer size of input value when it is c... (by mgupta)
diff. bet. c++ and visual c++
 
can some1 tell me the diff. bet. c++ and visual c++ . . . plz. . . i get confuse of this 2. . . hehe. . . tnx alot. . . anyway, which is better to use...
[6 replies] Last: wow guys. . .tnx a lot. . .your reply/ies has been helpful to me. . . ... (by oneeyeblack)
How do I use argc and argv inside a function?
 
In my program, I have a function to output help/usage info, for the command-line usage, and it calls the function if the user types --help on the CL, but I want...
[4 replies] Last: YES! It worked! Thank you very much! I guess I need to actually ... (by RyanCaywood)
Creating a vb.net usable dll
 
I made a dll in c++ (vs 2008) following http://msdn.microsoft.com/en-us/library/ms235636.aspxtutorial , i get the dll file great but when i try to add it as a r...
[1 reply] : i tried using the dll as an api by adding the dll to the project and d... (by hazarada)
by patryk
Functions
 
I need to create a function that scans a string for the Character '-' and replaces it with '_'. I'm thinking that i should use strcpy but im not sure. help? ...
[1 reply] : I need to create a function that scans a string for the Character '-'... (by mcleano)
by Zed
Special characters
 
Hi all. I'm new to c++ and I wonder how do you display special characters to the console. For example, say you have a string like so: char s = {'ΓΌ', '...
[8 replies] Last: programmer47's code will only work on a system that is not set up to... (by Disch)
SDL with C++ hello world
 
Hi, I've been following http://lazyfoo.net/SDL_tutorials/lesson01/index2.php to create a simple C++ program, display an image file. But for me it isn't working...
[4 replies] Last: I think it might of been a mistake on my side when I compiled it using... (by programmer47)
June 2010 Pages: 1... 7891011... 26
  Archived months: [may2010] [jul2010]

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