I don't know english well, I'm french, sorry
Type: Posts; User: abbaskhan
I don't know english well, I'm french, sorry
plz go out from my forum
this code works well, i change that up code. but when code arrives to ************e place, program closed, why? plz help on this problem.
new code :
#include <iostream>
#include <string>...
this code don't works? why?
hi, I coded nfa to dfa program
#include <iostream>
using namespace std;
int main()
{
char **dfa_trans = 0;
dfa_trans = new char *[3];
for (int i=0;i<3;i++)
{
but maximum number is 14 when you enter 15 it will be negative 32768, i changed a type to unsigned int but the maximum number is 14 again, how can I up this range?
I correct it on my own, the truth code is this:
void baz(int n,int k,int l,int* a){
int i,s=1;
if (n>0){
for(i=0;i<n;i++){
s=s*2;}
a[k]=s;
i changed to this shape, see that, a[k]'s is true but a[i] is wrong. why?:confused:
void baz(int n,int k,int l){
int i,s=1,a[100];
if (n>0){
for(i=0;i<n;i++){
s=s*2;}
a[k]=s;...
i writed this program, this program good works until a[k] but a[i] don't print correctly, plz help on this.
#include<conio.h>
#include<stdio.h>
void baz(int,int,int);
void main(){
int n;
i dont write any code but i thinked about it really
i know the way of a recursive, but i will know the algorithm of this program, i thinked very much, but i can't
but this not works:confused:
i will write a program with function that recursively print from 1 to 2^n
for example i give number 3 to pragram and it will be print 1 2 4 8
sorry for my bad english, plz help me on this program...
ok, thanks from all of you, but master Matticus, how can I separate numbers from this shape string 6x^2+2x^1+1 whith strtok? because we dont know how much is the terms, in 3 term we will have this...
hi, I wrote a program, that get numbers and operation with string, and thats work, but I will do this, on function program, this mean I can't get 2 digit numbers for coefficient of terms, because the...
my problem solved. sorry for my post. I'm not crazy!!! :wink:
oh, this program works but in main program this cant work!!!
int main(){
float *p;
int n,m,i;
printf("tabe chand jomlei bashad: ");
scanf("%d",&n);
p=(float *) malloc (sizeof (float) *(n));
...
hi
this program can get the integral of the polynomial function but, an intresting thing is that doesn't work truth.
exaple for 3x^3+2x^2+1x^1+4x^0
this program get integral...
thank youuuuuuuuuuuuuuuuuuuuuu :redface:
thank you very much, but, may you truth my code? i can't understand what you say, i'm confused completely, plz :frown:
i truth this code to this shape, but now cant print the students information, why? how can i truth it?
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
struct student {
char...
this program's problems:
1.when we enter y, doesn't get 2nd student's name.
2.after 2nd student when we enter n, program prints mistake things.
3.average is 0 forever.
sorry for my bad english....