Beginners - October 2009 (Page 3)

Question dealing with Array print commands
 
Need another small advice about following: Could someone explain me what will happen if we have an Array of chars named str and this array doesn't contain th...
[1 reply] : The printf instruction will print out the dirty data which are after t... (by screw)
Need an opinion about C creation array problem
 
Hi to all, Could someone advise me about how to create dynamic an Array in C, (nxm) from strings and read values in this array ? Thanks in advance...
[1 reply] : Hi! http://www.cplusplus.com/reference/clibrary/cstdlib/malloc/ ... (by screw)
unicode
 
how to make unicode in window C++ what code is how work if you know about this please explanme me with source code
[2 replies] Last: Also here's a good background on the subject: http://www.joelonsoft... (by Lodger)
If statement not working
 
I revised a simple program to add new elements to see if I could get the OR logical operator, and if statements working together, but it doesn't seem to work. N...
[2 replies] Last: hey, that worked perfectly, thanks for the help. Actually made things ... (by pressence)
by agnea
Ternary Operator
 
Hi guys! I have this code, but I don't understand why it works... #include <iostream> using namespace std; int main(){ int a = 1; while (a <...
[2 replies] Last: Thanks! (by agnea)
invalid conversion from 'int*' to 'int'
 
Assignment given in my intro c++ class. I keep getting the error (invalid conversion from 'int*' to 'int') in my calcAvg function. #include <iostream> ...
[2 replies] Last: oh my.. don't know how i missed that. okay now its running and calcula... (by mattzorx)
by minix
Static Code Analysis
 
Hi everybody, Have anybody use Frama-c (static code analysis)? Thanks, Andy
[no replies]
anyway to make this while statment shorter?
 
learning C at the momment using sams teach yourself C. finished week one and I tried writing a program to find the first 100 prime numbers. as you can see I en...
[11 replies] Last: Some compilers make long long twice as long as long, others just throw... (by helios)
c++ command similar to setw?
 
I have the code ostream& operator<<(ostream& ofile, const Date& d) { if(d.day==0 || d.month==0 || d.year==0) ofile<<"Invalid Date"; ...
[1 reply] : You could probably put all the data into a stringstream first, then us... (by Zhuge)
Deleting extraneus input
 
If I am prompting the user for two chars, in order, for different parts of the code, and the user inputs two characters the first time, the next character store...
[3 replies] Last: After you read in a, use cin.ignore() to ignore the rest of the input.... (by Zhuge)
Clear screen without SYSTEM("cls")
 
Because im working on a game that i was actually going to share on the net. Its a console based game. Simple to use. Its called Text Quest Maze Edition Its m...
[10 replies] Last: You could look into ncurses/pdcurses (windows version I think). They ... (by chrisname)
by molim1
Segmentation Fault
 
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #define BUFFER 64 #define PLAYINGDAYS 20 //Number of games recorded ...
[2 replies] Last: I'm here to learn, not the best professor I have Is parta not point... (by molim1)
Set on declare (Multi dimensional Arrays)
 
I can not find it anywhere. I want it to do something like int array = {1,5,9,1,6,9 } and stuff but how do i do it with multi dimensional arrays I wou...
[4 replies] Last: Thankyou so much. I hope i can help others someway sometime :). I know... (by Coaster3000)
confused with array sorting
 
Hi everyone, I am new here. I have a question becuase this program has been bugging me really bad. We are supposed to have this program build arrays according t...
[6 replies] Last: Thank you so much totally forgot about declaring the temp as a string.... (by deadbolt742)
by bigdog
Accessing elements in Array of char pointers (char**)
 
I am trying to learn in more depth how an array of char pointers is accessed. I have the following code that I am playing with: #include<iostream> using...
[8 replies] Last: Thanks man!!! I will check the articles... I have been playing wit... (by bigdog)
An 'illegal else without matching if'
 
I'm writing a program that uses if loops and if logical operators to evaluate whether a number is odd or even, but the compiler keeps bringing up the error in t...
[9 replies] Last: I tried % , I removed it early on in the debugging stage because I tho... (by JohnOPhelan)
by AdRock
splitting a string
 
I have the following code and need to be able to split the string using punctuation. The following output should be: int larger ( int first , int se...
[4 replies] Last: The debugger is critical in this case. This is the kind of problem th... (by kempofighter)
Problems overloading the addition(+) operator
 
Pls i'v problems overloading the addition(+) & subtraction(-) operators as i did the multiplication & division operators by declaring them as friend functions w...
[1 reply] : Post the code please. Post the declaration and defintion of your clas... (by kempofighter)
infinite loop?
 
okay I'm trying to do the little test i found on this site to get better, but Ive hit a strange snag that i cant understand... #include <iostream> int gues...
[9 replies] Last: See if this helps to explain the problem any better. The entire I/O s... (by kempofighter)
by newb00
SDL LoadBMP from seperate cpp?
 
I am looking for a way to load a Bitmap from a CPP that is separate from the main CPP. I have searched Google for quite sometime and haven't found anything.....
[4 replies] Last: http://www.libsdl.org/faq.php?action=listentries&category=2#19 #in... (by Duthomhas)
October 2009 Pages: 12345... 25
  Archived months: [sep2009] [nov2009]

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