48,986 Topics

Member Avatar for
Member Avatar for Abiha

Problem: our program is syntax-wise correct, the problem is that it is not evaluating power operation for alphabets, can anyone help it is urgent a+b*c/d^e also tell the output for this expression #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> #include<ctype.h> #include<math.h> #define MAX 20 char stack[MAX]; int top=-1; char pop(); void push(int val); …

Member Avatar for ezaiza
0
257
Member Avatar for Anas Shahid

[code] # include<stdio.h> # include<stdio.h> # include<process.h> # include<stdlib.h> # include<ctype.h> # include<conio.h> # include<mem.h> unsigned char huge Data[100001]; unsigned char keystream[1001]; int Rpoint[300]; void main(int argc,char *argv[]){ FILE *fd; int i,j; int size; char ch; char *name; int cracked; int sizemask; int maxr; int rsz; int pos; int Rall[300]; …

Member Avatar for WaltP
0
230
Member Avatar for sohar11

Hello everyone.. I have char of an array I need to stop reading from the array if I reache to newline.. the array cosists of characters of a text file but I need to stop reading when I reache to first \n or endl.. I tried to use this while(code[i]!='\n'){ …

Member Avatar for WaltP
0
100
Member Avatar for ankit.4aug

is there is any way to access 3rd element of a linked list without using arrow operator??

Member Avatar for ankit.4aug
0
217
Member Avatar for MandrewP

I'm trying to do disk reads and writes when programming in C++ in the win32 console mode. I can create the file on disk using CreateFile(), but I can't figure out how to read or write to that file. I used the ReadFile() and WriteFile() functions but I just get …

Member Avatar for MandrewP
0
280
Member Avatar for TheFearful

Hey, guys. I'm new to this forum and this is my first post ever on this site. I am currently a freshman in Penn State University and I am having trouble with my C++ class. I have a group project but have no idea where to start with this program …

Member Avatar for TheFearful
0
459
Member Avatar for Zvjezdan23

This is code for the slope intercept formula y = mx + b I am supposed to find the slope (y2 - y1) / (x2 - x1) and have the user input the b for the y = mx + b in my program. Once the user does that I …

Member Avatar for Zvjezdan23
0
2K
Member Avatar for rugged1529

Hello I'm trying to figure how can I just a while or what statement to either stop at the next delimiters or stop at the end of the line. here's my code: [CODE] while( getline(i_file, arrayl, ';')){ cout<<"check 1"<<endl; istringstream iss(arrayl); iss>>array; cout<<array<<"<~~~~~~~~~~~array!"<<endl; int num [array]; int i = 0; …

Member Avatar for WaltP
0
126
Member Avatar for giora88

Hello. Is there a way to move to the mouse cursor on the screen using C or C++? I am using windows vista and Microsoft visual studio 2008. I am pretty new to C so I don't know much. I have read previous threads which said that you need to …

Member Avatar for Narue
0
249
Member Avatar for ToweyLeake

When I run my program it prints out the number for the forty eighth sequence as being -132375223 when it should read 4807526976. What am I doing wrong? -Towey [code] # include <iostream> using namespace std; int main () { int x1=0; int x2=1; int fib; for (int i = …

Member Avatar for ToweyLeake
0
111
Member Avatar for sasho648

I'm writing a Level Editor but my program is shows the X,Y,Z positions like DWORD(unsigned long). I want to show them like a float but I can't find a formula or function for that. If you know something please reply!

Member Avatar for sasho648
0
318
Member Avatar for CalebS

I've looked into all the other threads and I am still lost. [CODE]#include<iostream> #include<cmath> using namespace std; //Prototype's ////////////////////////////// double functiony(double); double area(int, double, double); // Main ////////////////////////////// int main (void) { //Solving for y=x^3 using k as y and d as x double k; double d=0; k = functiony(d); …

Member Avatar for mike_2000_17
0
165
Member Avatar for stereomatching

[code] void test(std:shared_ptr<some_type> A) {.....} [/code] would make a copy of a shared_ptr what if we pass a shared_ptr into a function like [code] void test(std:shared_ptr<some_type> const &A) {.....} [/code] Is this safe? Thanks a lot

Member Avatar for stereomatching
0
187
Member Avatar for Zssffssz

When on the digital mars website he advertzed that their compiler could use all 80bits of a 32bit machine. What the heck does this mean?

Member Avatar for Narue
0
62
Member Avatar for speak1

So I need to do this following program and I'm totally confused at the moment. Can someone please help me? Your help will be greatly appreciated. Objective: 1. Write a program that incorporates function modules 2. Use appropriate function declarations 3. Use function headers and write function procedure 4. Use …

Member Avatar for Zssffssz
0
458
Member Avatar for linhj

Hi All, I am tring to using the below function to read in a .txt file, which consist of a 10x10 matrix number. I just cannot find out where goes wrong, it appears such a funny number -858993460... [CODE]void readinput(int in[][MAXCOLS]) { int row ,col,ip; //Declare row,col, ip as int …

Member Avatar for linhj
0
3K
Member Avatar for namratag

What is the difference between Release and Debug modes in Visual Studio while building a project?

Member Avatar for Ancient Dragon
0
204
Member Avatar for Zssffssz

Ok simple question. Google didn't bring up much and I need this. This is the question: How do I interact with non-text files in a simple console app?

Member Avatar for vijayan121
0
171
Member Avatar for aKiLa.. :)

i want to do a project using graphics in c++..i am going to start with a simple project, because i am a beginner.. plz tell me which websites to refer in order to get help on topics and to learn about graphics in c++.. thank you.. :)

Member Avatar for Ancient Dragon
0
224
Member Avatar for namratag
Member Avatar for Narue
0
45
Member Avatar for stereomatching

[code] void test_rr(std::string const &lvalue) { std::cout<<"this is lvalue"<<std::endl; } void test_rr(std::string &&lvalue) { std::cout<<"this is rvalue"<<std::endl; } int main() { test_rr("this is"); //will output "this is lvalue" std::cout<<"system pause"<<std::endl; std::cin.get(); return 0; } [/code] how could I treat "this is" as rvalue reference? The easiest way I could think …

Member Avatar for stereomatching
0
274
Member Avatar for praky

I have been asked to implement airline Reservation Simulation system using Data structures as part of B.Tech Minor Project. I have good knowledge of C++ but none of Visual C++ (except how to draw forms). But we also need to implement UI. So we are thinking of implementing UI using …

0
58
Member Avatar for beaute

Hello. I have a problem and I would love it if I could get some insight on it. I have read the forums with many answers about the subject, but I'm still having problems so I'm writing here. Basically I was following [URL="http://tom-shelton.net/index.php/2008/12/11/creating-a-managed-wrapper-for-a-lib-file/"]this[/URL] guide which is for creating Managed Wrapper …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for DSTR3

I'm using Visual Studio 2010, Win 7, MS Access 2010, C++, Direct ODBC, 32 bit. The first SELECT statement executes. The INSERT, SELECT, SELECT and UPDATE statements don't nay help is appreciated. Thanks. [CODE] #include <windows.h> #include <stdio.h> #include <sqlext.h> const char* DAM = "Direct ODBC"; SQLCHAR szDSN[256] = "Driver={Microsoft …

Member Avatar for Ancient Dragon
0
112
Member Avatar for valestrom

Just wondering, how high can c++ really count? Because I made a fibonacci program, and it starts acting weird and printing negatives at about 10-11 places. With both long, and int variables? Is it impossible to count higher? If not, how?

Member Avatar for Clinton Portis
0
228
Member Avatar for namratag
Member Avatar for Zssffssz
0
83
Member Avatar for Stokes37

I can not figure out how to go to the next line. In the data we read in number of test on the 1st line then student names followed by their test scores on the following lines. My problem is I can only get the first student and his average …

Member Avatar for Stokes37
0
137
Member Avatar for ben1996123

What I want to do is read a whole paragraph of text from a custom file. How would I do this without doing something silly like this? [CODE]while(someFile >> word1 >> word2 >> word3){ //etc. }[/CODE] I need to be able to read 3 numbers for todays date, then read …

Member Avatar for Zssffssz
0
927
Member Avatar for Zssffssz

Ok when I use gcc (all th time) the program it makes in c++ with debug on is around a megabyte when off it is around half a megabyte when working with c with debug on it around 50 k with it off it's at about25 k this doesn't seem …

Member Avatar for mike_2000_17
0
181
Member Avatar for sandman64

[CODE] #include <iostream> #include <fstream> #include <string> using namespace std; string constestantName(istream &); void getJudgeData(istream &, string); void CalcScore(ostream &, string, double, double, double, double, double); double findLowest(double, double, double, double, double); double findHeighest(double, double, double, double, double); int main() { int loopnum, counter, nestcounter; string name; ifstream infile; infile.open("starsearch.txt"); …

Member Avatar for Mr. K
0
209

The End.