Beginners - July 2008

by jmc
inline assembly function
 
I am looking for a possibility to create an inline assembly function. The hole function, not just inline assembly in a function. (IDE: Microsoft Visual C++ 2008...
[2 replies] Last: Thank you very much! This is exactly what I needed. But now another p... (by jmc)
File Input/Output
 
So im trying to write a program that uses fprintf to print to stdout. Please note that stdout is not a file name, but an existing FILE* that always gets opened ...
[5 replies] Last: I try to be useful. :-P Did you learn what you wanted to know? You ... (by Duthomhas)
by iop
converting char to int
 
I have a function that returns a file name as a char. I need to pass that file name onto another function that wants it as unsigned short int. How do I convert ...
[6 replies] Last: Thanks a lot! It works like a charm now. I used new/delete, because... (by iop)
by Evote
Issue with maze solving program!
 
I'm not sure whats wrong with this program It runs but has something incorrect in it and please don't yell at me for using system(""); commands i know they sec...
[16 replies] Last: Thank You :p lol why did i put that + there lol ooh well thanks i will... (by Evote)
by CKShia
How to solve the ARRAY Problem...
 
Salesperson at McHenry Tool corporation are given a monthly commission check. Use array method to compute a salesperson’s monthly commission for several numbe...
[1 reply] : Many issues, please see my comments in the code #include<iostrea... (by anilpanicker)
Remove!!!
 
#include <iostream> #include <vector> using namespace std; int main() { vector<int> aList(10); for (int index = 0; index < 10; index++) aList ...
[2 replies] Last: Thanks! (by TheAlliedCentralAxis)
Problem with substr()
 
Hi, new member here I am trying to extract filenames from a file. When my string is preset the code works ok but when I read lines in from a file it does not...
[2 replies] Last: Yes, thank you Duoas. Substr Pos1 and pos2 are reading out of bound... (by paul2ashton)
FILE
 
#include <stdio.h> int main() { FILE * abc; abc = fopen ("dokas.txt","a"); if (abc!=NULL) { fclose (abc); } return 0; } This sho...
[1 reply] : refer here http://www.cplusplus.com/reference/clibrary/cstdio/fopen.h... (by anilpanicker)
by jmc
asm code explanation
 
Could anyone tell me the meaning of this asm structure (maybe line for line)? I can program a very little asm, but I don't understand this function. I think to...
[4 replies] Last: It is my fault. I have found about 4 different definitions and I just ... (by jmc)
by katz
Microcontroller Programming
 
I am unsure of how to start a project to be written on the microcontroller. I took C++ and Data Structure two years ago, but I am not sure how to start. Also, I...
[2 replies] Last: if u did C++, then C should be cheap. is this a PIC, then you can use ... (by maximusb)
Const pointer problem?
 
I am getting an error that my pointer is a const. I'm not sure why, as I don't (Purposefully) use consts anywhere in my code. Class private: char* s_...
[1 reply] : I'm not sure why, as I don't (Purposefully) use consts anywhere in my... (by exception)
How to class CCustomMenu?
 
As title. U see I need some help with this class,Anyone who know it?just tell me,how to make it work?I want to make a menu with red text not black text.
[no replies]
I got a problem in infile and outfile
 
I was trying to write a program that search and count one or more specific char(s) but I m not getting what I exactly wanted here is the program\ // progra...
[3 replies] Last: Thank u Sir I had my internet link down for days and was unable to g... (by OMehtab)
Is every aspect of C++ used in..
 
The area of developing/designing/programming/etc. games? From what I've read of the tutorial on this site, there seem to be certain parts that make sense to be ...
[8 replies] Last: I wasn't saying that you were. It's good to experiment and apply thing... (by mikeb570)
Fibonacci number
 
#include <cstdlib> #include <iostream> using namespace std; int n; int fib(); int main() { cout << n << endl; } int fib() { if(n=0)return 0; ...
[10 replies] Last: QWERTYman: I said " should ", not " must ".There is a difference.... (by pet)
by jbu004
Linking error using Dev-C++
 
I am a new C++ programmer, and I am using Dev C++ as an IDE. I wrote a simple first exercise to make sure compilation and execution would go as expected, but of...
[1 reply] : Several problems with this code: driver.cpp: 1. Need to change you... (by Return 0)
by botman
textmode()
 
Hello! I want to know where is function textmode() in DEV-C++ compiler? Thank you previous!
[1 reply] : There isn't one. <graphics.h> is an old Borland Turbo C library, an... (by Duthomhas)
adding values in array
 
i have a list of students scores in 7 different subjects stored into a multidimensional array. the following code stores the scores into the array but what woul...
[1 reply] : You'll have to use a nested loop for each . Average score on a spe... (by Duthomhas)
New Game Designer
 
I'm starting my first year of college in August and one of my classes is Computer Concepts and Information, this is because next semester I can take a Graphic D...
[2 replies] Last: Expanding on exception 's B.), download Dev-C++ to start. Learn some ... (by mikeb570)
by hhl118
Newbie asking a question over here
 
#include <iostream> #include <limits> using namespace std; int main() { int number = 0; cout << "Enter an integer: "; cin >> number; cin.igno...
[2 replies] Last: The cin.ignore() or the if statement? For the cin.ignore(), that igno... (by QWERTYman)
July 2008 Pages: 123... 15
  Archived months: [jun2008] [aug2008]

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